Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Advertise here

Go Back   The PokéCommunity Forums > ROM Hacking > Research & Development
Notices

Research & Development Got a well-founded knack with ROM hacking? Love reverse-engineering the Pokémon games? Or perhaps you love your assembly language. This is the spot for polling and gathering your ideas, and then implementing them! Share your hypothesis, get ideas from others, and collaborate to create!
Research & Development programs in this forum are subject to moderator approval before they are displayed.

Post Reply
 
Thread Tools
  #1    
Old August 8th, 2010, 08:32 AM
knizz's Avatar
knizz
 
Join Date: Aug 2007

Advertise here
I tracked three important variables during the game that point to code for the active gamemode and wrote their values down to get a better overview of the Gamecode.

Thanks to JPAN for giving me a hint.

Code:
Left   value found at 030030F0
Middle value found at 030030F4
Right  value found at 03005090

         | 080ec821 | 080775e5 Copyright message
         | 080ec5b9 |
         | 080ec871 | 080ecab1
         | 080ec9d5 |          Intro
         | 08078915 | 080775e5
         |          | 08078c25
         | 08078b9d |          Press Start
         | 0800c301 | 080775e5
         | 0800c2d5 | 0800c4d1 "The 1M Sub-Circuit-board ..."
         |          | 0800c705
         |          | 0800ca95
         | 0812eb11 | 0812eb59 Tutorial
         |          | 0812f0b1   - Controls fadein 
         |          | 0812f181   - Controls fadeout
         |          | 0812ef51   - Controls ?
         |          | 0812f4a9   - Story pages
         |          | 0812f72d   - Story ?
         |          | 0812f7c1   - Story fadeout
         |          | 0812f881   - Professor fadein
         |          | 0812f945   - "Hello..."
         |          | 0812f9ed   - "This world..."
         |          | 0812fb4d   - Pokeball opens "...is inhabited fa"
         |          | 0812fbf1   - "For some people..."
         |          | 0812fc69   - Pokeball closes
         |          | 0812fd79   - "But first tell me..."
         |          | 0812fdc1   - Professor fadeout
         |          | 0812fe89   - "Are you a boy or a girl?"
         |          | 0812ffa5   - "Boy" | "Girl"
         |          | 0812fff1   - ??
         |          | 08130051   - ??
         |          | 081300a1   - Character fadein
         |          | 08130161   - "Let's begin with your name..."
         |          | 081303b5   - Everything fadeout

         | 0809d9e1 | 080775e5 Pre-name-chooser
         |          | 0809f26d
         | 0809fb71 |          Name-chooser

         | 08130c65 |          Return to tutorial from name-chooser
         | 0812eb11 | <Note 1> Tutorial
         | 08056645 | 080775e5 Black
         |          | 08079dbd Black

08056535 | 080565b5 | 08079e0d Overworld
         | 0805671d |          Switch Map 1
00000000 | 080c9bfd | 080775e5 Switch Map 2
         | 080c9bd1 |          Switch Map 3
         | 0805674d | 08079dbd Switch Map 4 (and then back to "Overworld")

         | 08107eb9 |          Pre-start-menu-item (when from OW)

         | 08107f11 | 080775e5 Pre-bag 1
         |          | 08108f0d Pre-bag 2
         | 08107ee1 |          Bag
         |          | 08108b51 Post-bag 1
         |          | 08108b8d Post-bag 2

         | 080895b9 | 080775e5
         |          | 080890c1
         | 08089071 |          Trainercard

         | 08088389 |          Pre-options 1
         | 08088455 | 080775e5 Pre-options 2
         |          | 08088781 Pre-options 3
         | 0808835d |          Options


         | 08126eb1 |          Pre-pokemon-list from start-menu 1
         | 0811ebd1 | 080775e5 Pre-pokemon-list from start-menu 2
         | 0811eba1 | 0811fb29 Pokemon-list from start-menu
         |          | 08122c5d   - with opened sub-menu
         |          | 0811fab5   - switch to details

         | 0811ebd1 | 08120c3d Pre-pokemon-list from battle
         | 0811eba1 | 08120c6d Pokemon-list from battle
         |          | 08120ca9   - Darken screen for Oak
         |          | 08120cd9   - ??
         |          | 08120d09   - Oak: "It's important to get to know your..."
         |          | 08120d41   - ??
         |          | 08120d7d   - Highlight first pokemon
         |          | 08120dad   - ??
         |          | 08120de1   - Oak: "This is a list of you Pokemon."
         |          | 08120e1d   - ??
         |          | 08120e59   - Normal Pokemon-list from battle

         | 08122d79 |          Pre-pokemon-details 1
         | 08135c35 |          Pre-pokemon-details 2

         | 08137ee9 | 08134841 Pokemon-details
         |          | 08134e85   - Pre-known-moves
         |          | 08138cd9   - Known-moves
         |          | 081351a1   - Post-known-moves

         | 08122dbd |          Post-pokemon-details 1
         | 0811ebd1 | 080775e5 Post-pokemon-details 2
         |          | 08122c31 Post-pokemon-details 3

	 | 080565a9 |          Battle-start-animation
         | 0800fd9d | 080775e5 Pre-battle
         | 08010509 |          Pre-battle 2
