Difference between revisions of "Pikmin 2 waterboxes"

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search
 
Line 1: Line 1:
waterboxes are txt files that control where water is placed in a map. They are located in '''user/kando/map/<map name here>/texts.szs/waterbox.txt''. Each box of water contains 6 values that control where the box is placed, although we do not know what each value does, when they are changed the water can be moved. [[File:Pikmin_water_hack.png|300px|thumb|left|A bit of water hacked in Awakening Wood]]
+
Waterboxes are txt files that control where water is placed in a map. They are located in '''user/kando/map/<map name here>/texts.szs/waterbox.txt''. Each box of water contains 6 values that control where the box is placed, although we do not know what each value does, when they are changed the water can be moved. [[File:Pikmin_water_hack.png|300px|thumb|left|A bit of water hacked in Awakening Wood]]
The syntax starts with the line "0 # type" not sure what it means, maybe there are other types of water? The next line  
+
The syntax starts with the line "0 # type" not sure what it means, maybe there are other types of water? The next line is also quite ambiguous, "# CNode" the chances are this was some initialiser in the code or something like that. After that is an opening curly brace a new line and a single number, the amount of lines of lines with 6 values. After that are lines of six values, probably doubles, that control where and what shape the box is. It will always be a box. At the end of the line is a fraction, the number in the order of the line, counting up from 0: E.g if it were the fourth line and there 6 in total, it would be 3/6. The very last number would end in 5/6. After that, all there is is a closing bracket for the block of data
 
 
 
 
 
 
  
  

Revision as of 08:10, 24 February 2017

Waterboxes are txt files that control where water is placed in a map. They are located in 'user/kando/map/<map name here>/texts.szs/waterbox.txt. Each box of water contains 6 values that control where the box is placed, although we do not know what each value does, when they are changed the water can be moved.

A bit of water hacked in Awakening Wood

The syntax starts with the line "0 # type" not sure what it means, maybe there are other types of water? The next line is also quite ambiguous, "# CNode" the chances are this was some initialiser in the code or something like that. After that is an opening curly brace a new line and a single number, the amount of lines of lines with 6 values. After that are lines of six values, probably doubles, that control where and what shape the box is. It will always be a box. At the end of the line is a fraction, the number in the order of the line, counting up from 0: E.g if it were the fourth line and there 6 in total, it would be 3/6. The very last number would end in 5/6. After that, all there is is a closing bracket for the block of data








To do: Understand each individual value and the first two lines