New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build is producing gibberish for my cart, not sure why. #45
Comments
Possibly relevant: building the cart with picotool appears to change the cart version, or claims it does.
(Version 16 is accurate to how the cart was created.) I also just noticed that the token count reported by picotool is much higher than that reported by pico8 -- 8497 vs. 7696. |
Same issue with code becoming garbage. |
Note that a .p8 build works fine, only .p8.png fails. |
Hiya,
I have an otherwise-perfectly-fine .p8 file which is over the compressed size limit, so I'm trying to minify it. I tried this:
./picotool/p8tool build dragondell.p8.png --lua dragondell.p8 --gfx dragondell.p8 --lua-minify
and it produced no error, but when I run stats on the resulting .p8.png, I get:
I can load it into Pico-8, and the graphics look fine, but the code section is garbage.
Things I tried:
--lua-minify
has the same result (no error, graphics correct, code garbage).--gfx
correctly minifies the code, but of course doesn't include the spritesheet.build
again to add the graphics back in creates an unloadable cart like above.listlua
to output just the code and hand-copying that over the code in a copy of the working cart creates a cart which loads and runs, but has new bugs in it. :/I see in the readme that picotool sometimes "rejects a cart with a syntax error but Pico-8 accepts it," which I suppose could be the case, but I'm not sure how I'd determine that, nor what the numbers in parentheses afterwards refer to (since they don't seem to be either issue numbers or cart numbers).
Any ideas what might be up, or anything else I can try? Apparently Github won't let me attach a .p8 file, but I'd be happy to send it to you another way if that's helpful. (It's a slightly newer and apparently slightly larger version of this one: https://www.lexaloffle.com/bbs/?tid=30999)
Thanks!
The text was updated successfully, but these errors were encountered: