Log In  


Description

Brought this up with Soupster in Discord. It appears to be an issue with fetch() now returning as a string instead of userdata for images. Maybe it's some kind of new parameter you have to provide to tell it to process it as an image or maybe it's just a bug?

Code

png = fetch("/appdata/test.png")
printh(type(png))
printh(png:width())

On 0.2.0d it reports:

[016] userdata
[016] 288

On 0.2.0e+ it reports:

[018] string
[018] @@ /ram/cart/main.lua:3: attempt to call a nil value (method 'width')



1

Thanks @consty, I'll do another patch soon with a fix for this. It also means that dragging png files into the gfx editor is currently broken.


Sounds good, thanks!


1

Hello, @zep. When I saw https://www.lexaloffle.com/media/1/email_0.gif on the GIFDUMP Jam [Heavy Data Warning], can I play this cart?If possible, build it. Thank you.



[Please log in to post a comment]