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.

P#48774 2018-01-31 05:36 ( Edited 2018-02-05 14:08)

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?

P#48777 2018-01-31 08:43 ( Edited 2018-01-31 13:43)

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')
P#48786 2018-01-31 11:29 ( Edited 2018-01-31 16:29)

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.

P#48865 2018-02-01 21:40 ( Edited 2018-02-02 02:41)

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.

P#48877 2018-02-02 07:58 ( Edited 2018-02-02 12:58)

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

P#48878 2018-02-02 08:00 ( Edited 2018-02-02 13:04)

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?

P#48879 2018-02-02 08:11 ( Edited 2018-02-02 13:11)

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

P#49003 2018-02-05 09:08 ( Edited 2018-02-05 14:08)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 19:11:08 | 0.007s | Q:17