Log In  

I'm having an issue saving a .p8.png of my game, to upload here.

I boot up Pico-8 on OSX, load my cart, and then run "save cartname.p8.png". That will give me a warning about not having a label, but will otherwise work fine. But when I run the cart, save a label with f7, and then try again to save, it fails silently, with no output. No new cart file, nothing printed out to the console. "save @clip" doesn't work either.

Any suggestions?

P#49116 2018-02-09 10:39 ( Edited 2018-02-22 22:51)

Is anyone else experiencing this? I have a finished cart I can't upload :(

P#49396 2018-02-18 20:32 ( Edited 2018-02-19 01:32)

What do you get if you type info at the command prompt?

Also, I'm sure you've tried, but what if you try to save to a different .p8.png filename entirely? Do you get a file at all? If you type folder after saving and look at the folder pico-8 thought you were in, maybe sort by modified date, did anything at all get created?

Hm, more things to check... is it fair to assume...

  1. you've tried this in more than one session?

  2. you can still save your existing .p8 (non-png) file?

  3. you can still save other carts as .p8 and .p8.png files?

  4. you have space available on the physical drive that folder is mounted on?

  5. you've done a reboot since the problem started, just to clear any stale file locks?
P#49397 2018-02-18 21:54 ( Edited 2018-02-19 03:00)

Sorry about the delay in getting back to you.

Info shows me that I have plenty of room. Saving to a different file doesn't work. Copying the code to a new .p8 file and using that one doesn't work. I've gotten another cart to save with a label, but if I save that one, switch to the bad cart, and then switch back to the good one, it won't save anymore. The cart that saves doesn't use any sprites or sfx - wondering if that's somehow related.

  1. I've tried more than one session.
  2. The .p8 saves fine with CMD-S in the editor, but doesn't save with save cart.p8 at the console. Pretty interesting....
  3. Yeah other carts seem to work if I use them before trying the bad cart.
  4. Yup
  5. Yup
P#49470 2018-02-20 20:21 ( Edited 2018-02-21 01:21)

Try the folder command and see where pico-8 thinks you want to save. Check permissions on the folder. Also check any anti-malware software you have to see if anything shows up in logs or quarantine.

P#49471 2018-02-20 21:08 ( Edited 2018-02-21 02:08)

Everything looks all set on the folder. Not running any anti-malware software or anything that I'd think could interfere.

P#49472 2018-02-20 22:56 ( Edited 2018-02-21 03:56)

If you'd like, upload (somewhere) a .p8 that won't save as .p8.png and I'll try it on my system to narrow it to OSX. Or, if you have a windows partition/machine, try that at your end.

P#49473 2018-02-20 23:06 ( Edited 2018-02-21 04:07)

...and you're also running the latest version (v0.1.11g), right?

(Forgive me asking, but just in case this is a bug that Zep has previously fixed!) :D

P#49474 2018-02-21 02:05 ( Edited 2018-02-21 07:05)

Yup, using the latest version. I just tried the file on my windows machine - still the same issue! Either I'm insane or there is a bug in here somewhere.

I uploaded my cart to github, if someone else could try to produce a PNG (with label) that would be awesome. Really curious to know what's up here.

P#49496 2018-02-21 22:43 ( Edited 2018-02-22 03:44)

It's because of this:

function save()
 dset(0, level)
 dset(1, total_shots)
end

You replaced the save function with your own.

Just use a different name for your function and you'll be good to go. Edit: Actually, you're not even using it.

@zep - This is probably one of those functions you should only use the original for at the command line.

P#49499 2018-02-22 02:53 ( Edited 2018-02-22 08:00)

LOL - good spot Felice!

I've been caught out with accidentally redefining core functions before (I'm looking at you "CD"), but SAVE()

For a laugh, I just redefined REBOOT(), SPORE() to something silly and, sure enough, it'll let you do it.
I kinda love that we can do this, although let's just hope nobody puts a cart up that redefines SPLORE() with a call to REBOOT(). :D

What power we have with PICO-8! :D
(and with all great power...)

P#49504 2018-02-22 08:26 ( Edited 2018-02-22 13:40)

AMAZING! Thank you so much. I never would have thought that loading a cart would override the "command line" functions

Edit: After all that, I was finally able to upload my game! https://www.lexaloffle.com/bbs/?tid=30813

P#49513 2018-02-22 17:51 ( Edited 2018-02-23 03:52)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2024-03-28 13:24:06 | 0.128s | Q:22