Hi! It would be convenient to have an option in the cart submenu to save a file from BSS to local carts, for systems that are not always connected.
For the carts that only have numerical IDs or generated names, it would be great to have a new RENAME command in the console :)
Copy favourites.txt to a new folder, copy the following python program to a new file called downloader.py, then run downloader.py in the same folder. You're welcome. :)
import urllib.request def sanitize_title(title): new_title = "" allowed_characters = "_',abcdefghijklmnopqrstuvwxyz0123456789" for c in title: if c not in allowed_characters: new_title = new_title + "_" else: new_title = new_title + c return new_title input_file="favourites.txt" lines =  with open(input_file) as f: lines = f.readlines() for line in lines: split_line = line.split('|') cart_id = split_line.strip() cart_title = sanitize_title(split_line.strip()) chars = 2 if cart_id in "0123456789" and cart_id in "0123456789": chars = 1 url = "https://www.lexaloffle.com/bbs/cposts/%s/%s.p8.png" % (cart_id[0:chars], cart_id) print("Now downloading:") print("cart id: %s" % cart_id) print("cart title: %s" % cart_title) print() fname = "%s.p8.png" % cart_title urllib.request.urlretrieve(url, fname)
The easiest method for grabbing everything is probably MBoffin's suggestion of going to the pico-8/bbs/carts folder and copying all the .p8.png files, but I'll also note that if you load a cart, exit to Splore, and then exit Splore, the cart will remain loaded. It'd be a struggle to save a lot of carts this way but if you just want to grab one, you can save it to your hard drive and have it.
If this feature somehow gets put into official pico8, allow ability to make folders and save to specific folders. I save local copies like no tomorrow and use a folder system that organizes by genre. Also, saving local should also allow multicart saves, which are difficult/impossible even dropping out to command prompt. I have to get these outside of pico8. Just some input on this feature, but I do use a handheld with a keyboard, so for me this'd just be a shortcut rather than addition.
[Please log in to post a comment]