Turn On Defense Control By Default
Note:
Full credit to @smozoma for the original hack. This post details the process of incorporating it into the disassembled ROM, allowing it to be recompiled into the game with configurable options. Tutorials to follow in the future on how you can recompile the rom yourself.
Problem:
Defense Control is turned off as a default setting in the game, but the majority of SNES players favor having it enabled from the start.
Solution:
The same as the original hack, we have to swap out some of the existing code and insert a jump to new code we create. This new code will be placed in the free space at the end of the 9F bank.
[1] Hijack old code and have it jump to the new code we add at the bottom of the bank. Line 322
[2] New code to turn on Defense Control for Home and Away teams. Line 11391
[3] I've introduced a variable named !Defense_Control, which you have the option to enable or disable during the compilation of your ROM. The intention is to add more configurable variables for ROM building in the future. Currently, there are two additional variables available: one to adjust penalty duration and another to activate the hidden 30-second periods.
BONUS INFO:
The code we initially diverted from was actually responsible for determining the starting goalie in the game. This opens up potential for further modifications, such as automatically starting the 2nd goalie, or even enabling on-the-fly pulling of the goalie without needing to pause the game.
nhl94.sfc