[Technical][NES]Script Insertion Help/ROM Expansion for Kamen Rider SD
I had posted this on another message board, so I'm copying and pasting it here...
I'm having a hard time with one of my more recent projects. It's for the NES game, "Kamen Rider SD: Grandshocker no Yabou". I need to insert a rather large script into the ROM.
Here's what's been done so far...
First off, thanks to some help on Discord, I managed to enable Dual-Tile Encoding into the game (Though I had have some issues with the RAM bytes in the code that appears to be working normally now... hopefully... but that's not why I'm typing this.)
The dumped scripts have been fully translated, edited, and are ready for insertion into the ROM via Atlas... all of which were broken down into four script files. The first and second script files were successfully inserted. The third and fourth one, however, is another story.
This script file is supposed to go into $A208-C00E into the ROM. But even with DTE enabled, the translated script is way too big to insert. I'm receiving script text overflow messages of as much as 6810 bytes overflowing. (Before, it was at 7128 bytes.) Inserting this text block in the ROM in its current state may become next to impossible without sacrificing the script's quality.
Edit: Upon further examination, the fourth script file is also just as hard as the third to insert. That script file is supposed to be inserted at $C1F6-DC0E. (At first, I thought it extends to E00E. That was my mistake there.) I thought that by editing the script and working with pointer recalculating, I could get the script to fit. In fact, I thought it had worked at first. Upon further testing, after I had inserted my script in that area, the game crashed. Turns out that the insertion process had overwritten code that was located at $DC10-DFA8. Thus, the area in which that script needs to be inserted it smaller than I had thought. After checking, that spot gave me script insert overflow messages of about 1500 bytes. So inserting that script is also extremely difficult to do without sacrificing the script's quality.
That's why I'm typing this.
I'm gonna need someone who can expand the ROM so that the third and fourth translated script files can be inserted without any apparent errors, and that's an area in rom hacking I still have trouble with. If anyone can do this, please let me know. I'll, of course, share with you what work has been done so far (patch file and table file) as well as the infamous scripts for any possible perusal. Other than graphics (which shouldn't be an issue as all graphics are uncompressed) this is the only issue I see that's stopping this project from seeing the light of day.
Of course, you will be credited when the patch goes live. (I give credit where it's due.)
So can someone help me out here. Thank you in advance.