- 3,828
- Posts
- 15
- Years
- Age 28
- OH
- Seen Apr 7, 2025
Super simple question. Say I made a script and compiled it into the ROM, but a few days later I decided to scratch the script completely and start over with a new one. The thing is, that original script that i made was quite large.
Is there any special XSE command or something that will make removing the script from my ROM hack easier or is it better to just ignore it and make a new script in another part of the ROM?
There is a very simple command in XSE. It's #removeall, to be used like this:
Code:
#removeall 0x[offset of script to erase]
This command will overwrite the old script with the freespace byte that XSE associates with the ROM. So for Emerald do make sure to use the #freespace command.
Did Gamefreak not have different people working on different things at the same time that's why there are free space gaps? You could prearrange what space to use to make sure you don't overwrite each others data.
GameFreak wasn't working with raw data. They used various source code files which there then compiled and linked into the ROM data as we interact with it by a compiler. A lot of the "data" didn't have a preset location in the ROM while it was still being written (hence why games such as LeafGreen and FireRed don't have the same offsets for everything). ROM hacking and programming aren't exactly the same thing.
Now, he could certainly agree with his partner to work on specific sections only, but the fact of it is that not all tools (especially those designed to be beginner friendly) will tell you exactly where and how much space they are using/writing to.