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?
Is anyone else experiencing this? I have a finished cart I can't upload :(
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...
-
you've tried this in more than one session?
-
you can still save your existing .p8 (non-png) file?
-
you can still save other carts as .p8 and .p8.png files?
-
you have space available on the physical drive that folder is mounted on?
- you've done a reboot since the problem started, just to clear any stale file locks?
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.
- I've tried more than one session.
- The .p8 saves fine with CMD-S in the editor, but doesn't save with
save cart.p8
at the console. Pretty interesting.... - Yeah other carts seem to work if I use them before trying the bad cart.
- Yup
- Yup
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.
Everything looks all set on the folder. Not running any anti-malware software or anything that I'd think could interfere.
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.
...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
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.
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.
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...)
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
[Please log in to post a comment]