chocomap.lua (v1.2) - better overworld, now with undocumented memory access

Share and discuss custom LunaLua code and content packs for SMBX2.

Moderator: Userbase Moderators

deice
Volcano Lotus
Volcano Lotus
Posts: 596
Joined: Fri Jul 23, 2021 7:35 am

chocomap.lua (v1.2) - better overworld, now with undocumented memory access

Postby deice » Sat Oct 30, 2021 11:11 am

this library has been merged with xmap.
Last edited by deice on Wed Apr 20, 2022 7:47 pm, edited 7 times in total.

KBM-Quine
2025 Egg Hunter
2025 Egg Hunter
Posts: 137
Joined: Wed Jan 15, 2014 11:10 am
Flair: Crazy with a K

Re: chocomap.lua - everybody's lua-drawn now

Postby KBM-Quine » Mon Nov 01, 2021 4:23 pm

as someone who's tinkered with 1.3 maps quite a bit, i like this! but chucking this in Ti2 without any other lua running yields this:
Image
as well as that, this renders over the vanilla pause menu. it also doesn't animate things when paused. that can be overcome by updating frames in onDraw.

as for your costume bugs, Graphics.sprites.player[player.character].img can be used in place of Graphics.loadImage(Misc.resolveGraphicsFile("player-"..tostring(player.character)..".png")). though you will need to update that to account for character/costume changes. you can do this in onDraw for that:

Code: Select all

-- make playerSprite just " local playerSprite" at the top then do this in onDraw
if not (playerSprite == Graphics.sprites.player[player.character].img) then
	playerSprite = Graphics.sprites.player[player.character].img
end
as for peach and toads' overworld rendering issues, you can find how that's handled in source here for an idea of how to handle that (if you can understand it anyhow)

on the switches, 0x00B2BFD8 is the animation array for 1.3 levels (gotten from map3d.lua in data/scripts). which makes sense, given that the level gets a "pressed" frame after you've beaten it.

all in all, i like where this is going. keep up the good work!

deice
Volcano Lotus
Volcano Lotus
Posts: 596
Joined: Fri Jul 23, 2021 7:35 am

Re: chocomap.lua (v1.1) - now with more QA

Postby deice » Mon Nov 01, 2021 7:01 pm

KBM-Quine wrote:
Mon Nov 01, 2021 4:23 pm
(bug reports)
all in all, i like where this is going. keep up the good work!
thank you very much for the feedback! i've addressed and (hopefully) completely fixed all of the issues you've pointed out in your post.
for anyone else reading, the script has been updated and a brief changelog is now visible in the top post, please redownload.

deice
Volcano Lotus
Volcano Lotus
Posts: 596
Joined: Fri Jul 23, 2021 7:35 am

Re: chocomap.lua (v1.2) - better overworld, now with undocumented memory access

Postby deice » Tue Nov 02, 2021 7:50 am

apologies for the self bump, but i've updated the script once again with the features i couldn't get around to earlier. i suggest once again redownloading (but don't worry about constant updates anymore as this is the current definitive version unless new bugs are found)

Blake Izayoi
Volcano Lotus
Volcano Lotus
Posts: 598
Joined: Sun Feb 23, 2014 1:55 pm
Flair: Sakuya's Husband
Pronouns: He / Him
Contact:

Re: chocomap.lua (v1.2) - better overworld, now with undocumented memory access

Postby Blake Izayoi » Fri Nov 12, 2021 4:22 pm

This is really amazing. Fantastic work making the basegame overworld better!

FutureNyanCat
Eerie
Eerie
Posts: 765
Joined: Fri Dec 20, 2013 8:39 pm
Flair: Species: Felis robotus
Pronouns: He/Him
Contact:

Re: chocomap.lua (v1.2) - better overworld, now with undocumented memory access

Postby FutureNyanCat » Wed Nov 17, 2021 10:04 am

Honestly? I feel this deserves to be in SMBX2's full release. It gives players who prefer making vanilla overworld maps even more control over what they can do, especially for animated scenery, paths, and tiles. Nice work.

deice
Volcano Lotus
Volcano Lotus
Posts: 596
Joined: Fri Jul 23, 2021 7:35 am

Re: chocomap.lua (v1.2) - better overworld, now with undocumented memory access

Postby deice » Wed Nov 17, 2021 12:16 pm

Hatsune Blake wrote:
Fri Nov 12, 2021 4:22 pm
This is really amazing. Fantastic work making the basegame overworld better!
FutureNyanCat2014 wrote: It gives players who prefer making vanilla overworld maps even more control over what they can do, especially for animated scenery, paths, and tiles. Nice work.
thanks for the compliments fellas, means a lot. i didn't think many people would care much for this with somewhat more robust map replacements like map3d or smwmap around ^^"
FutureNyanCat2014 wrote: Honestly? I feel this deserves to be in SMBX2's full release.
yea as i said i count on most of this being implemented into smbx2 when the staff starts to put more focus towards the overworld (as right now the documentation is a bit lacking for some overworld elements, and others aren't even named properly in the lunalua source) though i'm sure that whatever they come up with will be much faster performance-wise as it'll probably involve directly messing with the game's routines as opposed to chocomap which just draws a massive black rectangle over the player's viewport


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari