The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Firered Special 0x20 0x21

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 January 27th, 2022 (11:10 AM).
Andrea Mizutani's Avatar
Andrea Mizutani Andrea Mizutani is offline
 
Join Date: Jan 2022
Location: At the end of the world.
Posts: 4
Hello, I have been editing a hackrom, and I wanted to test the link battles and link trades, but I have noticed that it is somewhat unstable, the connection is established but, sometimes at a random moment the connection drops out of nowhere. If I remember correctly the special 0x20 and 0x21 correspond to the Battles and Trades function, but I don't know what offsets the rom is in and I would like to know where it is to check if changes were made without realizing it. I know the Special Table starts at 15FD60, but I don't know where it ends.

Does anyone know the offset of the special 0x20 and 0x21? Or where does the Special table end?

Additionally, I am also interested in knowing what function the other specials fulfill in Fire Red. Thanks in advance.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 28th, 2022 (4:37 AM).
Anon822 Anon822 is offline
 
Join Date: Nov 2017
Posts: 326
Quote:
Originally Posted by Andrea Mizutani View Post
Does anyone know the offset of the special 0x20 and 0x21? Or where does the Special table end?
Each special is a 4 byte function pointer. Thus the pointer for special 0x20 starts 4*0x20 = 0x80 bytes after the start of the table.

Quote:
Originally Posted by Andrea Mizutani View Post
Additionally, I am also interested in knowing what function the other specials fulfill in Fire Red. Thanks in advance.
You can find a list of specials with descriptive names here.
For example if we want to find the name for special 0x20: The special definitions start at line 11 in the file, 0x20 in decimal is 32, the definition for special 0x20 is on line 11+32=43:
Code:
def_special EnterColosseumPlayerSpot
You can then search for the function name to find the code for it if you want to see what it does.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 31st, 2022 (6:58 AM).
Andrea Mizutani's Avatar
Andrea Mizutani Andrea Mizutani is offline
 
Join Date: Jan 2022
Location: At the end of the world.
Posts: 4
Quote:
Originally Posted by Anon822 View Post
Each special is a 4 byte function pointer. Thus the pointer for special 0x20 starts 4*0x20 = 0x80 bytes after the start of the table.


You can find a list of specials with descriptive names here.
For example if we want to find the name for special 0x20: The special definitions start at line 11 in the file, 0x20 in decimal is 32, the definition for special 0x20 is on line 11+32=43:
Code:
def_special EnterColosseumPlayerSpot
You can then search for the function name to find the code for it if you want to see what it does.
Oh cool, that was a very accurate answer, thank you very much for that and your time.
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
Thread Tools

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:20 AM.