Home

Awesome

Pico-8 Carts - Bash Downloader

Download & automatically rename Pico-8 carts from the Lexaloffle BBS threads

Pico-8 Carts - Bash Downloader

This bash script downloads directly Pico-8 carts from the Lexaloffle BBS.

How to use the script

Download the .sh file in this repository and save it in your $PATH, you can also use it locally and call it adding a ./

Example: ./picodownload.sh http://www.lexaloffle.com/bbs/?tid=28957

Before launching the script, edit the following line to change the directory where you want to download the carts:

readonly DOWNLOAD_DIR="/home/bob/.lexaloffle/pico-8/carts/incoming"

The .sh file has to be executable too: chmod u+x picodownload.sh

The script supports

Options

If you want to download anything besides a single cart in a thread, you need to use the options:

Filename

If you download the cart from the following url http://www.lexaloffle.com/bbs/?tid=29017, the cart will be saved as: funfetched_nanoman-1.0_29017_38515.p8.png

The structure of the file is the following: "$AUTHOR_NAME"_"$GAME_TITLE"_"$BBS_ID"_"$GAME_ID".p8.png.

The BBSI_ID is especially useful if you want to quickly find the original thread where the cart was downloaded from.

You can customize the filename by editing this line in the script: local FINAL_FILENAME="$AUTHOR_NAME"_"$GAME_TITLE"_"$BBS_ID"_"$GAME_ID".p8.png