Log In  


Easily make Pico-8 Boot/Run Portable on USB for Windows with this one file.

I usually play on my Mac with native install of Pico-8 and occasionally I work on Windows and love tinkering when I get board, so when I am away form my Mac and working on Windows; I made a simple tool to easily help make Pico-8 run portable on Windows.

Install

1 . Simply download the Windows: zip of Pico-8 and extract it to your usb.

2 . Then download this pico8usb.bat file.

3 . Place pico8usb.bat in the root folder of your Pico-8 extraction folder on your usb where pico8.exe is located (example in image below).

4 . Run pico8usb.bat

5 . Enjoy.

Running pico8usb.bat will create and setup your usb install of Pico-8 to run portable on your usb.

Config

You can configure pico8usb.bat, I have set some example parameters as a demo but you can change them to your liking.

Here at this section in pico8usb.bat you can change where the portable data is stored:

set pico8HomePath=%~dp0data\
set pico8RootPath=%pico8HomePath%carts\
set pico8DesktopPath=%pico8HomePath%documents\screenshots\

pico8usb.bat will create a folder called data and desktop in the root folder (%~dp0 current path of pico8usb.bat) of your install where pico8usb.bat and pico8.exe are located if they do not already exist, this location is important for this to work but you can change the name from %~dp0data to %~dp0usbFiles or anything else you like.

  • data folder is the portable location for the Home Path
  • carts folder is the portable location for your carts, I've set them to be Home Path > carts
  • desktop is where your screenshots/gifs will be saved instead of the host Desktop, also set to Home Path > desktop

And in this section in pico8usb.bat you can toggle/set other boot options, these are examples but you can find more options to use from the Command-line flags

set pico8Options=-windowed 1 -width 256 -height 256 -frameless 1 -sound 0 -splore

Please do be careful, this script uses mkdir and may overwrite data. but technically shouldn't because I've set if block statement to check first.

Share

Please share what your preferred configurations are or if you have any other methods that you use.

6


pico8usb.bat (link above) has been updated with Notepad++ integration!

  1. you can now load a cart your working on into Pico-8 from within Notepad++ or
  2. you can now also simply launch Pico-8 directly from Notepad++
:: 1. run without notepad++
:: put this file in the same folder where pico8.exe is. done.
:: 
:: 
:: 2. run with notepad++ and setup:
:: From Toolbar > Run > Run > 
:: 
:: to load current cart in notepad+++ use:
:: "D:\Folder\apps\pico-8\pico8usb.bat" -run $(FULL_CURRENT_PATH)
:: map keys to "Shift+Alt+C"
:: name: "Pico-8: Load Cart"
:: 
:: to run pico8.exe with pico8usb.bat from within notepad++ use:
:: "D:\Folder\apps\pico-8\pico8usb.bat"
:: map keys to "Shift+Alt+R"
:: name: "Pico-8: Boot"

Notepad++ integration is credited to this post...

and of course you can still run pico8usb.bat directly without Notepad++ as before!

of course you want to use your own path to the pico8usb.bat for the Notepad++ setup...



[Please log in to post a comment]