autotile.lua - Build Rome in a Day!
Posted: Thu Apr 03, 2025 10:38 am
SCREENSHOTS: show
CHANGELOG: show
Requires Beta 5 and newer.
Bugs? Issues? Setup questions? Post here.
Have fun putting level building onto industrial rails!
Forums for SMBX
https://www.smbxgame.com/forums/
Have fun putting level building onto industrial rails!
What is your SMBX2 version? Mine works on Beta 5 p3
uhhh how do i do that?Alucard648 wrote: ↑Sat Apr 05, 2025 4:52 amWhat is your SMBX2 version? Mine works on Beta 5p3
Looks like you used older SMBX2 version.
EDIT: Have you tried to open the level un beta5 and re-save all tilesets used as autotile patterns?
1. Update SMBX2 to beta 5 or newer. Better apply latest patches.RunninPigeon wrote: ↑Sat Apr 05, 2025 5:17 amuhhh how do i do that?Alucard648 wrote: ↑Sat Apr 05, 2025 4:52 amWhat is your SMBX2 version? Mine works on Beta 5p3
Looks like you used older SMBX2 version.
EDIT: Have you tried to open the level un beta5 and re-save all tilesets used as autotile patterns?
apparently it happens cuz it doesnt scan the tileset again for new changes?Alucard648 wrote: ↑Sat Apr 05, 2025 5:48 am1. Update SMBX2 to beta 5 or newer. Better apply latest patches.RunninPigeon wrote: ↑Sat Apr 05, 2025 5:17 amuhhh how do i do that?Alucard648 wrote: ↑Sat Apr 05, 2025 4:52 am
What is your SMBX2 version? Mine works on Beta 5p3
Looks like you used older SMBX2 version.
EDIT: Have you tried to open the level un beta5 and re-save all tilesets used as autotile patterns?
2. Launch editor.
3. Open your level in question.
4. Go to tileset item box.
5. For each tileset used as autotile pattern, click on pencil button next to it.
6. Inside tileset editor, hit "save" without editing tileset.
If this bug happed after creating new autotile tileset in B4, this might help.
It happens because it tries to look for entry in tileset ID called "type", which denotes item type in tileset(block, BGO, NPC) in mixed tileset (to avoid including NPC IDS, should they happen to be in tileset). This line in each tileset entry is missing in tilesets made in Beta 4 or prior editor. And when script tries to read old tileset, it fails to find line labeled "type" and causes aforementioned error. Re-saving tileset in B5 editor adds those lines for all entries, and script runs normally.RunninPigeon wrote: ↑Sat Apr 05, 2025 6:47 pmapparently it happens cuz it doesnt scan the tileset again for new changes?Alucard648 wrote: ↑Sat Apr 05, 2025 5:48 am1. Update SMBX2 to beta 5 or newer. Better apply latest patches.
2. Launch editor.
3. Open your level in question.
4. Go to tileset item box.
5. For each tileset used as autotile pattern, click on pencil button next to it.
6. Inside tileset editor, hit "save" without editing tileset.
If this bug happed after creating new autotile tileset in B4, this might help.
edit: it actually happens bc its looking for [item 0-0] then [item 1-0] instead of [item 0-0] then [0-1]