Editing Pikmin 2 waterboxes
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 1: | Line 1: | ||
[[File:Pikmin_water_hack.png|300px|thumb|right|Water modified in the ''Awakening Wood'']] | [[File:Pikmin_water_hack.png|300px|thumb|right|Water modified in the ''Awakening Wood'']] | ||
− | + | Waterboxes are text files that control where water is placed in an area. They are located in <code>user/kando/map/*/texts.szs/waterbox.txt</code>. Each body of water is defined by a [[wikipedia:Cuboid|cuboid]]. | |
==Format== | ==Format== | ||
===Header=== | ===Header=== | ||
− | + | Waterbox files start with a number, commented with <code>type</code>, {{unsure|whose meaning is unknown}}. | |
− | + | Then, the list of boxes starts after the line commented with <code>CNode</code>, and is defined inside curly braces. Each body of water is defined in one line. | |
− | + | The very first line of the list of boxes indicates how many there are in total. | |
− | === | + | ===Box=== |
− | + | The boxes are defined by two 3D points. You can think of this like the first point being the "top-left-front" point, and the other to be the "bottom-right-back" point. In the list inside the file, each box is one line long, and consists of 6 space-separated numbers. The first number is the X coordinate of the first point, the second number is the Y coordinate of the first point, etc. So, the format is basically <code>X1 Y1 Z1 X2 Y2 Z2</code>. | |
− | |||
− | + | Each line also has a comment at the end with the number of the box (starts at 0), and the total number of boxes (e.g. <code>2/4</code>). These comments are optional, though. | |
==Example== | ==Example== | ||
Line 20: | Line 19: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | ! File line | + | ! File line || Line explanation |
|- | |- | ||
− | + | | <pre>0 # type</pre> || Type of waterbox file. {{unsure|Meaning is unknown.}} | |
|- | |- | ||
− | + | | <pre># CNode</pre> || | |
|- | |- | ||
− | + | | <pre>{</pre> || Start of the list of boxes. | |
|- | |- | ||
− | + | | <pre> 2 </pre> || Total number of boxes. | |
|- | |- | ||
− | + | | <pre> -3700.000000 -110.000000 850.000000 -2500.000000 -10.000000 1650.000000 # 0/2</pre> || <code>X1 Y1 Z1 X2 Y2 Z2</code> of the first box. | |
|- | |- | ||
− | + | | <pre> -2000.000000 -90.000000 50.000000 -1000.000000 10.000000 1450.000000 # 1/2</pre> || <code>X1 Y1 Z1 X2 Y2 Z2</code> of the second box. | |
|- | |- | ||
− | + | | <pre>}</pre> || End of the list of boxes. | |
|} | |} | ||
− | Notes: While the water will still appear and be animated, if the | + | Notes: While the water will still appear and be animated, if the y-axis (or depth/second value) isn't large enough then it will not behave like water. |
[[Category:Pikmin 2]] | [[Category:Pikmin 2]] | ||
[[Category:File formats]] | [[Category:File formats]] |