helado [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=10783 #include doesn't properly handle crlf <p>i've been running into some strange errors involving a project using #include while running it on windows instead of my usual linux environment. i've isolated the problem to line ending convention: an external file that uses the windows CrLf convention, but is otherwise the same as a file that works with no problems, will cause errors. here is the text of the external file i used:</p> <div> <div style="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>local function _draw() cls(1) end</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>to see the problem, save this with an external text editor using windows line ending convention (wordpad works, as do many programmer text editors) and use #include to include it in a cart.</p> https://www.lexaloffle.com/bbs/?tid=37071 https://www.lexaloffle.com/bbs/?tid=37071 Sat, 14 Mar 2020 18:08:54 UTC spaces mess up tab completion <p>for example, when i have these files in my working directory:</p> <div> <div style="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>tiny terrarium.lua tiny terrarium.p8</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>and i enter &quot;load t&quot; and then press tab, it completes to &quot;load tiny terrarium.&quot;, as it should, but then even if i type &quot;p&quot; and then press tab, it will not complete to &quot;load tiny terrarium.p8&quot;. i tested various variations of partial entries of the file names, and they seem to work as long as the space hasn't been entered yet, and fail as long as it has been.</p> <p>(also, inline code snippets on the bbs don't seem to work as advertised? i couldn't get them to format this post properly. they insisted on making full code blocks every time)</p> https://www.lexaloffle.com/bbs/?tid=36880 https://www.lexaloffle.com/bbs/?tid=36880 Thu, 20 Feb 2020 20:39:54 UTC manual doesn't seem to indicate shortcut key for fps counter <p>i somehow accidentally turned on an fps counter and thought the manual would say how to turn it back off, but it doesn't seem to. it would be nice if the manual documented this and any other potentially undocumented shortcuts</p> <p>(i managed to get it to turn off by closing and relaunching pico-8)</p> https://www.lexaloffle.com/bbs/?tid=33816 https://www.lexaloffle.com/bbs/?tid=33816 Sun, 07 Apr 2019 20:39:18 UTC /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found <p>i just redownloaded voxatron after hearing about the latest update, but now i get this error message logged to the console on startup:</p> <div> <div style="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>vox: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by vox)</pre></div></td> <td background=/gfx/code_bg1.png width=16><div style="width:16px;display:block"></div></td> </tr></table></div></div> <p>it seems like it's asking me to update a core system file, but my packages are up to date and for unrelated reasons it's impractical for me to change os or os version. i'm using linux mint 18.</p> <p>is there anything else that can be done?</p> https://www.lexaloffle.com/bbs/?tid=33023 https://www.lexaloffle.com/bbs/?tid=33023 Sat, 26 Jan 2019 06:46:00 UTC Paper Dalsei: Fluffy Fashion <p> <table><tr><td> <a href="/bbs/?pid=61080#p"> <img src="/bbs/thumbs/pico8_paperdalseifluffyfashion-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=61080#p"> Paper Dalsei: Fluffy Fashion</a><br><br> by <a href="/bbs/?uid=10783"> helado</a> <br><br><br> <a href="/bbs/?pid=61080#p"> [Click to Play]</a> </td></tr></table> </p> <p>this is a deltarune paper doll fangame made by me and my brother, CrossroadsWanderer (<a href="https://www.lexaloffle.com/bbs/?uid=34370"><a href="https://www.lexaloffle.com/bbs/?uid=34370"> @XroadsWanderer</a></a>)! we started out making a paper doll game unrelated to deltarune, but when we played deltarune together, we became enamored with ralsei, and decided to make it a ralsei dressup game instead. we made this for ourselves, but i hope others will find it enjoyable!</p> <h1>controls</h1> <p>z/okay: wear<br /> x/cancel: take off<br /> left and right: scroll through items<br /> some options are found on the enter/pause menu.</p> <h1>credits</h1> <ul> <li>the designs of ralsei and his default outfit are from <a href="https://deltarune.com/">deltarune</a></li> <li>the designs of the two hidden items are from deltarune and <a href="https://undertale.com">undertale</a></li> <li>the music composition, &quot;friendship&quot; (which can be found on <a href="https://tobyfox.bandcamp.com/track/friendship">bandcamp</a>), is from deltarune</li> </ul> <p>everything else was done by us. this includes:</p> <ul> <li>game design</li> <li>pixel art (including our renditions of the aforementioned preexisting designs)</li> <li>coding</li> <li>music arrangement</li> </ul> https://www.lexaloffle.com/bbs/?tid=32991 https://www.lexaloffle.com/bbs/?tid=32991 Tue, 22 Jan 2019 01:31:48 UTC per-sprite palette swap + day/night cycle <p>i'm trying to allow players to choose between two different versions of the same sprite without having both on the sprite sheet. at the same time, my game has a day/night cycle that modifies colors as seen in this gif:</p> <img style="" border=0 src="https://www.lexaloffle.com/bbs/files/10783/day-night.gif" width=256 height=256 alt="" /> <p>i want to largely work out the <em>how</em> for myself, at least at first for the sake of learning, but first wanted to check that i'm not missing something:</p> <p>is it possible to have both these per-sprite palette swaps and the day/night swaps just with appropriately placed pal calls, or would i need to do something a little more manual?</p> <p>i'm aware of the difference between remap-on-draw and remap-on-display; also note that there's ui whose colors must not change with the time palette, which would seem to rule out using remap-on-display, unless i'm just missing something.</p> <p>edit: just to clarify, <em>please do not post full solutions</em>. i'm okay with hints in the form of nudges in the right direction though.</p> https://www.lexaloffle.com/bbs/?tid=30828 https://www.lexaloffle.com/bbs/?tid=30828 Sat, 24 Feb 2018 23:09:56 UTC tiny terrarium <p>this is my submission for <a href="https://itch.io/jam/games-made-quick">GAMES MADE QUICK???</a>. it also has an <a href="https://helado.itch.io/tiny-terrarium">itch.io page</a>. here is the description quoted from there:</p> <p>&quot;hi. this is a toy i made. it has no real ending, but feel free to try speedrunning it anyway if you wish.</p> <p>as there's no sound, please provide your own ambience, relaxing or otherwise.</p> <p>you may encounter bugs. the bugs are intentional and cannot be destroyed. good luck.&quot;</p> <p> <table><tr><td> <a href="/bbs/?pid=35779#p"> <img src="/bbs/thumbs/pico35778.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=35779#p"> tiny terrarium</a><br><br> by <a href="/bbs/?uid=10783"> helado</a> <br><br><br> <a href="/bbs/?pid=35779#p"> [Click to Play]</a> </td></tr></table> </p> https://www.lexaloffle.com/bbs/?tid=28581 https://www.lexaloffle.com/bbs/?tid=28581 Sun, 15 Jan 2017 12:22:34 UTC tiny terrarium <p>i thought i'd give an early preview of the falling sand game i'm working on:</p> <p> <table><tr><td> <a href="/bbs/?pid=25684#p"> <img src="/bbs/thumbs/pico25687.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=25684#p"> tiny terrarium</a><br><br> by <a href="/bbs/?uid=10783"> helado</a> <br><br><br> <a href="/bbs/?pid=25684#p"> [Click to Play]</a> </td></tr></table> </p> <p>there's not much to it yet; the only kinds of particles are air, soil, and sand, but i plan to add more and also have some more optimizations in mind. it took some work and a bit of luck to get to this point :)</p> <p><span style="text-decoration: underline;">controls</span></p> <p>(while not holding o)<br /> up/down/left/right: move cursor<br /> x: place atom</p> <p>(while holding o)<br /> up/down: select setting<br /> left/right: change setting</p> <p>edit: shoot, does this web player also have bugs re: _update60? i'll try to alter the cart to make it work</p> <p>edit: okay, seems fixed</p> https://www.lexaloffle.com/bbs/?tid=3894 https://www.lexaloffle.com/bbs/?tid=3894 Thu, 21 Jul 2016 15:36:59 UTC why _init? <p>is there a non-stylistic reason that it's useful to define _init? i haven't been able to discern any practical difference between defining things in _init and defining things outside of _init other than that the former gives you slightly more flexibility in ordering your source code.</p> https://www.lexaloffle.com/bbs/?tid=3774 https://www.lexaloffle.com/bbs/?tid=3774 Tue, 05 Jul 2016 18:36:21 UTC bug report: pasting doesn't preserve button glyphs <p>copying or cutting a line that contains a button glyph, then pasting it, will result in spaces in place of the glyph.</p> https://www.lexaloffle.com/bbs/?tid=3704 https://www.lexaloffle.com/bbs/?tid=3704 Sat, 25 Jun 2016 20:01:26 UTC bbs: please use unicode encoding <p>certain characters are not rendered correctly, such as &times; (multiplication cross), &aacute;&eacute;&iacute;&oacute;&uacute; (accented vowels), and quite probably others.</p> <p>i checked the bbs's html and didn't see it declaring an encoding. this might be solvable with a simple &lt;meta charset=&quot;utf-8&quot;&gt; although i'm not sure if anything else is awry.</p> https://www.lexaloffle.com/bbs/?tid=3702 https://www.lexaloffle.com/bbs/?tid=3702 Sat, 25 Jun 2016 19:22:36 UTC