080123e5 | 08011101 |          Battle
         |          | 080bc9d5   - Scene fadein
         |          | 080775e5   - "... would like to battle"
         |          | 080491b1   - ??
         |          | 08049389   - throw ball animation
         |          | 080493e5   - ball appears and falls on the ground
         |          | 080f06a5   - pokemon gets out of the pokeball
         |          | 0802fdf5   - Menu (during first fight also Prof. Oak.)
         |          | 080775e5       - Choose "Pokemon"


         | 08030aed | ???????? Return to battle from bag
         | 08030add | ???????? Return to battle from pokemon-list
         | 08077765 | ???????? Return to battle 2
         | 080777e9 | ???????? Return to battle 3

08056535 | 080804ad | ???????? Battle to OW 1 (var 1 is the same as for OW)
         | 080568e1 | ???????? Battle to OW 2 (followed by "Return to OW 2")
         | 080568a9 |          Return to OW from start-menu-item
         | 080cc145 |          Return to OW from name-chooser
         | 08056809 | 080775e5 Return to OW 2
         |          | 08079dbd

Note 1: During the first part of the professors speech (before typing in
        the name) the substates are handled using the variable of the third
        column. After that a different variable is used. I don't know which.
Firered IDA 6.1 DB: https://www.dropbox.com/s/hvvmxxoo1dkmdzc/firered.idb
VBA-M with lua scripting support (no longer in development)

Last edited by knizz; August 9th, 2010 at 03:23 AM.
  #2    
Old August 9th, 2010, 08:05 AM
Shiny Quagsire's Avatar
Shiny Quagsire
どないやねん, ヤドン
 
Join Date: May 2009
Location: Hoenn Safari Zone
Age: 16
Gender: Male
Nature: Jolly
So, with this, we could edit the intro? Also, the two part after the boy/girl might be a writing function to the boy/girl byte. Just a thought



  #3    
Old August 13th, 2010, 04:44 AM
knizz's Avatar
knizz
 
Join Date: Aug 2007
I started a wiki to organize my research-results. The table from above is there too.

http://www.wikihost.org/w/fr_rom_int/
Firered IDA 6.1 DB: https://www.dropbox.com/s/hvvmxxoo1dkmdzc/firered.idb
VBA-M with lua scripting support (no longer in development)

Last edited by knizz; August 14th, 2010 at 02:49 PM.
  #4    
Old August 13th, 2010, 08:59 PM
~Teh Panda~'s Avatar
~Teh Panda~
Sea of Dreams - Redux
 
Join Date: Aug 2007
Quote:
Originally Posted by knizz View Post
I started a wiki to organize my reasearch-results. The table from above is there too.

http://www.wikihost.org/w/fr_rom_int/
Just wanted to let you know that some of the pages were down. I am not sure if you are planning to update those ones or they are just down, but hey thanks for the wiki and tutorials.




Mystic still in work to let you know...
  #5    
Old August 14th, 2010, 03:01 PM
knizz's Avatar
knizz
 
Join Date: Aug 2007
If you mean the red links: Those pages don't exist yet. I just added them as an outline.
Firered IDA 6.1 DB: https://www.dropbox.com/s/hvvmxxoo1dkmdzc/firered.idb
VBA-M with lua scripting support (no longer in development)
  #6    
Old August 15th, 2010, 07:36 PM
liuyanghejerry's Avatar
liuyanghejerry
Trainer
 
Join Date: Jan 2008
Location: China,Xi'an
Nature: Calm
Send a message via ICQ to liuyanghejerry Send a message via Windows Live Messenger to liuyanghejerry Send a message via Yahoo to liuyanghejerry
This will be useful for anyone who wants to do some ASM hack.
Good job.
Zel,thethethethe,LU-HO,Darthatron,HackMew,ZodiacDaGreat,Juan,score_under,JPAN,Tamah-chan,I really appreciate your kindness and your help!:D


