Quote:
Originally Posted by tommzy09
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.