The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Flags, variables and offsets

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 July 27th, 2015 (1:34 AM).
piccolo95 piccolo95 is offline
 
Join Date: Jul 2015
Posts: 5
I have a question regarding the limit to the amount of scripts we can make.

For all my scripts, I start with
#dynamic 0x800000
which when the script is compiled gives me script offset that is after 0x800000.

I'm just wondering if there is an offset limit. Or can we just create an infinite amount of scripts?

Also, I saw that when you're using flags, you should only use the ones between 0x200 ~ 0x2FF. But if I were to just leave the core features intact (gym badges, etc.) and delete all other events, wouldn't that free up some flags that I can use?

I also want to know the range of safe variables to use.

Thank you for your answers.
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old July 27th, 2015 (3:34 AM).
chrunch chrunch is offline
 
Join Date: Oct 2009
Gender: Male
Posts: 1,343
There is a limit for free space. It's not only used for scripts, but say if you insert new sprites, music, expand maps, etc. The limit for the GBA games is 0xFFFFFF, it can be expanded but it's unlikely you'd need to.

The flags between 0x200-0x2FF are the ones for the ingame events. You can use them of course if you remove the events they are associated with (list is here). The others are for things like trainer flags, hidden items, or temporary flags and should not be used. Safe variables are between 0x4011-0x40FF, but most of these are also used for ingame events. I'd recommend reading the link above, it has a lot of details on flags and vars.
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old July 27th, 2015 (6:49 AM).
piccolo95 piccolo95 is offline
 
Join Date: Jul 2015
Posts: 5
Thanks, that cleared up so many things.
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 2:26 AM.