• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Serena, Kris, Dawn, Red - which Pokémon protagonist is your favorite? Let us know by voting in our grand final favorite protagonist poll!
  • PokéCommunity supports the Stop Killing Games movement. If you're a resident of the UK or EU, consider signing one of the petitions to stop publishers from destroying games. Click here for more information!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Other✓] [Searched] Crash after otherwise-perfect trainer battle.

wolfboyft

Pokémon Generation 2 Hacker
  • 165
    Posts
    10
    Years
    Already searched the internet, so...

    Whenever I fight my newly-made trainer, the game decides to crash after the battle, on the field (his beat message doesn't crash. Only when the game returns to normal walking mode does it crash.)

    Why is this? His trainer script offset is 0x136400, which is...

    [PokeCommunity.com] [Searched] Crash after otherwise-perfect trainer battle.


    Here is his data in the OneGSCTrainer program.
    He's a bird keeper. Renamed to Grey Goblin, for your information.
    [PokeCommunity.com] [Searched] Crash after otherwise-perfect trainer battle.
     
    Last edited:
    Uh? I don't think so...
     
    Made some changes to who he was etc. No difference. Also, he's at x136700 now.
     
    The last two bytes after 00 00 form a pointer to the script executed when the battle ends. So they aren't a pointer to text.

    If you want to make the trainer do nothing after the battle and then talk you about something if you talk to it later, make the pointer point to "65 52 xx yy". See Scripting Compendium for more info.
     
    The last two bytes after 00 00 form a pointer to the script executed when the battle ends. So they aren't a pointer to text.

    If you want to make the trainer do nothing after the battle and then talk you about something if you talk to it later, make the pointer point to "65 52 xx yy". See Scripting Compendium for more info.

    Ah... thank you.
     
    I'm just illiterate. I thought it was text, not a script (to text, in my case.)

    Thanks!!
     
    Apparently that was indeed written wrong there;

    "[2byte pointer to script if won/talked to again]

    This pointer will point to text that would appear after the game returns to normal to indicate the trainer has been beaten. For this script, it's 46 4F."

    Anyway, Scripting Compendium has this kind of info too. If you haven't familiarized yourself with its contents yet, do so now: https://hax.iimarck.us/files/scriptingcodes_eng.htm#Eventaufbau :)

    P.S
    You can of course write any kind of script data to be executed after the battle ends. This is how for example the phone call trainers have been implemented. I believe their re-challenge trainer data loading is stored in that script too because, why not.
     
    Back
    Top