Cave: Difference between revisions

19 bytes added ,  10 months ago
m
Line 182: Line 182:
When entering the first sublevel of a cave, the game may or may not switch the player's active leader. This does not happen when the player goes from one sublevel to the next, making it mysterious as to why the leader changes seemingly randomly when going to the first sublevel.
When entering the first sublevel of a cave, the game may or may not switch the player's active leader. This does not happen when the player goes from one sublevel to the next, making it mysterious as to why the leader changes seemingly randomly when going to the first sublevel.


In reality, this happens because of a simple glitch. In order to decide what leader to turn active whenever a sublevel is entered (be it the first or not), the game reads a variable in memory. This variable is also saved onto the [[Saved game|save game data]] and loaded from it. It is set whenever the player goes from one sublevel to the next, which explains why, when the next sublevel is loaded, the game selects the correct leader. However, this variable never gets set when the cave itself is entered. This means that when the first sublevel is finished loading, the game reads the variable, and uses an outdated value, last updated when a sublevel hole was entered. This glitch was not fixed for the ''New Play Control!'' rerelease.
In reality, this happens because of a simple glitch. In order to decide what leader to turn active whenever a sublevel is entered (be it the first or not), the game reads a variable in memory. This variable is also saved onto the [[Saved game|save game data]] and loaded from it. It is set whenever the player goes from one sublevel to the next, which explains why, when the next sublevel is loaded, the game selects the correct leader. However, this variable never gets set when the cave itself is entered. This means that when the first sublevel is finished loading, the game reads the variable, and uses an outdated value, last updated when a sublevel hole was entered. This glitch was not fixed for the ''New Play Control!'' or Nintendo Switch rerelease.


It can also be noted that [[Challenge Mode (Pikmin 2)|Challenge Mode]] uses a different behavior, without a glitch, and that the default value of the variable is 0, meaning that at the start of the game, before the player goes from one sublevel to the next, the game will make Olimar the active leader when entering a cave.
It can also be noted that [[Challenge Mode (Pikmin 2)|Challenge Mode]] uses a different behavior, without a glitch, and that the default value of the variable is 0, meaning that at the start of the game, before the player goes from one sublevel to the next, the game will make Olimar the active leader when entering a cave.
22

edits