The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Questions about special commands

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 November 27th, 2016 (7:50 PM). Edited November 28th, 2016 by RoadToCerulean.
RoadToCerulean's Avatar
RoadToCerulean RoadToCerulean is offline
A Ordinary Kanto Lover
 
Join Date: Oct 2016
Location: Route 1 (Kanto)
Gender: Male
Nature: Modest
Posts: 205
Currently I'm using XSE paired with AM to add scripts to my hack.
While I'm reading the existing scripts, I notice some statements called special commands, each of which is said to call some certain routine in the ROM, so I come up with several questions:
1. Where can I find the special command table in a ROM? (e.g. FR, EM, RU)
2. Where (or how) can I find the routine a special command calls? (e.g. special 0xFB)
3. How can I make special commands work when I use an Item? (e.g. viewing the Town Map)
(I'm using Item Manager)
__________________

You are challenged by Pokémon Trainers Red, Blue & Leaf!
My remixed music list: Here
My deviantART page: Here
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old November 28th, 2016 (2:31 PM). Edited November 28th, 2016 by BluRose.
BluRose BluRose is offline
blu rass
 
Join Date: Apr 2014
Location: michigan tech
Age: 22
Gender: Male
Nature: Timid
Posts: 812
i was typing a response to this at 1:20 this morning when my ipad died ehehe

1.) 15FD60
2.) 15FD60 + ([index] * 4)
take the new offset and, bam, you have a pointer to the routine. note that many of the command indices lead to the same null function
3.) i'm not sure exactly what you're saying here, but replacing an item's effect with that of a special's is simply putting down the pointer to it's routine as the field/battle effect. replacing a special's effect with that of an item's is simply changing the special's pointer to the item's routine pointer

EDIT: m8 if you don't use fire red then i might have to break out my computer

EDIT2: oh found it for emerald in one of shinyquagsire's posts
1DBA64 instead of 15FD60
__________________
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 November 28th, 2016 (11:10 PM).
RoadToCerulean's Avatar
RoadToCerulean RoadToCerulean is offline
A Ordinary Kanto Lover
 
Join Date: Oct 2016
Location: Route 1 (Kanto)
Gender: Male
Nature: Modest
Posts: 205
Quote:
Originally Posted by BluRose View Post
i was typing a response to this at 1:20 this morning when my ipad died ehehe

1.) 15FD60
2.) 15FD60 + ([index] * 4)
take the new offset and, bam, you have a pointer to the routine. note that many of the command indices lead to the same null function
3.) i'm not sure exactly what you're saying here, but replacing an item's effect with that of a special's is simply putting down the pointer to it's routine as the field/battle effect. replacing a special's effect with that of an item's is simply changing the special's pointer to the item's routine pointer

EDIT: m8 if you don't use fire red then i might have to break out my computer

EDIT2: oh found it for emerald in one of shinyquagsire's posts
1DBA64 instead of 15FD60
Thanks for telling me the special table in FR and EM. I thoroughly searched the binary bytes before 0x1D0000 and finally located the special table of Ruby, at 0x14B194.
__________________

You are challenged by Pokémon Trainers Red, Blue & Leaf!
My remixed music list: Here
My deviantART page: Here
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:14 AM.