Water.extm: Difference between revisions

Waikuteru (talk | contribs)
Ginger (talk | contribs)
Water Map Data: Fix offsets
 
(2 intermediate revisions by 2 users not shown)
Line 29: Line 29:
|2
|2
|Unsigned Short
|Unsigned Short
|<code>xAxisFlowRate 128= no flow</code>
|<code>xAxisFlowRate</code> 128 = no flow
|-
|-
|0x04
|0x04
|2
|2
|Unsigned Short
|Unsigned Short
|<code>zAxisFlowRate 128= no flow</code>
|<code>zAxisFlowRate</code> 128 = no flow
|-
|-
|0x05
|0x06
|1
|1
|Unsigned Byte
|Unsigned Byte
|<code>materialIndex + 3</code>. This may act as a checksum?
|<code>materialIndex + 3</code>. This may act as a checksum?
|-
|-
|0x06
|0x07
|1
|1
|Unsigned Byte
|Unsigned Byte
Line 47: Line 47:
|}
|}


<code>height</code> and <code>flowSpeed</code> are stored as unsigned shorts, but seem to map to float values. These can be calculated by dividing by the max size of an unsigned short:
<code>height</code> and <code>flowRate</code> are stored as unsigned shorts, but seem to map to float values. These can be calculated by dividing by the max size of an unsigned short:


<syntaxhighlight lang="c" line="line">
<syntaxhighlight lang="c" line="line">