2-Player Battle: Difference between revisions

→‎Layout selection: Expanded info on the way stages are generated. Thanks, Drought Ender!
(Added the new game modes navbox template.)
(→‎Layout selection: Expanded info on the way stages are generated. Thanks, Drought Ender!)
Line 110: Line 110:
Excluding the variations of the Pikmin chorus, there are eight different themes that can play: one player wins, Olimar loses due to extinction, Olimar loses due to damage, Louie loses due to extinction, Louie loses due to damage, draw by simultaneous marble-collection, draw by simultaneous extinction, and draw by simultaneous damage.
Excluding the variations of the Pikmin chorus, there are eight different themes that can play: one player wins, Olimar loses due to extinction, Olimar loses due to damage, Louie loses due to extinction, Louie loses due to damage, draw by simultaneous marble-collection, draw by simultaneous extinction, and draw by simultaneous damage.


==Layout selection==
==Stage generation and layouts==
{{image}}
{{image}}
An undocumented feature in the game is the ability to choose the layout for the arena. To activate it, player 1 should be holding a direction on {{button|gc|c}} on the GameCube, or {{button|wii|pad}} on the Wii, while the loading screen with the [[Loading#2-Player_Battle|tips]] is showing up. The time at which the player starts holding does not matter, as long as it's before the loading screen appears, and the player can let go at the loading screen. The game will load the variant determined by the direction pressed.
Unlike [[Story Mode]] and [[Challenge Mode (Pikmin 2)|Challenge Mode]] caves, which generate sublevels by placing [[cave unit]]s randomly, the stages in 2-Player Battle are mostly made by placing specific units in specific spots to end up with layouts hand-made by the developers. That said, the random sublevel generation logic is still in effect during the generation of 2-Player Battle stages.
 
The game begins by loading the list of necessary cave units for the stage, in the same format as the lists used in Story Mode and Challenge Mode. Then, the game places whatever manually-specified units exist in their right places, if any. Finally, it starts filing the stage randomly just like in the other game modes, until the stage is completely generated without any issues.
 
Different stages have different generation modes and different layouts. [[Dim Labyrinth]] has no predefined layout and instead always generates the stage randomly like other caves. [[Carpet Plain]] has 2 predefined layouts. [[Brawl Yard]] has a 20% chance of generating the stage randomly, and an 80% chance of using one of its 3 layouts. All other stages have 3 predefined layouts and nothing else.
 
When the game loads the stage, it starts by deciding if it will generate it randomly or by using the fixed layouts, and then if applicable, chooses at random one of the existing layouts. The method and layout chosen can be manually selected by the player with an undocumented feature. To activate it, player 1 should be holding a direction on {{button|gc|c}} on the GameCube, or {{button|wii|pad}} on the Wii, while the loading screen with the [[Loading#2-Player Battle|tips]] is showing up. The time at which the player starts holding does not matter, as long as it's before the loading screen appears, and the player can let go at the loading screen. The game will load the variant determined by the direction pressed.


*{{button|gc|cu|wii|padu}} '''Up''': Layout #1.
*{{button|gc|cu|wii|padu}} '''Up''': Layout #1.
*{{button|gc|cr|wii|padr}} '''Right''': Layout #2.
*{{button|gc|cr|wii|padr}} '''Right''': Layout #2.
*{{button|gc|cd|wii|padd}} '''Down''': Layout #3.
*{{button|gc|cd|wii|padd}} '''Down''': Layout #3.
*{{button|gc|cl|wii|padl}} '''Left''': Combination.
*{{button|gc|cl|wii|padl}} '''Left''': Random generation.


To know which layout number corresponds to what, please read the corresponding level's article, and check the technical information section. For the [[Carpet Plain]], both right and down result in layout #2. Because [[Dim Labyrinth]] is already randomly generated, holding a direction has no effect there.
To know which layout number corresponds to what, please read the corresponding level's article, and check the technical information section. For the Carpet Plain, both right and down result in layout #2. Because Dim Labyrinth is always randomly generated, holding a direction has no effect there.


Interestingly, by holding left, the level is generated at [[Randomization|random]], like the [[cave]]s in story mode. The list of [[cave units]] to use appears to be the full list of cave units on all three variants combined – if not, it is actually the list described in the otherwise unused text file in the level's normal configuration file. This generation does not take into account balance, meaning that it is unlikely that a stage will be symmetrical, and more often than not, the [[Onion]]s are placed in bizarre and inappropriate locations. The number of rooms to use is the number declared in the level's configuration file; this number is otherwise unused.
By holding left, the level is forced to generate at [[Randomization|random]], even for stages that don't support it. This generation does not take into account balance, meaning that it is unlikely that a stage will be symmetrical, and more often than not, the [[Onion]]s are placed in bizarre and inappropriate locations.


Because of the secrecy of this feature, as well as the potential for gameplay balance problems that arise with the "left" variant, it is likely that this is actually a debugging tool in the game during development, but never removed for the final release.
Because of the secrecy of this feature, as well as the potential for gameplay balance problems that arise with the "left" variant, it is likely that this is actually a debugging tool in the game during development, but never removed for the final release.