Thread: Research: List of Firered Game-modes
View Single Post
  #1    
Old August 8th, 2010 (8:32 AM). Edited August 9th, 2010 by knizz.
knizz's Avatar
knizz knizz is offline
     
    Join Date: Aug 2007
    Posts: 192
    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.6 DB: https://www.dropbox.com/s/d856o3pyndyr5sr/firered.idb
    VBA-M with lua scripting support
    Reply With Quote