Welcome to Data Crystal's new home! Data Crystal is now part of the TCRF family (sort of).
The wiki has recently moved; please report any issues in Discord. Pardon the dust.

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

From Data Crystal
Jump to navigation Jump to search
m (Xkeeper moved page Pokémon Trading Card Game:RAM map to Pokémon Trading Card Game/RAM map: normalize subpages and titles)
 
(62 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{{rammap|game=Pokemon TCG}}
{{rammap|game=Pokémon Trading Card Game}}
* <tt>C200 to C23B</tt> - P1 cards' ingame locations.
==USA==
* <tt>C27E to C2B9</tt> - P1 library card order.
RAM map there: https://github.com/pret/poketcg/blob/master/src/wram.asm <br>
* <tt>C2BB to C2C0</tt> - P1 pokemon card indices.
Letting some data here for quick access though.
* <tt>C2C8 to C2CD</tt> - P1 pokemon health.
* <tt>C300 to C33B</tt> - P2 cards' ingame locations.
* <tt>C37E to C3B9</tt> - P2 library card order.
* <tt>C3BB to C3C0</tt> - P2 pokemon card indices.
* <tt>C3C8 to C3CD</tt> - P2 pokemon health.
* <tt>C400 to C409</tt> - <b>After a match</b>: Card IDs for booster pack contents.
* <tt>C400 to C43B</tt> - <b>During a match</b>: P1 deck card IDs
* <tt>C480 to 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.


===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    [[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===
{|
Address Size    Description
|-
------- ----   -----------
! 00
  FF80      1    ROM Bank
| ?
  FF81      1    RAM Bank
! 32
  FF82      1    VRAM Bank
| Charizard
  FF97      1    Current turn
! 64
  FFB6      1    ? (set to 0x10 by func_0:3C5A)
| Flying Pikachu
! 96
| Haunter (Fossil)
! C8
| Imakuni?
|-
! 01
| Grass Energy
! 33
| Vulpix
! 65
| Surfing Pikachu
! 97
| Haunter
! C9
| Pokemon Trader
|-
! 02
| Fire Energy
! 34
| Ninetales
! 66
| Surfing Pikachu (2)
! 98
| Gengar
! CA
| Pokemon Breeder
|-
! 03
| Water Energy
! 35
| Ninetales (GB)
! 67
| Raichu
! 99
| Drowzee
! CB
| Clefairy Doll
|-
! 04
| Lightning Energy
! 36
| Growlithe
! 68
| Raichu (Fossil)
! 9A
| Hypno
! CC
| Mysterious Fossil
|-
! 05
| Fighting Energy
! 37
| Arcanine (Promo)
! 69
| Magnemite
! 9B
| Mr. Mime
! CD
| Energy Retrieval
|-
! 06
| Psychic Energy
! 38
| Arcanine
! 6A
| Magnemite (GB)
! 9C
| Jynx
! CE
| Super Energy Retrieval
|-
! 07
| Double Colorless Energy
! 39
| Ponyta
! 6B
| Magneton
! 9D
| Mewtwo
! CF
| Energy Search:
|-
! 08
| Bulbasaur
! 3A
| Rapidash
! 6C
| Magneton (Fossil)
! 9E
| Mewtwo (Promo)
! D0
| Energy Removal
|-
! 09
| Ivysaur
! 3B
| Magmar
! 6D
| Voltorb
! 9F
| Mewtwo (Promo 2)
! D1
| Super Energy Removal
|-
! 0A
| Venusaur (CP! Promo)
! 3C
| Magmar (Fossil)
! 6E
| Electrode (GB)
! A0
| Mew (Promo)
! D2
| Switch
|-
! 0B
| Venusaur
! 3D
| Flareon (GB)
! 6F
| Electrode (Jungle)
! A1
| Mew (CP! Promo)
! D3
| Pokemon Center
|-
! 0C
| Caterpie
! 3E
| Flareon (Jungle)
! 70
| Electabuzz (Promo)
! A2
| Mew
! D4
| Pokeball
|-
! 0D
| Metapod
! 3F
| Moltres
! 71
| Electabuzz
! A3
| Pidgey
! D5
| Scoop Up
|-
! 0E
| Butterfree
! 40
| Legendary Moltres
! 72
| Jolteon (GB)
! A4
| Pidgeotto
! D6
| Computer Search
|-
! 0F
| Weedle
! 41
| Squirtle
! 73
| Jolteon
! A5
| Pidgeot (GB)
! D7
| Pokedex
|-
! 10
| Kakuna
! 42
| Wartortle
! 74
| Zapdos
! A6
| Pidgeot (Jungle)
! D8
| Pluspower
|-
! 11
| Beedrill
! 43
| Blastoise
! 75
| Zapdos (Fossil)
! A7
| Rattata
! D9
| Defender
|-
! 12
| Ekans
! 44
| Psyduck
! 76
| Legendary Zapdos
! A8
| Raticate
! DA
| Item Finder
|-
! 13
| Arbok
! 45
| Golduck
! 77
| Sandshrew
! A9
| Spearow
! DB
| Gust of Wind
|-
! 14
| Nidoran Female
! 46
| Poliwag
! 78
| Sandslash
! AA
| Fearow
! DC
| Devolution Spray
|-
! 15
| Nidorina
! 47
| Poliwhirl
! 79
| Diglett
! AB
| Clefairy
! DD
| Potion
|-
! 16
| Nidoqueen
! 48
| Poliwrath
! 7A
| Dugtrio
! AC
| Clefable
! DE
| Super Potion
|-
! 17
| Nidoran Male
! 49
| Tentacool
! 7B
| Mankey
! AD
| Jigglypuff (Promo)
! DF
| Full Heal
|-
! 18
| Nidorino
! 4A
| Tentacruel
! 7C
| Primeape
! AE
| Jigglypuff (GB)
! E0
| Revive
|-
! 19
| Nidoking
! 4B
| Seel
! 7D
| Machop
! AF
| Jigglypuff (Jungle)
! E1
| Maintenance
|-
! 1A
| Zubat
! 4C
| Dewgong
! 7E
| Machoke
! B0
| Wigglytuff
! E2
| Pokemon Flute
|-
! 1B
| Golbat
! 4D
| Shellder
! 7F
| Machamp
! B1
| Meowth (GB)
! E3
| Gambler
|-
! 1C
| Oddish
! 4E
| Cloister
! 80
| Geodude
! B2
| Meowth (Jungle)
! E4
| Recycle
|-
! 1D
| Gloom
! 4F
| Krabby
! 81
| Graveler
! B3
| Persian
|-
! 1E
| Vileplume
! 50
| Kingler
! 82
| Golem
! B4
| Farfetch'd
|-
! 1F
| Paras
! 51
| Horsea
! 83
| Onix
! B5
| Doduo
|-
! 20
| Parasect
! 52
| Seadra
! 84
| Cubone
! B6
| Dodrio
|-
! 21
| Venonat
! 53
| Goldeen
! 85
| Marowak (Jungle)
! B7
| Lickitung
|-
! 22
| Venomoth
! 54
| Seaking
! 86
| Marowak (GB)
! B8
| Chansey
|-
! 23
| Bellsprout
! 55
| Staryu
! 87
| Hitmonlee
! B9
| Kangaskhan
|-
! 24
| Weepinbell
! 56
| Starmie
! 88
| Hitmonchan
! BA
| Tauros
|-
! 25
| Victreebell
! 57
| Magikarp
! 89
| Rhyhorn
! BB
| Ditto
|-
! 26
| Grimer
! 58
| Gyarados
! 8A
| Rhydon
! BC
| Eevee
|-
! 27
| Muk
! 59
| Lapras
! 8B
| Kabuto
! BD
| Porygon
|-
! 28
| Exeggcute
! 5A
| Vaporeon (GB)
! 8C
| Kabutops
! BE
| Snorlax
|-
! 29
| Exeggutor
! 5B
| Vaporeon (Jungle)
! 8D
| Aerodactlyl
! BF
| Dratini
|-
! 2A
| Koffing
! 5C
| Omanyte
! 8E
| Abra
! C0
| Dragonair
|-
! 2B
| Wheezing
! 5D
| Omastar
! 8F
| Kadabra
! C1
| Legendary Dragonite
|-
! 2C
| Tangela (GB)
! 5E
| Articuno
! 90
| Alakazam
! C2
| Dragonite
|-
! 2D
| Tangela
! 5F
| Legendary Articuno
! 91
| Slowpoke (Promo)
! C3
| Professor Oak
|-
! 2E
| Scyther
! 60
| Pikachu
! 92
| Slowpoke (Fossil)
! C4
| Imposter Professor Oak
|-
! 2F
| Pinsir
! 61
| Pikachu (Jungle)
! 93
| Slowbro
! C5
| Bill
|-
! 30
| Charmander
! 62
| Pikachu (Promo)
! 94
| Gastly
! C6
| Mr. Fuji
|-
! 31
| Charmelion
! 63
| Pikachu (Promo 2)
! 95
| Gastly (Fossil)
! C7
| Lass


|}
==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


[[Category:Pokemon TCG]]
{{Internal Data|game=Pokémon Trading Card Game}}

Latest revision as of 02:42, 24 January 2024

Chip tiny.png The following article is a RAM map for Pokémon Trading Card Game.

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