Log In  

Tested version: 0.2.5g

When trying to save a new cart by running a cart that contains a save instruction in headless mode, and the target cart already exists,

Repro:

Create a demo cart demo.p8 with the following lua content:

save("demo_inconsistent_save1.p8")
save("demo_inconsistent_save2.p8")
save("demo_inconsistent_save3.p8")
save("demo_inconsistent_save4.p8")
save("demo_inconsistent_save5.p8")

Then run it headlessly:

pico8 -x run demo.p8

The first time, all carts will be generated. On further runs, carts already exist, but only every other cart will be properly overwritten, starting from the second one, namely: demo_inconsistent_save2.p8 and demo_inconsistent_save4.p8

Workaround: make sure to remove all existing target carts in your custom script before saving them again.

P#141650 2024-02-19 15:05

Thanks @huulong -- this is fixed for 0.2.6b

It was caused by the "overwrite [y/n]" interactive prompt logic happening while in headless mode.

P#141816 2024-02-23 10:27

[Please log in to post a comment]