MLSS Luascript v0.11 r4
Changes in 0.11 r4:
- Action Commands: Fix misaligned values.
- Battle: Fix bad camera addresses on the US version.
Added support for the demo ROM.
- Warnings: In Savegames, changing the current used file in the options now counts as "editing memory".
Warping to other rooms now counts as "editing memory".
Editing Position, Stats, Items, Action Commands, Flags, Savegames, Misc now counts as "editing memory".
- Run Event: Fixed issue where the script menu became suspended forever.
- Warp to Room: When warping to a room that starts an event while "set pos/cam" is active, doesn't set pos/cam now.
When warping and loading a savestate right after, aborts the warping now.
When trying to warp while the game is busy (e.g. when entering a battle or if there is an event), abourts the warping now.
Added a setting to override events and bad conditions (e.g. when entering a battle).
- Items: Added option to choose whether or not you want the script to account for "can equip" flags.
The item kind "shop" has been split into "consumables", "badges" and "pants".
Equipping and unequipping does not update your stats nor item effect, so I have added a warning telling so. (Might add a workaround hack in the future, but it's low priority)
- Savegames: Removed "equipped pants, badge, coffee" entries because editing it wouldn't update your stats nor item effect. (If you want to change which items are equipped in a savegame, you have to load it, change equips in-game and then save.)
Changes in 0.11 r3:
- Audio: The pace/vol reset button now works only when you "allow edits" in the settings.
- Warnings: In Audio, the pace/volume reset button and the soundtest buttons now count as "editing memory".
- Position: Added speed display.
- Stats/Overview: Fix wrong experience address size.
- Flags/Savegames: Fix wrong "can defend by hammer" flag.
Fix wrong "Thunder Bros Advanced" flag.
Fix wrong "Fire Bros Advanced" flag.
- Battle: When poisoned, it shows the correct status ailment now.
Changes in 0.11 r2:
- Audio: Added soundtest - lets you play most if not all BGM and SFX.
- Savegames: Added more flags.
- Flags: Added more flags.
- Items: Now accounts for "can equip" flags.
- The kiosk demo ROM of the game is now supported. You can only use some displays for now..
- Basic Info renamed to "Overview".
Changes in v0.11 r1:
- Fixed issues related to the timer entries in Savegames and Misc.
- Menu function has been rewritten, which might improve performance.
- Snake game: Fixed script crash when starting Snake.
- Savegames: Added some important flags.
"Auto-Apply Checksum" now works even when the display is closed and it will now affect all three savegames.
Direction now shows a text (up, upright, right, etc.) instead of a number.
- Warnings: Now shows if "Auto-Apply Checksum" is active.
- Green Pipes: Has been renamed to "Flags".
-Free Movement: Moonjump and Through Walls will now only work when you are in control. Should fix all softlock issues.
Camera fix now accounts for Z position. Fixes issue where the camera was displaced when using "Free Movement" and moving across high ledges.
Changes in v0.11:
- Various minor fixes. Reorganized the menu items.
- Made Console Notifications, Warnings, Run While Paused, Add More Space and Change Font to be within a single menu option "Script Settings".
Added a setting to enable/disable all editing functionalities in the script.
- Added "Audio": You can change volume and pace of BGM, in-battle BGM and SFX.
This is a fairly limited functionality and SFX pace cannot be changed on Japanese, apparently. Maybe this will be updated later.
- Added "Savegames": Allows you to view and edit savegame memory.
Specifically, you can edit the room you are in, your position in that room, your stats and "base" stats, the ingame time, bros attack uses and your equipped armor.
You can change the savegame slot the game currently uses.
You can enable/disable savegame slots.
You can not edit flags yet since they haven't been researched (might be added later).
You can not edit items because it was too troublesome to add (please use the regular items display instead).
- Added "Misc": Allows you to edit money, bros attack uses, ingame time, event timer.
- Added "Warp to Room": Allows you to go to other rooms directly.
- Action Commands: Barrel button now works for Luigi behind Mario, too.
- Stats: Added "base" stats and Level.
The edit form has been removed. Please use the display to edit stats.
- Edit Position: Has been renamed to "Free Movement".
Moonjump and Through Walls will now work even when the display is closed.
Camera will now follow the brothers downwards on the Y-axis correctly (although it doesn't account for altitude at the moment).
Fixed that Through Walls didn't count as editing memory.
When controlling only one brother, the "Move around" buttons, Moonjump and Through Walls will now only affect that brother instead of both.
- Warnings: Now shows if Moonjump or Through Walls is active.
- Position: Added editing features.
- Console Notifications: Green pipe change notifications have been removed.
- Battle: Added ailments "Floaty" and "Heavy".
Renamed "Stunned" to "Dizzy".
Fixed some issues where enemies were not considered dead by the script.
Fixed that the 6th enemy slot was considered a brother slot by the script.
- Run Event: Fixed erroneous event pointer for Cackletta (University) on the US version.
Removed duplicate Warp to Larry entry on the US version.
- Basic Information: Fixed that the script crashed on hard reset.
- Holding + or - buttons will now cause numbers to increment/decrement faster
Notes:
- I recommend using Bizhawk 1.11.7 mGBA core.
In Bizhawk 1.11.8.2, the mGBA core has been updated but is broken. The Bizhawk staff has fixed it but has yet to release the next version.
VBA-Next core seems to work fine except for everything that relies on savegames. (The SRAM memory domain is broken)
- In Edit Savegames and in Edit Stats, there are two different kinds of stats you can edit. The normal stats are the values the game currently uses, adding boosts from equipment and possibly considering other aspects. Those values will be recalculated every once in a while (when leveling up or changing equipment). The "base" stats are the values the game will occasionally use to do that recalculation. In other words, editing the normal stats will directly change them but not be permanent. And editing base stats will only take effect after a level-up or changing equipment, but be permanent.
- The layout of various displays has changed to accommodate the use of a single display function. Instead of statically displaying stuff, the script now uses (editable) lists more. Affected displays are Position, Stats, Action Commands, Green Pipes, Savegames. Those displays will have an "E" button that indicates whether or not you are currently in "Edit mode".
- Savegames are stored in both SRAM and in EWRAM. The game loads the savegame from SRAM to EWRAM on power-on/reset. The script relies on the SRAM memory and it doesn't keep the two memory areas synchronous, so if you edit a savegame or use the "enable file" option, you need to reset the game for it to take effect.
- The photo sprite ID and photo spritesheet entries in the Savegame display are tentative names. I actually don't know if those titles are accurate.
EDIT: Added 0.11 r4