idankimel [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=45575 PICO-8 thinks cart is always unsaved <p>Hi,</p> <p>I stumbled into a very annoying bug while working on a game.</p> <p>In short: I got into a situation where I tried to export to html, but kept getting a message that the cart is unsaved and I should save first.<br /> I saved, and then the same message again.<br /> No matter how many times I save, I still get it, even when I just loaded the p8 file.<br /> I also tried creating a completely new cart with the same code, searched for capital letters (none were found) and even re-installed pico-8.</p> <p>I'm running on a mac osx 10.13.6 (High Sierra).</p> <p>After many attempts, I found that the reason for this is the fact that I'm including my entire code from a different main.lua file.<br /> If I copy the contents of mail.lua into the pico-8 code section, save, all is fine.</p> <p>Note that I got the export to work once, while trying various code fixes, but then it immediately failed to figure out it is unsaved now and a sequential export didn't work again...</p> <p>From asking in the discord, someone was able to reproduce this just by creating a cart and including an empty file as the only statement in the code.</p> <p>Please help as this is very frustrating!<br /> And keep up the amazing work I love PICO-8 :)</p> <p>Idan</p> https://www.lexaloffle.com/bbs/?tid=38608 https://www.lexaloffle.com/bbs/?tid=38608 Mon, 29 Jun 2020 20:14:26 UTC