Log In  


Trying to use pico8 in headless mode on OSX doesn't seem to behave correctly.

When I run the following:

/Applications/PICO-8.app/Contents/MacOS/pico8 --args -x build.p8

I get:

  [1]    1972 floating point exception  /Applications/PICO-8.app/Contents/MacOS/pico8 -x build.p8

However, if I omit the -x, I get no errors and pico8 opens in windowed mode, so clearly the headless mode is causing issues.

2


I can't test on OSX, but I guess another test would be to run an empty cart and see if you still get the error.

Is build.p8 already a minimal cart / can you share its contents?


Fairly minimal, and it behaves outside headless mode (apart from that load auto-runs the cart and so you can't test the export):

cd('root')
load('test.p8')
export('test.bin')

Gotcha.

So you'd want to first test that CD() works in headless mode. Then load() using an empty cart. And then export().

And if each of those work, then the issue could be in test.p8. Does that cart run by itself in headless mode if you call it directly from the terminal emulator?

You have to methodically test each of those to figure out where the issue is.

Like I said I cant test under OSX. But if you share the files you're working with, I can test it on Windows or Linux to see if it's just an issue with OSX or a general p8 issue.

Hope that helps.


I mean, my cart is built on the same example Zep provided for the 0.1.11 announcement, so you'd hope it worked.

I'll do a bit more digging.


It seems to be a problem with the headless mode, since an empty cartridge fails the same way, but the -run flag works fine.


I seem to remember having the same problem on windows 10 (zep's example not working). though that was just a quick test and I didn't really bother. did anyone actually get it to work?


Hopefully @zep finds the fix for this some time soon. It's a really nifty feature.



[Please log in to post a comment]