Custom world map textures not loading in play mode [Solved]

Need help with any SMBX game-related issues? Ask your questions here.

Moderator: Userbase Moderators

SleepySalami
Shy Guy
Shy Guy
Posts: 8
Joined: Tue Jul 09, 2024 8:18 pm
Flair: lost my old account, whoopsie daisy
Pronouns: He/Him

Custom world map textures not loading in play mode [Solved]

Postby SleepySalami » Mon Jun 30, 2025 10:17 am

Hello good folks!

I'm working on a thing, and i edited some world map sprites, as seen below:

Image

So far no confusion there. Where it begins to go crazy is when i try the map in play mode. All the custom/edited textures on the world map, for whatever reason, aren't loaded in play mode. I have no idea why it does this, so im hoping one you guys may have a clue perhaps.

Here's a demonstration of play mode:

Image

(P.S.: additionally, i am unable to even test the map it self in the editor for some reason, the button to play test the map is grayed out. there is a functioning level on said map, just in case that matters in this case, just thought id mention that.)

would love to hear back from one of you,
Have a swell day! :D
Last edited by SleepySalami on Tue Jul 01, 2025 9:17 am, edited 1 time in total.

Trilogy
2025 Egg Hunter
2025 Egg Hunter
Posts: 377
Joined: Thu Jul 25, 2024 5:34 am
Flair: Deltarune CH3 ending is so mindblowing smh
Pronouns: he/him/ham/his/hit

Re: Custom world map textures not loading in play mode

Postby Trilogy » Mon Jun 30, 2025 10:39 am

did you save the graphics in the same folder as where the world file is?

also, just play by starting a save file. that is also another thing i dont know why for some reason.

SleepySalami
Shy Guy
Shy Guy
Posts: 8
Joined: Tue Jul 09, 2024 8:18 pm
Flair: lost my old account, whoopsie daisy
Pronouns: He/Him

Re: Custom world map textures not loading in play mode

Postby SleepySalami » Mon Jun 30, 2025 10:56 am

Yeah, everything is where it should be. I can see the custom graphics in the editor it self (also how i got the image above to show them off) so that doesnt seem to be whats broken. very strange.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9886
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Custom world map textures not loading in play mode

Postby Emral » Mon Jun 30, 2025 6:41 pm

SleepySalami wrote: Yeah, everything is where it should be. I can see the custom graphics in the editor it self
This to me indicates that things perhaps aren't where they should be. I'm noticing you haven't responded to Hyperflower's specific question: "did you save the graphics in the same folder as where the world file is?"
While for levels you generally want to put graphics in the folder named after the level, this was never implemented for world maps, so world map files need to be in the episode folder (or for SMBX2 also viable is a "graphics/ subdirectory in the episode folder, like myepisode/graphics/tile/, myepisode/graphics/level/).
The editor can read them in the world's folder so that might be why you're seeing these mixed results.
Please double check that the graphics and the world file are in the root directory of your episode.

If this doesn't fix it, it would help if you could upload a zip of all relevant files so someone can investigate directly.

SleepySalami
Shy Guy
Shy Guy
Posts: 8
Joined: Tue Jul 09, 2024 8:18 pm
Flair: lost my old account, whoopsie daisy
Pronouns: He/Him

Re: Custom world map textures not loading in play mode

Postby SleepySalami » Mon Jun 30, 2025 11:35 pm

My bad, i think i may have misunderstood their question. I proceeded to put the sprites in the root file and low and behold, they now show up! so thank you guys for that, though now the issue is that they are for some reason all kinds of messed up looking. would it perhaps be a better idea to make some of the sprites specifically custom sprites for the custom tab for them to work properly? It confuses me a bit since in the editor everything looks quite as it should be. thoughts?

here's what it looks like now in play mode:


Image

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9886
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Custom world map textures not loading in play mode

Postby Emral » Tue Jul 01, 2025 2:41 am

Aha! Progress!
Hm... there's a lot going on here. I'd be able to help more if I had a view of the files themselves...
Some guesses:

1. tiles (tile-1, etc) don't automatically scale up (unlike in the editor) which is annoying.
2. sceneries miiiiight also have the same issue, but i'm not super sure at the moment.

There are ways around this.
A lightweight solution is adding ExtMap to your project. It adds txt files for the overworld elements, so you can define sizes and stuff. viewtopic.php?t=26202
Similar but a bit more involved is xmap. This is the one I've used before, but I've used this engine for an abhorrent amount of time so it might be hard to get into. I'm posting it to be thorough. viewtopic.php?t=27965

SleepySalami
Shy Guy
Shy Guy
Posts: 8
Joined: Tue Jul 09, 2024 8:18 pm
Flair: lost my old account, whoopsie daisy
Pronouns: He/Him

Re: Custom world map textures not loading in play mode

Postby SleepySalami » Tue Jul 01, 2025 5:42 am

Ive decided to try and go with ExtMap! since most of the stuff i wanna do doesn't need to be too crazy. I put what was contained in the zip file (the lua script and the folder with the txt files in it) into my episode folder, like so:

Image

Afterwards, i went inside of the ext_map folder, then inside of the scene folder to edit the txt file for the palm tree. I took the dimensions of my custom one and inserted it into the txt like so:

Image

So far so good. i think? I then opened my world map in the editor, and copy-pasted what was written inside of the extended_map.lua into the LunaLua world map script. Saved everything and reloaded the map, then went over to play mode to see if it did anything, and the result was a nothing burger, the palm tree was still cut-off. This is most likely due to an error on my end setting this up weird or missing a crucial step.

Emral, have you used ExtMap before? if so, how did you set up yours?

P.S.: if you need my files to look around inside of in case of it being easier to solve, then lemme know, i'm very thankful to be receiving help!

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9886
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Custom world map textures not loading in play mode

Postby Emral » Tue Jul 01, 2025 6:07 am

I've not used extmap myself, sorry. For my last map I went with xmap.
and copy-pasted what was written inside of the extended_map.lua into the LunaLua world map script
I think this is where you went wrong. I could've explained it better earlier but was strapped for time.
Instead of copypasting the contents of extmap into map.lua, try making this the whole contents of map.lua:

Code: Select all

local extmap = require("extended_map.lua")

SleepySalami
Shy Guy
Shy Guy
Posts: 8
Joined: Tue Jul 09, 2024 8:18 pm
Flair: lost my old account, whoopsie daisy
Pronouns: He/Him

Re: Custom world map textures not loading in play mode

Postby SleepySalami » Tue Jul 01, 2025 6:19 am

Okay we're getting somewhere slowly but surely! i replaced what i had copy-pasted in map.lua with the line you provided. I loaded the map up in play mode, and it proceeded to give me this error:

Image

perhaps this could give clues as to what is jumbled.

Emral
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 9886
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Phoenix

Re: Custom world map textures not loading in play mode

Postby Emral » Tue Jul 01, 2025 7:20 am

Oh, I'm stupid. It should be require("extended_map") without the .lua at the end. Sorry about that!

SleepySalami
Shy Guy
Shy Guy
Posts: 8
Joined: Tue Jul 09, 2024 8:18 pm
Flair: lost my old account, whoopsie daisy
Pronouns: He/Him

Re: Custom world map textures not loading in play mode

Postby SleepySalami » Tue Jul 01, 2025 7:31 am

Oh don't sweat it, and look, it worked! Now i can keep working on my world map and such. Thank you so so much!!

Image


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 1 guest

SMWCentralTalkhausMario Fan Games GalaxyKafukaMarioWikiSMBXEquipoEstelari