Log In  

You can find it on your Updates page. The new builds should be up on Humble soon too (check the version numbers on the files).

This is a quick bug-fixing update. Due to a rogue dev-debug-mode flag being mistakenly switched on in 0.1.2, much of the standard Lua library was accessible. So if you've started using PICO-8 recently, not knowing the library is not supposed to be there and tried to use it, sorry about the confusion!

v0.1.3 Changes:

Added: paste into commandline
Fixed: lua standard libraries accessible
Fixed: command-line loading doesn't work
Fixed: music pattern finished too early when all tracks set to looping
Fixed: peek()ing odd bytes in sfx address space masks bit 7
Fixed: cstore and reload from code space should have no effect

P#15406 2015-10-15 17:40 ( Edited 2015-11-22 05:24)

Arrgh... I was using TYPE and TOSTRING :'(

P#15409 2015-10-15 18:24 ( Edited 2015-10-15 22:24)

Yoinks! ok, I rolled back to the 0.1.2 web-player for now so that at least the online version of BLD isn't broken.
type() is something I'm looking at for 0.1.4. Not sure about tostring() yet.

P#15410 2015-10-15 18:48 ( Edited 2015-10-15 22:49)

tostring and tonumber are useful for user input, so they aren't too vital.

Consider adding unpack, type and assert back though!

P#15413 2015-10-15 19:05 ( Edited 2015-10-15 23:05)

Assert() is high on my list. I didn't think about unpack() yet -- will check it out.

P#15416 2015-10-15 19:31 ( Edited 2015-10-15 23:31)

I made my own tostring (quite simple) and have removed the type calls. So BLD is now full compliant with pico 0.1.3 (and CC BY-NC-SA too). I'm near the final release : have to add levels and may be make my butterfly explode.

function str(n)
return ""..n

I like the polymorphic functions so adding type() is a good point for me.

Thanks for the good work :)

P#15420 2015-10-16 04:05 ( Edited 2015-10-16 08:30)

Great, thanks jihem! I'll update the webplayer to 0.1.3 shortly.

Unfortunately I broke the music tracker display -- it's showing D's instead of dots for the empty cels. I'll do a fix and another small update on Monday.

P#15506 2015-10-17 18:32 ( Edited 2015-10-17 22:32)

You should create something like C's printf. It would be very useful thing. Also add special charcodes that would change text color from that point, like the ones you could use on c64.

P#15529 2015-10-18 09:49 ( Edited 2015-10-18 13:49)

any thoughts on adding setmetatable?

obviously an advanced thing, but adds a lot of power to lua that's hard to do otherwise since it lets you implement different types of containers and do operator overloading.

certainly not something everyone needs to use, but i think as people grow with pico8 and lua it'd be a great addition.

P#15570 2015-10-19 02:21 ( Edited 2015-10-19 06:21)

Yeah, you can do ""..n for tostring and flr(n) for tonumber, but there's no way to do type() in the current API, which makes mixed type arrays impossible..

And I love metatables, but I'm slowly learning to do without them since Pico-8's tokenizing is super harsh whenever any weird symbols are involved...

P#16227 2015-11-04 16:43 ( Edited 2015-11-04 21:43)

Aargh, type() and getmetatable('') no longer work? I think I'll stick with 0.1.2 and hope this stuff gets added back into 0.1.4.

getmetatable('').__index = function(str,i) return sub(str,i,i) end

I wrote this code to reduce tokens and add string indexing (string[1] == sub(string,1,1)). I also used the type of table entry to determine cutscene actions for cheap 2-5 token entries. MGN is basically maxing out the token space without these optimizations, but if you guys have suggestions I'm all ears.

P#16869 2015-11-22 00:24 ( Edited 2015-11-22 05:24)

[Please log in to post a comment]

Follow Lexaloffle:          
Generated 2023-01-29 08:03:11 | 0.009s | Q:26