The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other [Searched] Crash after otherwise-perfect trainer battle.

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Reply
 
Thread Tools
  #1   Link to this post, but load the entire thread.  
Old September 21st, 2015 (8:53 AM). Edited September 23rd, 2015 by wolfboyft.
wolfboyft's Avatar
wolfboyft wolfboyft is offline
Pokémon Generation 2 Hacker
 
Join Date: Dec 2014
Location: London
Gender: Male
Posts: 165
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...



Here is his data in the OneGSCTrainer program.
He's a bird keeper. Renamed to Grey Goblin, for your information.
__________________
Please consider helping me with my hack []



$ git gud --super wolfboyft
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old September 21st, 2015 (9:04 AM).
Desinishon Desinishon is offline
Banned
 
Join Date: Aug 2015
Location: East Blue
Age: 24
Gender: Male
Nature: Calm
Posts: 5,025
I think text speed is fast
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old September 22nd, 2015 (2:41 AM).
wolfboyft's Avatar
wolfboyft wolfboyft is offline
Pokémon Generation 2 Hacker
 
Join Date: Dec 2014
Location: London
Gender: Male
Posts: 165
Uh? I don't think so...
__________________
Please consider helping me with my hack []



$ git gud --super wolfboyft
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old September 22nd, 2015 (4:26 AM).
wolfboyft's Avatar
wolfboyft wolfboyft is offline
Pokémon Generation 2 Hacker
 
Join Date: Dec 2014
Location: London
Gender: Male
Posts: 165
Made some changes to who he was etc. No difference. Also, he's at x136700 now.
__________________
Please consider helping me with my hack []



$ git gud --super wolfboyft
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old September 22nd, 2015 (9:41 AM).
miksy91's Avatar
miksy91 miksy91 is offline
Dark Energy is back in action! ;)
 
Join Date: Oct 2008
Location: Finland
Gender: Male
Posts: 1,480
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.
__________________
Pokémon Dark Energy
Some ROM hacking related stuff
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old September 23rd, 2015 (4:21 AM).
wolfboyft's Avatar
wolfboyft wolfboyft is offline
Pokémon Generation 2 Hacker
 
Join Date: Dec 2014
Location: London
Gender: Male
Posts: 165
Quote:
Originally Posted by miksy91 View Post
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.
__________________
Please consider helping me with my hack []



$ git gud --super wolfboyft
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old September 23rd, 2015 (4:31 AM).
wolfboyft's Avatar
wolfboyft wolfboyft is offline
Pokémon Generation 2 Hacker
 
Join Date: Dec 2014
Location: London
Gender: Male
Posts: 165
Either I'm illiterate or this thread lied to me; http://hax.iimarck.us/topic/956/
__________________
Please consider helping me with my hack []



$ git gud --super wolfboyft
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old September 23rd, 2015 (4:35 AM).
wolfboyft's Avatar
wolfboyft wolfboyft is offline
Pokémon Generation 2 Hacker
 
Join Date: Dec 2014
Location: London
Gender: Male
Posts: 165
I'm just illiterate. I thought it was text, not a script (to text, in my case.)

Thanks!!
__________________
Please consider helping me with my hack []



$ git gud --super wolfboyft
Reply With Quote
  #9   Link to this post, but load the entire thread.  
Old September 24th, 2015 (9:17 AM).
miksy91's Avatar
miksy91 miksy91 is offline
Dark Energy is back in action! ;)
 
Join Date: Oct 2008
Location: Finland
Gender: Male
Posts: 1,480
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: http://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.
__________________
Pokémon Dark Energy
Some ROM hacking related stuff
Reply With Quote
Reply

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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

Forum Jump


All times are GMT -8. The time now is 9:09 AM.