I did something that really bad.But made all Chinese can hack Pokemon, too.If you guys hate me, I totally understand,but cannot do anything but force to keep everything.
If there must be someone to undertake all spit and curse, it must be me.
  #7    
Old October 2nd, 2010, 01:55 AM
knizz's Avatar
knizz
 
Join Date: Aug 2007
I present: Knizz' ROM-Map Version 2

If not menioned otherwise these functions are triggered via 0807741C.
Code:
00000000 Copyright message
080ecab1 Intro starts. A star flies through the screen until it's in the middle.
080ede05 The star continues and eventually leaves the view. The sparks blink.
080edeed Most particles vanish
0812e9f9 "Game Freak" appears on the screen
0812e9f9 The logo fades in
0812e9f9 "Game Freak" and the logo fade out
080ed0ad Grass
080ed141 Zoom in.
080ed40d Gengar vs. Nidorino
080ed429 Change of perspecive
080ed715
080ee201
080ed69d Nidorino makes noise
080ee025 Gengar hits Nidorino. Nidorino strikes back. The scene freezes. Zoom in.
00000000
08078c25
08078bed
080792c9 pokemon silloutte
080718b9 pokemon blink
080718b9 cyan ribbon
080718b9 orange and red ribbon
080718b9 pokemon blink
080718b9 all texts except title: press start (c) 2004 game freak inc
080718b9 pokemon blink
0807941d title and pokemon blink
0807941d Fire! ... Press A or START
08072235 Fadeout
00000000
0800c4d1
0800c705 (by 0800c5fe) screen turns grey
0812eb59
0812f0b1 (by 0812ee70) controls
0812f181 (by 0812f160) text fadeout
0812ef51 (by 0812f240) change first line (title, meaning of A and B)
0812f0b1 (by 0812f08e) controls (after page flipping)
0812f275 (by 0812f25e) controls fadeout
0812f33d (by 0812f31e) pause
0812f4a9 (by 0812f474) story
0812f72d (by 0812f71a) story fadeout
0812f7c1 (by 0812f7a4) pause
0812f881 (by 0812f860) oak fadein
0812f945 (by 0812f92c) oak: "Hello there. Glad to meet you. Welcome..."
0812f9ed (by 0812f9d4) oak: "This world..."
0812fa79 (by 0812fa5a) oak's pokeball appears
08072235
080f06a5
080f12e1
080f1371 (by 080f12ac) pokemon jumps out, screen turns white, "..is i"
080f13c1 (by 080f13a6) pokemon lands on the floor, "..is inhabited fa"
0812fb4d (by 0812fa9e) oak: "..is inhabited far and wide by creatures called Pokemon"
0812fbf1 (by 0812fbd8) oak: "..."
0812fc69 (by 0812fc4c) Textbox disappears
080f06a5
080f12e1
080f1371 (by 080f12ac) Pokemon returns into ball
080f13c1 (by 080f13a6) Remaining sparks disappear
0812fd79 (by 0812fd60) oak: "But first tell me a little about yourself"
08131339
0812fdc1 (by 0812fdb0) oak fadeout
0812fe89 (by 0812fe70) "Now tell me. Are you a boy or a girl?"
0812ffa5 (by 0812ff7c) BOY / GIRL
0812fff1 (by 0812ffda)
08130051 (by 0813003c)
081314dd
081300a1 (by 08130090) hero fadein
0800ca95 (by 0800c772) "Let's begin with your name. What is it?"
081303b5 (by 08130198) fadeout
0809f26d
0809e58d
0809dd89 Choose your name
08130465 "Right... So your name is ..."
08130555 (by 08130542) YES / NO
08131339
08130651 (by 081305ac) Menu and Character fade out
081306d5 (by 08130688)
081314dd
0813071d (by 08130708) grandson fadein
081301b1 (by 081307ba) "This is my grandson."
08130325 (by 08130216) name-multibox
Firered IDA 6.1 DB: https://www.dropbox.com/s/hvvmxxoo1dkmdzc/firered.idb
VBA-M with lua scripting support (no longer in development)
Post Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 06:48 AM.

About Us
© 2002 - 2014 The PokéCommunity™, pokecommunity.com. Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.

Copyright
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com. PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.