Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- STUFF ABOUT THE AUTOSPLITTER:
- https://github.com/zoton2/LiveSplit.Scripts/blob/master/LiveSplit.TheSimpsonsHitAndRun.asl
- There are two issues to fix:
- 1. NG+ is now allowed to do missions in any order, so splitting needs to be redefined
- 2. Runs are allowed to start by loading a tutorial save and skip the intro cutscene
- 1. SPLITTING
- I've found a pointer that returns 1 when "Mission Complete" is displayed on screen, and 0 otherwise (and ?? in the main menu): "Simpsons.exe", 0x2C8930, 0x2B0, 0x284. It doesn't quite line up with the game moving to the next mission, so my thought for the logic is:
- - Set a variable called vars.missionComplete (or something), initially set to 0, and have variables vars.currentMission and vars.currentLevel (or something)
- - When current.missionComplete == 1, set vars.missionComplete = 1 (if it isn't already)
- - When NOT[current.activeLevel == vars.currentLevel && current.activeMission == vars.currentMission] && vars.missionComplete == 1, split. Then set vars.currentLevel=current.activeLevel, vars.currentMission=current.activeMission, and vars.missionComplete=0.
- i.e. when we see a mission complete and then change mission, split. This should give the same timing as we currently have, but allow for any mission order.
- For thoroughness, we could define a variable for each mission, and check each one as 'done' when it has been completed once (and possibly check if the mission has already been completed when splitting, but if someone wants to do a mission twice then they deserve shit splits anyway).
- 2. STARTING FROM 'Resume Game'
- I couldn't find a pointer that activates on clicking resume game (though I only did this for an evening). Instead, we can start the timer on the initial loading screen with the following logic:
- If current.gameState == 8 // Loading a level
- && current.mainMenu == 1 // from the main menu
- && current.newGame == 1 // not from a new game (so we don't double split/restart/whatever on an old-fashioned new game)
- && current.coinsTotal == 0
- && current.activeMission == 0
- && current.activeLevel == 0 // on the tutorial with 0 coins
- && vars.canStart // the game has booted - yoinked from the existing script
- Then start.
- I *think* that works for resetting as well, if we change the first bit to "If old.gameState == 2 && current.gameState == 8"
- [Aside: it might work to delete the first line and have old.mainMenu == 0 & current.mainMenu == 1 instead, if that's neater. Probably means the same code for both starting and resetting (I don't know if that produces a problem)]
- The mods would need to double check what time livesplit should start at, as we're not starting from pressing the button, but from the game loading in.
Add Comment
Please, Sign In to add comment