Quantcast
Channel: Super Mario Bros. X Forums
Viewing all articles
Browse latest Browse all 2628

Episodes • Re: Level Collection (v1.4.1)

$
0
0
Yeah, was also going to say myself that the recent Beta 5 update seemingly broke compatibility with this particular episode if you try to play it via the Episode Launcher. You get a couple of nasty lua errors. Choosing 'Cancel' gives you a non-functional level select screen.
This is the reason: These pieces of code point to lines containing the term "Level.name()". There was a bug in Beta 4 that caused Level.name() to output the filename (minus the .lvlx extension) instead of the level name set in the editor settings, and that was fixed in Beta 5. Because Level_transition.lua and custom_menu.lua were using this bug to run that particular piece of code, fixing the bug in SMBX2 Beta 5 also broke both libraries and will need to be adjusted.

In both level_transition.lua and custom_menu.lua, replace all instances of "Level.name()" with this code: "Misc.levelFolder():sub(1,-2)" (no quotation marks).

custom_menu.lua lines 112-115 should look like this if done correctly:

Code:

--local eggCounter = SaveData.eggInfo.egg_counterlocal player_level = tonumber(Misc.levelFolder():sub(1,-2))local starCounter = mem(0x00B251E0, FIELD_WORD)local currentCounter = player_level
level_transition.lua lines 3-4 should look like this if done correctly:

Code:

local level_value = tonumber(Misc.levelFolder():sub(1,-2))local current_level = tonumber(Misc.levelFolder():sub(1,-2))
It is best to attempt fixing this in Notepad++, as it shows line numbers and you can easily search up those lines as well via its Find function.
Special thanks to Rednaxela for figuring out a fix to this. Please play the episode with caution as some things may more or less break due to various changes in SMBX2 Beta 5.

Statistics: Posted by FutureNyanCat — Tue Mar 05, 2024 9:00 am



Viewing all articles
Browse latest Browse all 2628

Trending Articles