Difference between revisions of "Pikmin 2 memory addresses"

From Pikmin Technical Knowledge Base
Jump to navigation Jump to search
(Added current cutscene timer ID.)
(pre pended with 0x, it not being there annoyed me to much lol)
 
(6 intermediate revisions by 4 users not shown)
Line 5: Line 5:
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
! rowspan="2" | Variable || colspan="6" | Address || rowspan="2" | Type || rowspan="2" | Notes
+
! rowspan="2" | Variable || colspan="7" | Address || rowspan="2" | Type || rowspan="2" | Notes
 
|-
 
|-
! GC US || GC EU || GC JP || Wii US || Wii EU || Wii JP
+
! GC US Final || GC EU || GC JP || GC US Demo || Wii US || Wii EU || Wii JP
 
|-
 
|-
 
! Olimar's X
 
! Olimar's X
| <code>80E0D9B0</code> || <code>00E11C50</code> || <code>00E0F7B0</code> || <code></code> || <code></code> || <code></code> || 4-byte float || Horizontal movement.
+
| <code>0x80E0D9B0</code> || <code>0x80E11C50</code> || <code>0x80E0F7B0</code> || <code></code> || <code>0x923BC714</code> || <code></code> || <code></code> || 4-byte float || Horizontal movement.
 
|-
 
|-
 
! Olimar's Y
 
! Olimar's Y
| <code>80E0D9B4</code> || <code>00E11C54</code> || <code>00E0F7B4</code> || <code></code> || <code></code> || <code></code> || 4-byte float || Vertical movement; positive is up.
+
| <code>0x80E0D9B4</code> || <code>0x80E11C54</code> || <code>0x80E0F7B4</code> || <code></code> || <code>0x923BC718</code> || <code></code> || <code></code> || 4-byte float || Vertical movement; positive is up.
 
|-
 
|-
 
! Olimar's Z
 
! Olimar's Z
| <code>80E0D9B8</code> || <code>00E11C58</code> || <code>00E0F7B8</code> || <code></code> || <code></code> || <code></code> || 4-byte float || Horizontal movement.
+
| <code>0x80E0D9B8</code> || <code>0x80E11C58</code> || <code>0x80E0F7B8</code> || <code></code> || <code>0x923BC71C</code> || <code></code> || <code></code> || 4-byte float || Horizontal movement.
 
|-
 
|-
 
! Louie/President's X
 
! Louie/President's X
| <code>00E0DCD0</code> || <code>00E11F70</code> || <code>00E0FAD0</code> || <code></code> || <code></code> || <code></code> || 4-byte float || Horizontal movement.
+
| <code>0x80E0DCD0</code> || <code>0x80E11F70</code> || <code>0x80E0FAD0</code> || <code></code> || <code>0x923BCA54</code> || <code></code> || <code></code> || 4-byte float || Horizontal movement.
 
|-
 
|-
 
! Louie/President's Y
 
! Louie/President's Y
| <code>00E0DCD4</code> || <code>00E11F74</code> || <code>00E0FAD4</code> || <code></code> || <code></code> || <code></code> || 4-byte float || Vertical movement.
+
| <code>0x80E0DCD4</code> || <code>0x80E11F74</code> || <code>0x80E0FAD4</code> || <code></code> || <code>0x923BCA58</code> || <code></code> || <code></code> || 4-byte float || Vertical movement.
 
|-
 
|-
 
! Louie/President's Z
 
! Louie/President's Z
| <code>00E0DCD8</code> || <code>00E11F78</code> || <code>00E0FAD8</code> || <code></code> || <code></code> || <code></code> || 4-byte float || Horizontal movement.
+
| <code>0x80E0DCD8</code> || <code>0x80E11F78</code> || <code>0x80E0FAD8</code> || <code></code> || <code>0x923BCA5C</code> || <code></code> || <code></code> || 4-byte float || Horizontal movement.
 
|}
 
|}
  
Line 32: Line 32:
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
! rowspan="2" | Variable || colspan="6" | Address || rowspan="2" | Type || rowspan="2" | Notes
+
! rowspan="2" | Variable || colspan="7" | Address || rowspan="2" | Type || rowspan="2" | Notes
 
|-
 
|-
! GC US || GC EU || GC JP || Wii US || Wii EU || Wii JP
+
! GC US Final || GC EU || GC JP || GC US Demo || Wii US || Wii EU || Wii JP
 
