Difference between revisions of "Pokémon Trading Card Game:RAM map"

From Data Crystal
Jump to: navigation, search
(reformatted page.)
(WRAM)
 
(58 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{rammap|game=Pokemon TCG}}
+
{{rammap|game=Pokémon Trading Card Game}}
 +
==USA==
 +
RAM map there: https://github.com/pret/poketcg/blob/master/src/wram.asm <br>
 +
Letting some data here for quick access though.
  
==Miscellaneous==
+
===SRAM===
* <tt>C200-C23B</tt> - P1 cards' ingame locations.
+
Address Size    Description
* <tt>C27E-C2B9</tt> - P1 library card order.
+
------- ----   -----------
* <tt>C2BB-C2C0</tt> - P1 pokemon card indices.
+
  A101    227    Cards (including built decks) (SRAM)
* <tt>C2C8-C2CD</tt> - P1 pokemon health.
+
  B701      2    Number of decks registered without name
* <tt>C300-C33B</tt> - P2 cards' ingame locations.
 
* <tt>C37E-C3B9</tt> - P2 library card order.
 
* <tt>C3BB-C3C0</tt> - P2 pokemon card indices.
 
* <tt>C3C8-C3CD</tt> - P2 pokemon health.
 
* <tt>C400-C409</tt> - <b>After a match</b>: Card IDs for booster pack contents.
 
* <tt>C400-C43B</tt> - <b>During a match</b>: P1 deck card IDs
 
* <tt>C480-C4BB</tt> - P2 deck card IDs
 
* <tt>CC00 .......</tt> - <b>During a match</b>: Number of Prizes
 
<b>Note</b>: A card index is an offset into the array at either C400 or C480, which when resolved gives you the card ID.
 
  
===Location Values===
+
===WRAM===
00 - Library<br>
+
Address Size    Description
01 - Hand<br>
+
------- ----    -----------
02 - Discard<br>
+
  C001    227    Cards (excluding built decks)
04 - Removed from Game<br>
+
  C200    60    P1 card positions during battle
08 - Prize<br>
+
  C27E    60    P1 deck card order during battle
10 - Active<br>
+
  C2BB      6    P1 Pokémon on the field IDs
11 - Benched #1<br>
+
  C2C8      6    P1 Pokémon HPs
12 - Benched #2<br>
+
  C300    60    P2 card positions during battle
13 - Benched #3<br>
+
  C37E    60    P2 deck card order during battle
14 - Benched #4<br>
+
  C3BA      1    P2 Number of cards drawn from Deck
