Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Go Back   The PokéCommunity Forums > Members List
Notices

haven1433 haven1433 is offline

Modder / Programmer

Visitor Messages

Showing Visitor Messages 1 to 2 of 2
  1. DoesntKnowHowToPlay
    February 22nd, 2014 03:33 PM
    DoesntKnowHowToPlay
    Someone left a list of RAM offsets for Ruby somewhere, and mentioned that they weren't DMA-encrypted there but they were in FR- one of them was options. I put a breakpoint on it in VBA-SDL-H (there are other debuggers but it's what I use) and found the code responsible for reading them before asking the player if they want to switch. I then took the surrounding ASM, searched for it in FR, and adjusted it to be unconditional. This actually broke some other things as well, most notably confusion (pokemon always hurt themselves while confused but had a 50% chance of doing 0 damage)- a bit of looking at the code while it ran revealed it was a battle script command, as well as the location of the script that was calling the command (x1D8727- the script as a whole starts a bit earlier which is why there's no pointers to the offset I gave you).

    If I didn't have access to the Ruby options, I don't know how I would've found it- the options in FR are significantly harder to pin down. Another approach that I had considered taking (but never did) was finding the battle script that produces the "Trainer is about to send out X" message- it would be somewhere nearby and help me figure it out.

    With regards to finding how Surf is handled, the text isn't the only relevant element- there's also the flag keeping you from using it until you have Koga's badge. That said, I looked into it briefly and found there actually is a pointer to the text- it's at x1A6AEF (pointing to x1A556E), and is part of a larger OW script.

    To answer the question as a whole of how I figure things out- usually look for related elements I do know about and put breakpoints on them in a debugger.

  2. DoesntKnowHowToPlay
    February 22nd, 2014 09:32 AM
    DoesntKnowHowToPlay
    Set/Switch mode is read by a bit of battle script somewhere around x1D8727.

About Me

  • About haven1433
    Gender
    Male ♂
    Occupation
    Software Engineer

Statistics

Total Posts
Activity by Forum
Visitor Messages
Blog
General Information
  • Last Activity: August 24th, 2014 08:26 AM
  • Join Date: October 5th, 2013
  • Referrals: 0

All times are UTC -8. The time now is 09:10 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.