• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Staff applications for our PokéCommunity Daily and Social Media team are now open! Interested in joining staff? Then click here for more info!
  • 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
    9
    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