The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Error upon pressing "A"

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 April 26th, 2016 (12:54 PM). Edited April 27th, 2016 by Joexv.
Joexv's Avatar
Joexv Joexv is offline
ManMadeOfGouda
joexv.github.io
 
Join Date: Oct 2012
Location: Oregon
Age: 25
Gender: Male
Nature: Sassy
Posts: 1,035
So for some reason, everytime I press the "A" button anywhere there isn't an event, a glitchy script comes up or it just freezes the game. Is there anyone who would know why this is caused or how to fix it?




EDIT: So thanks to Azurile13 and an odd hunch, I managed to fix this. if for whatever reason someone comes across this error themselves, go to 0x1A3000 and look at 0x220 bytes there.Make sure that its clean 00s all the way across to 0x1A3204 where you need to make sure that the pointers there haven't been messed with on accident. ----Just to note this isnt something you should have to deal with on regular ROM's this seems to have been an error on either my fault or A-Map being a little rattata with its repointing and overwriting some stuffz that was used by Jpans hacked enigne.
__________________
New living flesh vessel who dis?
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old April 26th, 2016 (2:38 PM).
BluRose BluRose is offline
blu rass
 
Join Date: Apr 2014
Location: michigan tech
Age: 22
Gender: Male
Nature: Timid
Posts: 812
Oh, goodness. How much asmagix has been murdering your game???
__________________
heyo check out my github:

BluRosie
highlights:
battle engine for heartgold
various feature branches in heart gold (fairy type, odd egg, mud slopes)

i'm a big part of the development team of pokemon firegold! all the code that i develop for that hack is also on my github

also on discord: BluRose#0412
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old April 26th, 2016 (2:40 PM).
Joexv's Avatar
Joexv Joexv is offline
ManMadeOfGouda
joexv.github.io
 
Join Date: Oct 2012
Location: Oregon
Age: 25
Gender: Male
Nature: Sassy
Posts: 1,035
Quote:
Originally Posted by BluRose View Post
Oh, goodness. How much asmagix has been murdering your game???
At this point none. Surprisingly.
__________________
New living flesh vessel who dis?
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old April 26th, 2016 (2:45 PM).
BluRose BluRose is offline
blu rass
 
Join Date: Apr 2014
Location: michigan tech
Age: 22
Gender: Male
Nature: Timid
Posts: 812
Quote:
Originally Posted by Joexv View Post
At this point none. Surprisingly.
Have you viewing what exactly changes in memory upon pressing the a button? You'd probably know how to fix this better than me, haha...
__________________
heyo check out my github:

BluRosie
highlights:
battle engine for heartgold
various feature branches in heart gold (fairy type, odd egg, mud slopes)

i'm a big part of the development team of pokemon firegold! all the code that i develop for that hack is also on my github

also on discord: BluRose#0412
Reply With Quote
  #5   Link to this post, but load the entire thread.  
Old April 26th, 2016 (4:29 PM).
azurile13 azurile13 is offline
 
Join Date: Mar 2015
Posts: 417
Given that it only occurs when you press A and only on non-script (I assume you mean signpost?) tiles, the most obvious place to check would be right after the signpost check. Start looking at 0x0806CC7E and the function called around there (press_a_3 at 0x0806CEA0). This normally checks for behavior bytes that trigger scripts, but maybe its erroneously returning a 1 (behavior byte with a script) and you have a bad pointer for a script. Alternatively, you can start at script_cmds at 0x0815F9B4 and determine which “script” is being generated. See what’s causing the msgbox to pop up, know what “script” the game is reading, and more importantly figure out why it is even reading that “script.”
Reply With Quote
  #6   Link to this post, but load the entire thread.  
Old April 26th, 2016 (4:40 PM). Edited April 26th, 2016 by Joexv.
Joexv's Avatar
Joexv Joexv is offline
ManMadeOfGouda
joexv.github.io
 
Join Date: Oct 2012
Location: Oregon
Age: 25
Gender: Male
Nature: Sassy
Posts: 1,035
Quote:
Originally Posted by azurile13 View Post
Given that it only occurs when you press A and only on non-script (I assume you mean signpost?) tiles, the most obvious place to check would be right after the signpost check. Start looking at 0x0806CC7E and the function called around there (press_a_3 at 0x0806CEA0). This normally checks for behavior bytes that trigger scripts, but maybe its erroneously returning a 1 (behavior byte with a script) and you have a bad pointer for a script. Alternatively, you can start at script_cmds at 0x0815F9B4 and determine which “script” is being generated. See what’s causing the msgbox to pop up, know what “script” the game is reading, and more importantly figure out why it is even reading that “script.”
Well, I've already checked all of those and the areas surrounding them and to no luck.
I also broke out IDB to check for some more locations that have to do with scripts and the like and nothing resulted. Although opening the ROM in No$Gba returns a Undefined Opcode 081B1C34 when booting up. Checking this area with a clean ROM showed HUGE differences although a backup that works and runs just fine has the same differences.
__________________
New living flesh vessel who dis?
Reply With Quote
  #7   Link to this post, but load the entire thread.  
Old April 26th, 2016 (4:55 PM).
azurile13 azurile13 is offline
 
Join Date: Mar 2015
Posts: 417
Quote:
Originally Posted by Joexv View Post
Well, I've already checked all of those and the areas surrounding them and to no luck.
I also broke out IDB to check for some more locations that have to do with scripts and the like and nothing resulted. Although opening the ROM in No$Gba returns a Undefined Opcode 081B1C34 when booting up. Checking this area with a clean ROM showed HUGE differences although a backup that works and runs just fine has the same differences.
Did you try the script_cmds way? Set a breakpoint for all three of the overworld script environments (the one's that have a pointer to script_cmds in their literal pool) and see what is causing the script_env to start.

Since they're right here on my screen anyways.
0x08069A80
0x08069AE4
0x08069B48
Reply With Quote
  #8   Link to this post, but load the entire thread.  
Old April 26th, 2016 (5:48 PM).
Joexv's Avatar
Joexv Joexv is offline
ManMadeOfGouda
joexv.github.io
 
Join Date: Oct 2012
Location: Oregon
Age: 25
Gender: Male
Nature: Sassy
Posts: 1,035
Quote:
Originally Posted by azurile13 View Post
Did you try the script_cmds way? Set a breakpoint for all three of the overworld script environments (the one's that have a pointer to script_cmds in their literal pool) and see what is causing the script_env to start.

Since they're right here on my screen anyways.
0x08069A80
0x08069AE4
0x08069B48
Breakpoints were set and nothing odd showed up. :-/
__________________
New living flesh vessel who dis?
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:08 AM.