PNG CGFX Don't Work Right

This is the place for discussion and support for LunaLua and related modifications and libraries.

Moderator: Userbase Moderators

Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
Sambo
Snifit
Snifit
Posts: 211
Joined: Fri Jan 24, 2014 6:43 pm

PNG CGFX Don't Work Right

Postby Sambo » Fri Jul 08, 2016 9:11 pm

I changed my episode to use PNG graphics, and this has caused annoying issues. SMBXpanded somehow made it so PNGs wouldn't work in an episode folder (they still work in level folders). I don't know how that works. :?
And now, I've discovered that the level backgrounds don't work properly when you use custom graphics. If the custom one is smaller than the original, there will be a black strip filling the rest of the space. The animated BGOs show part of the next frame if they are smaller than the original. None of these issues are present if the BGOs are in GIF format. I can go change all the backgrounds back to GIF, but that's pretty annoying to do.

Quantix
Chain Chomp
Chain Chomp
Posts: 333
Joined: Tue Jan 26, 2016 5:04 pm

Re: PNG CGFX Don't Work Right

Postby Quantix » Fri Jul 08, 2016 9:53 pm

SMBXpanded doesn't really work right with PNGs.

Sambo
Snifit
Snifit
Posts: 211
Joined: Fri Jan 24, 2014 6:43 pm

Re: PNG CGFX Don't Work Right

Postby Sambo » Sat Jul 09, 2016 6:59 pm

I noticed. Luckily, I made a backup before converting to PNG, so I could go back to GIFs. The only thing I'll probably use PNGs for at this point is giving transparency to CGFX over graphics with no masks. But still, I'm not happy about this because using PNGs dramatically reduces the file size of my episode.

Sednaiur
Volcano Lotus
Volcano Lotus
Posts: 580
Joined: Fri Dec 20, 2013 2:16 pm

Re: PNG CGFX Don't Work Right

Postby Sednaiur » Sun Jul 10, 2016 7:04 am

Sambo wrote:I changed my episode to use PNG graphics, and this has caused annoying issues. SMBXpanded somehow made it so PNGs wouldn't work in an episode folder (they still work in level folders). I don't know how that works. :?
And now, I've discovered that the level backgrounds don't work properly when you use custom graphics. If the custom one is smaller than the original, there will be a black strip filling the rest of the space. The animated BGOs show part of the next frame if they are smaller than the original. None of these issues are present if the BGOs are in GIF format. I can go change all the backgrounds back to GIF, but that's pretty annoying to do.
I guess this is because the .lua codes that make it possible for SMBX to read PNGs, needs to be adjusted for the new items too.
I do not know how the .lua codes work, but to me it really seems like there is a line of .lua code for every single graphic in SMBX, that "tells" SMBX to read these GIF as a PNG and the codes for the new items are missing. Try to use any SMBX 1.3 version that is not using luna.lua. I am pretty sure it will work then. But I assume that SMBX 2.0 will also work with the new items just fine.

Sambo
Snifit
Snifit
Posts: 211
Joined: Fri Jan 24, 2014 6:43 pm

Re: PNG CGFX Don't Work Right

Postby Sambo » Sun Jul 10, 2016 6:28 pm

I hadn't thought of that, but I don't believe that this is the problem, because I had only just installed SMBXpanded, and there weren't any PNGs overwriting the new graphics. Also, only having PNGs in the episode folder causes the crash. If I place them in one level's folder inside the episode folder, there isn't a crash or a freeze.
Using a version of SMBX without Lua won't work, because my episode uses it, and Lua is what makes SMBX able to load PNGs. It's not really a very big deal. I don't need PNG graphics, but I am curious about how this problem was caused.


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari