Log In  

Hi there,

I'm trying to launch a multi-cart game like Another World from the command line under Linux.

My command line is:

pico8 -windowed 0 -root_path /path/to/aw -run aw.p8

When I launch it, I get an error message COULD NOT LOAD AW.P8.

I can check that I'm in the right folder with a DIR and I can load and execute it from Pico-8 through LOAD AW.P8 (returns: LOADED AW.P8 (49877 CHARS) and then RUN it from there, but I want to get it loaded + run from the command line.

Anyone knows how I can do that?

P#99139 2021-10-25 22:50

I think the root_path option changes the location where pico8 looks for carts, but filenames (used for 'reload' and other things) are still resolved from the real current working directory. So I would try this: 'cd /path/to/aw' then 'pico8 -run aw.p8'

P#99141 2021-10-26 00:55

You can just do:

pico8 -windowed 0 -run /path/to/aw/aw.p8

reload() (and others) will use paths relative to the aw.p8 path correctly.

P#99150 2021-10-26 06:09

@merwok @dddaaannn Thank you so much. Both your solutions work... I thought I tried them earlier, but I must have goofed.

P#99159 2021-10-26 14:44

Oh, actually, I think I know why: I started my tests for multi-carts with 0.2.2b before upgrading to 0.2.3, there must have been a change there!

P#99160 2021-10-26 14:46

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-29 13:38:12 | 0.031s | Q:18