15 - Benched #5<br>
+
  C3BB      6    P2 Pokémon on the field IDs
 +
  C3C8      6    P2 Pokémon HPs
 +
  C3E8      1    P2 Active Sub-status 1
 +
  C3E8      1    P2 Active Sub-status 2
 +
  C3E9      1    P2 Active Sub-status 3
 +
  C3EA      1    P2 Active Sub-status 4
 +
  C3EB      1    P2 Active Sub-status 5
 +
  C3EC      1    P2 Number of Prizes
 +
  C3ED      1    P2 Number of cards in Discard Pile
 +
  C3EE      1    P2 Number of cards in hand
 +
  C3EF      1    P2 Number of Pokémon in play
 +
  C400    60    During battle : P1 deck
 +
                Out of battle : Booster pack
 +
  C480    60    P2 deck
 +
  CAC5      1    Time (frames)
 +
  CAC6      1    Time (seconds)
 +
  CAC7      1    Time (minutes)
 +
  CAC8      2    Time (hours)
 +
  CACA      2    Pseudo Random Number
 +
                Its value changes on:
 +
                • coin toss (once)
 +
                • deck shuffle (once)
 +
                • random Attack (e. g. Lv. 68 Zapdos's Big Thunder) (once)
 +
                • random Pokémon Power (e. g. L. 40 Moltres's Firegiver) (once)
 +
                • Tutorial battle (set to predetermined value)
 +
                • new game / continue menu (every frame)
 +
                • start menu (every frame)
 +
                • building (every 60 frames)
 +
  CACC      1    PRNG count
 +
  CC0B      1    Has an Energy card been played this turn ? (stays at 0 if Water Energy with Rain Dance)
 +
  CC0D      1    Current player's turn
 +
  CD0A      1    ?
 +
  CD0B      1    ?
 +
  CD0D      1    Uppercase switch
 +
  CDD2      1    P1 Prizes left
 +
  CF68    32    Amount of each card in selected color (deck builder)
 +
  D0BB      1    [[Pokémon Trading Card Game:Notes#Room_IDs|Room ID]]
 +
  D0BC      1   x coordinate
 +
  D0BD      1    y coordinate
 +
  D0BF      1    World Map mode
 +
                  0x00: On
 +
                  0x01: Off
 +
  D117      1    ?
 +
  D11D      1    [[Pokémon Trading Card Game:Notes#Mail_IDs|Mail ID currently selected]]
 +
  D11E    15    [[Pokémon Trading Card Game:Notes#Mail_IDs|Mail IDs  + already opened status]]
 +
  D12E      1    [[Pokémon Trading Card Game:Notes#Mail_IDs|Mail read + already opened status]]
 +
  D291      1    ?
 +
  D32E      1    World Map cursor
 +
  D32F      1    Room ID (Copy)
 +
  D3D2      1    Medals
 +
  D669      1    Booster generation: Booster data offset
 +
  D66A      1    Booster generation: Pseudo-Random Number between 0 and ''n''
 +
  D66B      1    ? (Booster generation)
 +
  D66C      1    ? (Booster generation)
 +
  D66D      1    ? (Booster generation, generated from array at 7:64E4 by func_7:6430)
 +
  D66E      3    ? (Booster generation)
 +
  D686    12    Booster data array (retrieved from 7:64E4)
 +
1:D334    1    Direction of character
 +
                00 : Up
 +
                01 : Right
 +
                02 : Down
 +
                03 : Left
 +
1:D4D5    1    Direction of character
 +
                1E : Up
 +
                1F : Right
 +
                20 : Down
 +
                21 : Left
 +
1:D4D7    1    Direction of character
 +
                05 : Up
 +
                DA : Right
 +
                E9 : Down
 +
                00 : Left
  
===Card IDs===
+
===HRAM===
00 - Nothing<br>
+
Address Size    Description
01 - Grass Energy<br>
+
------- ----   -----------
02 - Fire Energy<br>
+
  FF80      1    ROM Bank
03 - Water Energy<br>
+
  FF81      1    RAM Bank
04 - Lightning Energy<br>
+
  FF82      1    VRAM Bank
05 - Fighting Energy<br>
+
  FF97      1    Current turn
06 - Psychic Energy<br>
+
  FFB6      1    ? (set to 0x10 by func_0:3C5A)
07 - Double Colorless Energy<br>
 
08 - Bulbasaur<br>
 
09 - Ivysaur<br>
 
0A - Venusaur (CP! Promo)<br>
 
0B - Venusaur<br>
 
0C - Caterpie<br>
 
0D - Metapod<br>
 
0E - Butterfree<br>
 
0F - Weedle<br>
 
10 - Kakuna<br>
 
11 - Beedrill<br>
 
12 - Ekans<br>
 
13 - Arbok<br>
 
14 - Nidoran Female<br>
 
15 - Nidorina<br>
 
16 - Nidoqueen<br>
 
17 - Nidoran Male<br>
 
18 - Nidorino<br>
 
19 - Nidoking<br>
 
1A - Zubat<br>
 
1B - Golbat<br>
 
1C - Oddish<br>
 
1D - Gloom<br>
 
1E - Vileplume<br>
 
1F - Paras<br>
 
20 - Parasect<br>
 
21 - Venonat<br>
 
22 - Venomoth<br>
 
23 - Bellsprout<br>
 
24 - Weepinbell<br>
 
25 - Victreebell<br>
 
26 - Grimer<br>
 
27 - Muk<br>
 
28 - Exeggcute<br>
 
29 - Exeggutor<br>
 
2A - Koffing<br>
 
2B - Wheezing<br>
 
2C - Tangela (GB)<br>
 
2D - Tangela<br>
 
2E - Scyther<br>
 
2F - Pinsir<br>
 
30 - Charmander<br>
 
31 - Charmelion<br>
 
32 - Charizard<br>
 
33 - Vulpix<br>
 
34 - Ninetales<br>
 
35 - Ninetales (GB)<br>
 
36 - Growlithe<br>
 
37 - Arcanine (Promo)<br>
 
38 - Arcanine<br>
 
39 - Ponyta<br>
 
3A - Rapidash<br>
 
3B - Magmar<br>
 
3C - Magmar (Fossil)<br>
 
3D - Flareon (GB)<br>
 
3E - Flareon (Jungle)<br>
 
3F - Moltres<br>
 
40 - Legendary Moltres<br>
 
41 - Squirtle<br>
 
42 - Wartortle<br>
 
43 - Blastoise<br>
 
44 - Psyduck<br>
 
45 - Golduck<br>
 
46 - Poliwag<br>
 
47 - Poliwhirl<br>
 
48 - Poliwrath<br>
 
49 - Tentacool<br>
 
4A - Tentacruel<br>
 
4B - Seel<br>
 
4C - Dewgong<br>
 
4D - Shellder<br>
 
4E - Cloister<br>
 
4F - Krabby<br>
 
50 - Kingler<br>
 
51 - Horsea<br>
 
52 - Seadra<br>
 
53 - Goldeen<br>
 
54 - Seaking<br>
 
55 - Staryu<br>
 
56 - Starmie<br>
 
57 - Magikarp<br>
 
58 - Gyarados<br>
 
59 - Lapras<br>
 
5A - Vaporeon (GB)<br>
 
5B - Vaporeon (Jungle)<br>
 
5C - Omanyte<br>
 
5D - Omastar<br>
 
5E - Articuno<br>
 
5F - Legendary Articuno<br>
 
60 - Pikachu<br>
 
61 - Pikachu (Jungle)<br>
 
62 - Pikachu (promo)<br>
 
63 - Pikachu (promo2)<br>
 
64 - Flying Pikachu<br>
 
65 - Surfing Pikachu<br>
 
66 - Surfing Pikachu (2)<br>
 
67 - Raichu<br>
 
68 - Raichu (Fossil)<br>
 
69 - Magnemite<br>
 
6A - Magnemite (GB)<br>
 
6B - Magneton<br>
 
6C - Magneton (Fossil)<br>
 
6D - Voltorb<br>
 
6E - Electrode (GB)<br>
 
6F - Electrode (Jungle)<br>
 
70 - Electabuzz (Promo)<br>
 
71 - Electabuzz<br>
 
72 - Jolteon (GB)<br>
 
73 - Jolteon<br>
 
74 - Zapdos<br>
 
75 - Zapdos (Fossil)<br>
 
76 - Legendary Zapdos<br>
 
77 - Sandshrew<br>
 
78 - Sandslash<br>
 
79 - Diglett<br>
 
7A - Dugtrio<br>
 
7B - Mankey<br>
 
7C - Primeape<br>
 
7D - Machop<br>
 
7E - Machoke<br>
 
7F - Machamp<br>
 
80 - Geodude<br>
 
81 - Graveler<br>
 
82 - Golem<br>
 
83 - Onix<br>
 
84 - Cubone<br>
 
85 - Marowak (Jungle)<br>
 
86 - Marowak (GB)<br>
 
87 - Hitmonlee<br>
 
88 - Hitmonchan<br>
 
89 - Rhyhorn<br>
 
8A - Rhydon<br>
 
8B - Kabuto<br>
 
8C - Kabutops<br>
 
8D - Aerodactlyl<br>
 
8E - Abra<br>
 
8F - Kadabra<br>
 
90 - Alakazam<br>
 
91 - Slowpoke (Promo)<br>
 
92 - Slowpoke (Fossil)<br>
 
93 - Slowbro<br>
 
94 - Gastly<br>
 
95 - Gastly (Fossil)<br>
 
96 - Haunter (Fossil)<br>
 
97 - Haunter<br>
 
98 - Gengar<br>
 
99 - Drowzee<br>
 
9A - Hypno<br>
 
9B - Mr. Mime<br>
 
9C - Jynx<br>
 
9D - Mewtwo<br>
 
9E - Mewtwo (Promo)<br>
 
9F - Mewtwo (Promo 2)<br>
 
A0 - Mew (Promo)<br>
 
A1 - Mew (CP! Promo)<br>
 
A2 - Mew<br>
 
A3 - Pidgey<br>
 
A4 - Pidgeotto<br>
 
A5 - Pidgeot (GB)<br>
 
A6 - Pidgeot (Jungle)<br>
 
A7 - Rattata<br>
 
A8 - Raticate<br>
 
A9 - Spearow<br>
 
AA - Fearow<br>
 
AB - Clefairy<br>
 
AC - Clefable<br>
 
AD - Jigglypuff (Promo)<br>
 
AE - Jigglypuff (GB)<br>
 
AF - Jigglypuff (Jungle)<br>
 
B0 - Wigglytuff<br>
 
B1 - Meowth (GB)<br>
 
B2 - Meowth (Jungle)<br>
 
B3 - Persian<br>
 
B4 - Farfetch'd<br>
 
B5 - Doduo<br>
 
B6 - Dodrio<br>
 
B7 - Lickitung<br>
 
B8 - Chansey<br>
 
B9 - Kangaskhan<br>
 
BA - Tauros<br>
 
BB - Ditto<br>
 
BC - Eevee<br>
 
BD - Porygon<br>
 
BE - Snorlax<br>
 
BF - Dratini<br>
 
C0 - Dragonair<br>
 
C1 - Legendary Dragonite<br>
 
C2 - Dragonite<br>
 
C3 - Professor Oak<br>
 
C4 - Imposter Professor Oak<br>
 
C5 - Bill<br>
 
C6 - Mr. Fuji<br>
 
C7 - Lass<br>
 
C8 - Imakuni?<br>
 
C9 - Pokemon Trader<br>
 
CA - Pokemon Breeder<br>
 
CB - Clefairy Doll<br>
 
CC - Mysterious Fossil<br>
 
CD - Energy Retrieval<br>
 
CE - Super Energy Retrieval<br>
 
CF - Energy Search<br>
 
D0 - Energy Removal<br>
 
D1 - Super Energy Removal<br>
 
D2 - Switch<br>
 
D3 - Pokemon Center<br>
 
D4 - Pokeball<br>
 
D5 - Scoop Up<br>
 
D6 - Computer Search<br>
 
D7 - Pokedex<br>
 
D8 - Pluspower<br>
 
D9 - Defender<br>
 
DA - Item Finder<br>
 
DB - Gust of Wind<br>
 
DC - Devolution Spray<br>
 
DD - Potion<br>
 
DE - Super Potion<br>
 
DF - Full Heal<br>
 
E0 - Revive<br>
 
E1 - Maintenance<br>
 
E2 - Pokemon Flute<br>
 
E3 - Gambler<br>
 
E4 - Recycle<br>
 
  
[[Category:Pokemon TCG|RAM map]]
+
==Europe A==
 +
===WRAM===
 +
Address Size    Description
 +
------- ----    -----------
 +
  C591    20    Text to be copied to VRAM
 +
  CC04      1    Language
 +
                00 : English
 +
                01 : German
 +
                02 : French
 +
  CD10      1    ?
 +
  CD11      1    Character being read
 +
  CFEF    20    Deck name
 +
 
 +
{{Internal Data|game=Pokémon Trading Card Game}}

Latest revision as of 17:15, 21 June 2016

USA

RAM map there: https://github.com/pret/poketcg/blob/master/src/wram.asm
Letting some data here for quick access though.

SRAM

Address Size    Description
------- ----    -----------
 A101    227    Cards (including built decks) (SRAM)
 B701      2    Number of decks registered without name

WRAM

Address Size    Description
------- ----    -----------
 C001    227    Cards (excluding built decks)
 C200     60    P1 card positions during battle
 C27E     60    P1 deck card order during battle
 C2BB      6    P1 Pokémon on the field IDs
 C2C8      6    P1 Pokémon HPs
 C300     60    P2 card positions during battle
 C37E     60    P2 deck card order during battle
 C3BA      1    P2 Number of cards drawn from Deck
 C3BB      6    P2 Pokémon on the field IDs
 C3C8      6    P2 Pokémon HPs
 C3E8      1    P2 Active Sub-status 1
 C3E8      1    P2 Active Sub-status 2
 C3E9      1    P2 Active Sub-status 3
 C3EA      1    P2 Active Sub-status 4
 C3EB      1    P2 Active Sub-status 5
 C3EC      1    P2 Number of Prizes
 C3ED      1    P2 Number of cards in Discard Pile
 C3EE      1    P2 Number of cards in hand
 C3EF      1    P2 Number of Pokémon in play
 C400     60    During battle : P1 deck
                Out of battle : Booster pack
 C480     60    P2 deck
 CAC5      1    Time (frames)
 CAC6      1    Time (seconds)
 CAC7      1    Time (minutes)
 CAC8      2    Time (hours)
 CACA      2    Pseudo Random Number
                Its value changes on:
                • coin toss (once)
                • deck shuffle (once)
                • random Attack (e. g. Lv. 68 Zapdos's Big Thunder) (once)
                • random Pokémon Power (e. g. L. 40 Moltres's Firegiver) (once)
                • Tutorial battle (set to predetermined value)
                • new game / continue menu (every frame)
                • start menu (every frame)
                • building (every 60 frames)
 CACC      1    PRNG count
 CC0B      1    Has an Energy card been played this turn ? (stays at 0 if Water Energy with Rain Dance)
 CC0D      1    Current player's turn
 CD0A      1    ?
 CD0B      1    ?
 CD0D      1    Uppercase switch
 CDD2      1    P1 Prizes left
 CF68     32    Amount of each card in selected color (deck builder)
 D0BB      1    Room ID
 D0BC      1    x coordinate
 D0BD      1    y coordinate
 D0BF      1    World Map mode
                 0x00: On
                 0x01: Off
 D117      1    ?
 D11D      1    Mail ID currently selected
 D11E     15    Mail IDs  + already opened status
 D12E      1    Mail read + already opened status
 D291      1    ?
 D32E      1    World Map cursor
 D32F      1    Room ID (Copy)
 D3D2      1    Medals
 D669      1    Booster generation: Booster data offset
 D66A      1    Booster generation: Pseudo-Random Number between 0 and n
 D66B      1    ? (Booster generation)
 D66C      1    ? (Booster generation)
 D66D      1    ? (Booster generation, generated from array at 7:64E4 by func_7:6430)
 D66E      3    ? (Booster generation)
 D686     12    Booster data array (retrieved from 7:64E4)
1:D334     1    Direction of character
                00 : Up
                01 : Right
                02 : Down
                03 : Left
1:D4D5     1    Direction of character
                1E : Up
                1F : Right
                20 : Down
                21 : Left
1:D4D7     1    Direction of character
                05 : Up
                DA : Right
                E9 : Down
                00 : Left

HRAM

Address Size    Description
------- ----    -----------
 FF80      1    ROM Bank
 FF81      1    RAM Bank
 FF82      1    VRAM Bank
 FF97      1    Current turn
 FFB6      1    ? (set to 0x10 by func_0:3C5A)

Europe A

WRAM

Address Size    Description
------- ----    -----------
 C591     20    Text to be copied to VRAM
 CC04      1    Language
                00 : English
                01 : German
                02 : French
 CD10      1    ?
 CD11      1    Character being read
 CFEF     20    Deck name


Internal Data for Pokémon Trading Card Game

ROM MapRAM MapText TableNotesTutorials