Difference between revisions of "Cave unit definition file"
Line 57: | Line 57: | ||
|- | |- | ||
|| <div style='text-align: center;'><code>1_ABE_manp_boss_conc.txt</code></div> || <div style='text-align: center;'>Concrete</div> || <code>item_cap_conc</code>, <code>way3_conc</code>,<br> <code>way4_conc</code>, <code>wayl_conc</code>,<br> <code>way2_conc</code>, <code>way2x2_conc</code>,<br> <code>room_manh7x7p_boss_conc</code> || [[File:P2CU item cap conc.jpg|64px]] [[File:P2CU way3 conc.jpg|64px]] [[File:P2CU way4 conc.jpg|64px]] [[File:P2CU wayl conc.jpg|64px]] [[File:P2CU way2 conc.jpg|64px]] [[File:P2CU way2x2 conc.jpg|64px]] [[File:P2CU room manh7x7p 9 conc.jpg|64px]] | || <div style='text-align: center;'><code>1_ABE_manp_boss_conc.txt</code></div> || <div style='text-align: center;'>Concrete</div> || <code>item_cap_conc</code>, <code>way3_conc</code>,<br> <code>way4_conc</code>, <code>wayl_conc</code>,<br> <code>way2_conc</code>, <code>way2x2_conc</code>,<br> <code>room_manh7x7p_boss_conc</code> || [[File:P2CU item cap conc.jpg|64px]] [[File:P2CU way3 conc.jpg|64px]] [[File:P2CU way4 conc.jpg|64px]] [[File:P2CU wayl conc.jpg|64px]] [[File:P2CU way2 conc.jpg|64px]] [[File:P2CU way2x2 conc.jpg|64px]] [[File:P2CU room manh7x7p 9 conc.jpg|64px]] | ||
+ | |- | ||
+ | || <div style='text-align: center;'><code>1_ABE_mid1_boss_tsuchi.txt</code></div> || <div style='text-align: center;'>Soil</div> || <code>item_cap_tsuchi</code>, <code>way3_tsuchi</code>, <code>way4_tsuchi</code>, <br><code>wayl_tsuchi</code>, <code>way2_tsuchi</code>, <code>way2x2_tsuchi</code>, <code>room_mid1_6_boss_tsuchi</code> || [[File:P2CU item cap tsuchi.jpg|64px]] [[File:P2CU way3 tsuchi.jpg|64px]] [[File:P2CU way4 tsuchi.jpg|64px]] [[File:P2CU wayl tsuchi.jpg|64px]] [[File:P2CU way2 tsuchi.jpg|64px]] [[File:P2CU way2x2 tsuchi.jpg|64px]] [[File:P2CU_room_mid1_6_tsuchi.jpg|64px]] | ||
|- | |- | ||
|| <div style='text-align: center;'>TBA</div> || <div style='text-align: center;'>TBA</div> || <div style='text-align: center;'>TBA</div> || <div style='text-align: center;'>TBA</div> | || <div style='text-align: center;'>TBA</div> || <div style='text-align: center;'>TBA</div> || <div style='text-align: center;'>TBA</div> || <div style='text-align: center;'>TBA</div> |
Revision as of 10:57, 15 August 2024
In Pikmin 2, each sublevel points to a cave unit definition file. These files can be found in /user/Mukki/mapunits/units
, and contain a list of units that the game is allowed to use to create the cave with. This file just tells the generator how each cave unit attaches with one another. In other words, this file specifies all the rooms to spawn in a sublevel, depending on that sublevel's room count ({f005}
).
Contents
Header
After a decorated set of comments that say units definition file
comes a line containing the number of units defined in this file. This line is commented with number of units
. Each unit's data is defined inside its own block, and conveniently has a comment before it that mentions its name.
Unit
Line | Example | Description | Comment |
---|---|---|---|
1 | 1 |
Version | version
|
2 | room_ike1_2_tsuchi |
Folder name of the unit to spawn | foldername
|
3 | 7 6 |
Width (7) and length (6) of the unit that's spawning (line 3); defines how many cave grid cells this unit | dX/dZ ; cell size
|
4 | 1 |
Room type: 0=dead end, 1=room, 2=hallway | room type
|
5 | 0 1 |
The unit's "room" flags. Judging by the name, and how most of the "room" type units have it set to 1, it's presumed to help count the room units as... well, rooms and not hallways or dead ends. Changing it to anything other than 1, or 0 for the non-room units, doesn't seem to do anything though. | room Flags
|
6 | 2 |
The number of doors (exits) the unit has | num doors
|
From this point onwards, before ending the unit entry, there are four lines for each door sub-entry.
Line | Example | Description | Comment |
---|---|---|---|
1 | 0 |
Door index | index
|
2 | 0 0 0 |
Direction, offset (starting from the left, determines how many cells to the right the door is), and wpindex (The index of the route waypoint for that door) | dir/offs/wpindex
|
3 | 1 |
The number of doors this can link to | door links
|
From this point onwards, before ending the door sub-entry, there is one line for each door link.
Line | Example | Description | Comment |
---|---|---|---|
1 | 1258.716064 0 1 |
Distance (used within score calculation), Door-id (Maps to another door index), and tekiflag Unknown[unsure] | dist/door-id/tekiflag
|
File list
This is a list of unit definition files, their theme and what units they contain.