Editing Cave unit definition file

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 10: Line 10:
 
! Line || Example || Description || Comment
 
! Line || Example || Description || Comment
 
|-
 
|-
| 1 || <code>1</code> || Version || <code>version</code>
+
| 1 || <code>{</code> || Open unit entry || No comment
 
|-
 
|-
| 2 || <code>room_ike1_2_tsuchi</code> || Folder name of the unit to spawn || <code>foldername</code>
+
| 2 || <code>1</code> || Version || <code>version</code>
 
|-
 
|-
| 3 || <code>7 6</code> || Width (7) and length (6) of the unit that's spawning (line 3); defines how many cave grid cells this unit || <code>dX/dZ ; cell size</code>
+
| 3 || <code>room_ike1_2_tsuchi</code> || Folder name of the unit to spawn || <code>foldername</code>
 
|-
 
|-
| 4 || <code>1</code> || Room type: 0=dead end, 1=room, 2=hallway || <code>room type</code>
+
| 4 || <code>7 6</code> || Width (7) and height (6) of the unit that's spawning (line 3); defines how many cave grid cells this unit || <code>dX/dZ ; cell size</code>
 
|-
 
|-
| 5 || <code>0 1</code> || 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. || <code>room Flags</code>
+
| 5 || <code>1</code> || Room type: 0=dead end, 1=room, 2=hallway || <code>room type</code>
 
|-
 
|-
| 6 || <code>2</code> || The number of doors (exits) the unit has || <code>num doors</code>
+
| 6 || <code>0 1</code> || The unit's flags; {{unknown}} || <code>room Flags</code>
 +
|-
 +
| 7 || <code>2</code> || The number of doors (exits) the unit has || <code>num doors</code>
 
|}
 
|}
  
Line 30: Line 32:
 
| 1 || <code>0</code> || Door index || <code>index</code>
 
| 1 || <code>0</code> || Door index || <code>index</code>
 
|-
 
|-
| 2 || <code>0 0 0</code> || 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) || <code>dir/offs/wpindex</code>
+
| 2 || <code>0 0 0</code> || Direction, offset, and wpindex {{unsure}} || <code>dir/offs/wpindex</code>
 
|-
 
|-
 
| 3 || <code>1</code> || The number of doors this can link to || <code>door links</code>
 
| 3 || <code>1</code> || The number of doors this can link to || <code>door links</code>
Line 40: Line 42:
 
! Line || Example || Description || Comment
 
! Line || Example || Description || Comment
 
|-
 
|-
| 1 || <code>1258.716064 0 1</code> || Distance (used within score calculation), Door-id (Maps to another door index), and tekiflag {{unknown}} || <code>dist/door-id/tekiflag</code>
+
| 1 || <code>1258.716064 0 1</code> || Distance, door ID, and tekiflag || <code>dist/door-id/tekiflag</code>
 
|}
 
|}
  
{{Credits|Jimble, Kai}}
+
{{todo|Offs and wp index need to be documented}}
 +
 
 +
[[File:Dir3.png|200px|thumb|right|An example of <code>dirs</code> set on <code>3</code> while all other room <code>dirs</code> are set on <code>2</code>.]]
 +
 
 +
'''Line 3:''' The number of door links. For example, <code>2 # door links</code>.
 +
 
 +
'''Line 4(+):''' Ddst/door-id/tekiflag; there are as many lines for these three numbers as there are door links (specified in line 3). For example, <code>849.951904 1 1 # dist/door-id/tekiflag</code>.
 +
 
 +
{{Credits|Jimble, Kai-Kai}}
 
[[Category:Pikmin 2]]
 
[[Category:Pikmin 2]]
 
[[Category:File formats]]
 
[[Category:File formats]]

Please note that all contributions to Pikmin Technical Knowledge Base are considered to be released under the Creative Commons Attribution-ShareAlike (see Pikmin Technical Knowledge Base:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Templates used on this page: