Hi,
I played around with Pico-8 and wanted a fancy way to build and run
custom cart when the idea came to me like the urge to go π :
I NEEDED A DEDICATED SPLORE SERVER !
One hour later it was alive

Showing custom list and loading whatever I want directly from SPLORE.
I was surprised at how simple it is to make a proxy.
First I edited "drivers\etc\hosts" but it lacked flexibility...
Then I came up with the idea of replacing wininet.dll by a custom script.
That way you just put (or remove) the file near pico.exe and start it.
No user hack, no patch, no third party.
You can make your own proxy with the MASM32 code below
(I think I can share it with you because it does not disclose any flaws or infringe any copyright)
(The code of the server may be more sensitive to disclose)
Anyway, I swear that no "pico8.exe" were harmed during the making of this progam.
Unfortunately while the dedicated server works perfectly, the SPLORE internal cache ttl make it useless for its original purpose (eg:dynamic build and run).
If you have any new idea to use such a product let me know.
.



You inspired me to run a little test:
$ export http_proxy=http://localhost:42/ $ pico8 -splore |
…and splore can’t refresh categories! so this means that pico8 respects the standard HTTP proxy environment variable, which is an easier, cleaner and more cross-platform way to override the server address! Now we have to reverse-engineer more of the bbs splore protocol.
That’s a good find for people making custom arcarde cabinets or offline consoles (a raspberry pi for example can most probably run a simple Python server and pico8), with more than one list available. The alternative with a custom cart that browses local files needs a bit of code to have navigation and menu and everything, and 'ls' in a cart doesn’t return directories so has limited usefulness.



I think there's a SPLORE tab that explores the carts directory tree - not at my computer this second to check but I remember running carts that way.



Yes of course, but you can’t have splore for local carts only, hiding bbs categories if you’re making an offline console.
[Please log in to post a comment]