|-
 
|-
 
! Red Leafs in Onion
 
! Red Leafs in Onion
| <code>0092F98B</code> || <code>02942BAA</code> || || || || || 2-byte unsigned int ||  
+
| <code>0x8092F98B</code> || <code>0x80942BAA</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Red Buds in Onion
 
! Red Buds in Onion
| <code></code> || <code>02942BAE</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BAE</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Red Flowers in Onion
 
! Red Flowers in Onion
| <code></code> || <code>02942BB2</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BB2</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Purple Leafs in Ship
 
! Purple Leafs in Ship
| <code></code> || <code>02942BC2</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BC2</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Purple Buds in Ship
 
! Purple Buds in Ship
| <code></code> || <code>02942BC6</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BC6</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Purple Flowers in Ship
 
! Purple Flowers in Ship
| <code></code> || <code>02942BCA</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BCA</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! White Leafs in Ship
 
! White Leafs in Ship
| <code></code> || <code>02942BCE</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BCE</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! White Buds in Ship
 
! White Buds in Ship
| <code></code> || <code>02942BD2</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BD2</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! White Flowers in Ship
 
! White Flowers in Ship
| <code></code> || <code>02942BD6</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BD6</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Yellow Leafs in Onion
 
! Yellow Leafs in Onion
| <code></code> || <code>02942BB6</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BB6</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Yellow Buds in Onion
 
! Yellow Buds in Onion
| <code></code> || <code>02942BBA</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BBA</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Yellow Flowers in Onion
 
! Yellow Flowers in Onion
| <code></code> || <code>02942BBE</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BBE</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Blue Leafs in Onion
 
! Blue Leafs in Onion
| <code></code> || <code>02942B9E</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942B9E</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Blue Buds in Onion
 
! Blue Buds in Onion
| <code></code> || <code>02942BA2</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BA2</code> || || || || || || 2-byte unsigned int ||  
 
|-
 
|-
 
! Blue Flowers in Onion
 
! Blue Flowers in Onion
| <code></code> || <code>02942BA6</code> || || || || || 2-byte unsigned int ||  
+
| <code></code> || <code>0x80942BA6</code> || || || || || || 2-byte unsigned int ||  
 
|}
 
|}
  
Line 86: Line 86:
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
! rowspan="2" | Variable || colspan="6" | Address || rowspan="2" | Type || rowspan="2" | Notes
+
! rowspan="2" | Variable || colspan="7" | Address || rowspan="2" | Type || rowspan="2" | Notes
 
|-
 
|-
! GC US || GC EU || GC JP || Wii US || Wii EU || Wii JP
+
! GC US Final || GC EU || GC JP || GC US Demo || Wii US || Wii EU || Wii JP
 
|-
 
|-
 
! Current day
 
! Current day
| || <code>04B0FBD8</code> || || || || || 4-byte unsigned int || Day 1 is <code>0</code>, day 2 is <code>1</code>, etc.
+
| <code>0x80B0B4B8</code> || <code>0x80B0FBD8</code> || || || || || || 4-byte unsigned int || Day 1 is <code>0</code>, day 2 is <code>1</code>, etc.
 
|-
 
|-
 
! Current total Poko count
 
! Current total Poko count
| || <code>04942A7C</code> || || || || || 4-byte unsigned int ||  
+
| <code>0x8092F85C</code> || <code>0x80942A7C</code> || || || || || || 4-byte unsigned int ||
 +
|-
 +
! Current underground Poko count
 +
| <code>0x8092F860</code> || || || || || || || 4-byte unsigned int ||  
 
|-
 
|-
 
! Ultra-spicy spray count
 
! Ultra-spicy spray count
| || <code>04942A54</code> || || || || || 4-byte unsigned int
+
| || <code>0x80942A54</code> || || || || || || 4-byte unsigned int ||
 
|-
 
|-
 
! Ultra-bitter spray count
 
! Ultra-bitter spray count
| || <code>04942A58</code> || || || || || 4-byte unsigned int
+
| || <code>0x80942A58</code> || || || || || || 4-byte unsigned int ||
 
|}
 
|}
  
Line 106: Line 109:
 
