The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Other Pokemon Emerald Free Space

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 25th, 2016 (8:35 AM).
tommzy09 tommzy09 is offline
 
Join Date: Jan 2010
Posts: 58
I haven't dipped into scripting in over 5 years and I was wondering at which address i should start adding scripts in.

I used Free Space Finder to find empty offsets and then used that offset to add a simple signpost.

It would compile perfectly but then when i opened up the script again in advance map, it would give me random code.

I'm using Pokemon Emerald and XSE for scripting.

What are the offsets that I should start at for adding scripts?

(I'm working on my little own emerald hack which will be based in kanto, I've already edited the intro to include prof oak and the fire red trainer sprite and now I've hit a wall with scripting)
Reply With Quote
  #2   Link to this post, but load the entire thread.  
Old January 25th, 2016 (12:48 PM).
C me's Avatar
C me C me is offline
Creator of Pokemon League Of Legends
 
Join Date: Jan 2014
Age: 26
Gender: Male
Posts: 681
Free space information is here: http://pokemonhackersonline.com/archive/index.php/t-5742.html
__________________
Check out my hack: Pokemon League of Legends.
Join the subreddit: https://www.reddit.com/r/PokemonLoL/
If you would like to give me money for no reason you can do so here
Reply With Quote
  #3   Link to this post, but load the entire thread.  
Old January 25th, 2016 (2:21 PM).
Le pug's Avatar
Le pug Le pug is offline
Creator of Pokémon: Discovery / Fat Kid
 
Join Date: Aug 2013
Location: Le bed
Age: 30
Gender: Male
Nature: Bold
Posts: 870
Quote:
Originally Posted by tommzy09 View Post
I haven't dipped into scripting in over 5 years and I was wondering at which address i should start adding scripts in.

I used Free Space Finder to find empty offsets and then used that offset to add a simple signpost.

It would compile perfectly but then when i opened up the script again in advance map, it would give me random code.

I'm using Pokemon Emerald and XSE for scripting.

What are the offsets that I should start at for adding scripts?

(I'm working on my little own emerald hack which will be based in kanto, I've already edited the intro to include prof oak and the fire red trainer sprite and now I've hit a wall with scripting)
Expand your ROM to 32mb first via:

How to expand your rom to 32MB:
Open your ROM in XSE 1.1.1 and go to Tools -- > Rom Resizer

Now you're going to click Expand. I recommend the space be filled with 00 bytes. If you fill with FF bytes and you try to do scripts in the expanded space, it'll say that there isn't enough space and you'll have to include #freespacebyte 0xFF after each #dynamic 0x####### and then also music files use 0x00 bytes so it's just easier to have them as 0x00 bytes.

And you're done! Your ROM is officially a 32MB ROM and you can now use the space between 0x1000000 - 0x1FFFFFF.

Typically in XSE, if the space is taken up, it'll auto search for you and place it at free space with no problems. Here's an example:


So you can just keep it as 0x1000000 at all times if you wanted is what I'm saying but if you want to play it safe for whatever reason, in order to find free bytes using extended ROM and freespacefinder you need to do the following in the program:
__________________
Retired. Thank you guys for a wonderful five years.
Reply With Quote
  #4   Link to this post, but load the entire thread.  
Old January 25th, 2016 (8:45 PM).
tommzy09 tommzy09 is offline
 
Join Date: Jan 2010
Posts: 58
thank you very much for the help :)
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:10 AM.