Log In  

The pico-8 manual mentions the following argument to the "pico8" program:

  -p param_str             pass a parameter string to the specified cartridge

but I can't find any mention of how to access that parameter. I was thinking it might be passed as an optional argument to _init(), but that doesn't appear to be the case; and PICO-8 doesn't expose lua's standard arg array.

How can I access that string?

I'm running on Mac OS btw, invoking the binary directly with:

~/Applications/PICO-8.app/Contents/MacOS/pico8 -p foo -run path-to-cart.p8

This seems to make the keyboard keys unresponsive (except a few, like return), not sure why...

P#46341 2017-11-15 18:25 ( Edited 2017-11-16 06:32)

stat(6)

It's in the manual in the stat section, but a bit hard to find :)

P#46343 2017-11-15 18:55 ( Edited 2017-11-15 23:55)

Ah, okay, awesome. Thanks!

P#46353 2017-11-16 01:32 ( Edited 2017-11-16 06:32)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 23:35:50 | 0.005s | Q:10