monsim [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=43448 Misleading error message on newer carts <p>I was checking a suspicion of a regression in version 0.2.0c and discovered this minor inconvenience. When a newer version cart is loaded into an older version PICO-8, it errors out with &quot;Could not load $filename&quot;. Technically, it's correct, but the same error is shown when, say, a given cart file is missing. I find this messaging confusing: it took me a while to realise that the file is fine and it's the version mismatch that causes it.</p> <p>Suggestion. Make it forward-compatible: error out with something like &quot;cart version unsupported&quot;.</p> <p>(FWIW, I was trying all this via command-line)</p> <p>Bonus small bug: non-lower-cased message word &quot;Could&quot; is rendered in the puny font, while the rest of PICO-8 UI does not use it.</p> <p>Demo.</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>$ cat newer.p8 pico-8 cartridge // http://www.pico-8.com version 42 __lua__ $ pico8 -run newer.p8</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <img style="margin-bottom:16px" border=0 src="/media/43448/PICO-8_000.png" alt="" /> https://www.lexaloffle.com/bbs/?tid=37527 https://www.lexaloffle.com/bbs/?tid=37527 Wed, 22 Apr 2020 06:55:34 UTC Operators @, @@, and $ undocumented <p>Changelog for version 0.2.0 lists, among other new operators, these three: &quot;@ @@ $&quot;. However, I cannot find and mention or description of them in the pico-8.txt user manual, including manuals up to version 0.2.0c. Consider this a documentation &quot;bug&quot;.</p> <p>P.S. I cannot get single backticks to work here on BBS. Instead of formatting in-line code, they format the whole block (so act as if they were triple backticks).</p> https://www.lexaloffle.com/bbs/?tid=37474 https://www.lexaloffle.com/bbs/?tid=37474 Mon, 20 Apr 2020 15:34:37 UTC stop(nil) segfaults <p>I've found out that stop(nil) crashes PICO-8. Not that it's a particularly useful call, but it definitely must not crash the console.</p> <p>Version: 0.2.0c<br /> Platform: Linux 64bit<br /> Example cart:</p> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>$ cat stop-nil-segv.p8 pico-8 cartridge // http://www.pico-8.com version 21 __lua__ --this segfaults: stop(nil)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <div> <div class=scrollable_with_touch style="width:100%; max-width:800px; overflow:auto; margin-bottom:12px"> <table style="width:100%" cellspacing=0 cellpadding=0> <tr><td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> <td background=/gfx/code_bg0.png> <div style="font-family : courier; color: #000000; display:absolute; padding-left:10px; padding-top:4px; padding-bottom:4px; "> <pre>$ pico8 -run stop-nil-segv.p8 Segmentation fault (core dumped)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> https://www.lexaloffle.com/bbs/?tid=37473 https://www.lexaloffle.com/bbs/?tid=37473 Mon, 20 Apr 2020 15:21:46 UTC