{| class="wikitable sortable"
 
{| class="wikitable sortable"
 
|-
 
|-
! rowspan="2" | Variable || colspan="6" | Address || rowspan="2" | Type || rowspan="2" | Notes
+
! rowspan="2" | Variable || colspan="7" | Address || rowspan="2" | Type || rowspan="2" | Notes
 
|-
 
|-
! GC US || GC EU || GC JP || Wii US || Wii EU || Wii JP
+
! GC US Final || GC EU || GC JP || GC US Demo || Wii US || Wii EU || Wii JP
 
|-
 
|-
 
! Current cutscene timer ID
 
! Current cutscene timer ID
| || <code>0x009FDE6E</code> || || || || || 2-byte unsigned int ||  
+
| || <code>0x809FDE6E</code> || || || || || || 2-byte unsigned int ||
 +
|-
 +
! Current RNG seed
 +
| <code>0x805148A8</code> || <code>0x805155A0</code> || <code>0x805163A8</code> || <code>0x805147E0</code> || || || || 4-byte unsigned int ||  
 
|}
 
|}
  
 
[[Category:Memory addresses]]
 
[[Category:Memory addresses]]
 
[[Category:Pikmin 2]]
 
[[Category:Pikmin 2]]

Latest revision as of 11:51, 20 May 2024

A list of memory addresses for important things in Pikmin 2.

Leader coordinates[edit]

Variable Address Type Notes
GC US Final GC EU GC JP GC US Demo Wii US Wii EU Wii JP
Olimar's X 0x80E0D9B0 0x80E11C50 0x80E0F7B0 0x923BC714 4-byte float Horizontal movement.
Olimar's Y 0x80E0D9B4 0x80E11C54 0x80E0F7B4 0x923BC718 4-byte float Vertical movement; positive is up.
Olimar's Z 0x80E0D9B8 0x80E11C58 0x80E0F7B8 0x923BC71C 4-byte float Horizontal movement.
Louie/President's X 0x80E0DCD0 0x80E11F70 0x80E0FAD0 0x923BCA54 4-byte float Horizontal movement.
Louie/President's Y 0x80E0DCD4 0x80E11F74 0x80E0FAD4 0x923BCA58 4-byte float Vertical movement.
Louie/President's Z 0x80E0DCD8 0x80E11F78 0x80E0FAD8 0x923BCA5C 4-byte float Horizontal movement.

Pikmin count[edit]

Variable Address Type Notes
GC US Final GC EU GC JP GC US Demo Wii US Wii EU Wii JP
Red Leafs in Onion 0x8092F98B 0x80942BAA 2-byte unsigned int
Red Buds in Onion 0x80942BAE 2-byte unsigned int
Red Flowers in Onion 0x80942BB2 2-byte unsigned int
Purple Leafs in Ship 0x80942BC2 2-byte unsigned int
Purple Buds in Ship 0x80942BC6 2-byte unsigned int
Purple Flowers in Ship 0x80942BCA 2-byte unsigned int
White Leafs in Ship 0x80942BCE 2-byte unsigned int
White Buds in Ship 0x80942BD2 2-byte unsigned int
White Flowers in Ship 0x80942BD6 2-byte unsigned int
Yellow Leafs in Onion 0x80942BB6 2-byte unsigned int
Yellow Buds in Onion 0x80942BBA 2-byte unsigned int
Yellow Flowers in Onion 0x80942BBE 2-byte unsigned int
Blue Leafs in Onion 0x80942B9E 2-byte unsigned int
Blue Buds in Onion 0x80942BA2 2-byte unsigned int
Blue Flowers in Onion 0x80942BA6 2-byte unsigned int

Adventure stats[edit]

Variable Address Type Notes
GC US Final GC EU GC JP GC US Demo Wii US Wii EU Wii JP
Current day 0x80B0B4B8 0x80B0FBD8 4-byte unsigned int Day 1 is 0, day 2 is 1, etc.
Current total Poko count 0x8092F85C 0x80942A7C 4-byte unsigned int
Current underground Poko count 0x8092F860 4-byte unsigned int
Ultra-spicy spray count 0x80942A54 4-byte unsigned int
Ultra-bitter spray count 0x80942A58 4-byte unsigned int

Gameplay control[edit]

Variable Address Type Notes
GC US Final GC EU GC JP GC US Demo Wii US Wii EU Wii JP
Current cutscene timer ID 0x809FDE6E 2-byte unsigned int
Current RNG seed 0x805148A8 0x805155A0 0x805163A8 0x805147E0 4-byte unsigned int