How about doing away with replacing altogether and simply add the new stages to the roster.
Finally completed it. It didn't turn out quite like I wanted it to, but it gets the job done just as well.
Code:
[B]Stage Roster Expansion System:[/B]
E0000000 80008000
04043B20 3800003A
04043B40 1C060018
04043B58 38840018
04949EF8 3C808043
04949EFC 3884B460
C294A588 00000003
A063001A 2C030040
41800008 38600000
60000000 00000000
C294A1D0 00000003
7C7D1B78 2C03FFFF
40820008 3FA0003F
60000000 00000000
04015564 48000010
2042AEB0 00000041
0442AEB0 00000000
80000000 8042AEB0
80000001 8042AEB0
60000030 00000000
8A001801 00000000
86000000 00000024
86000001 00000018
62000000 00000000
0042B34C 024B0000
80000000 8042B348
80000001 00000040
80000002 00000031
60000008 00000000
4A001000 00000000
94210001 00000000
16000004 00000010
73745F63 7573746F
6D002E72 656C0000
94010002 0000000D
86000000 00000018
86000001 00000001
86000002 00000001
62000000 00000000
80000000 8042BC18
80000001 8042B460
8A010001 00000000
0042BC18 010F0000
80000000 8042BC14
80000001 8042B560
80000002 00000031
60000008 00000000
4A001001 00000000
94210000 00000000
4A001000 00000000
16000000 00000008
43757374 6F6D3100
94010002 00000006
86000000 0000000C
86000001 00000004
86000002 00000001
62000000 00000000
E0000000 80008000
Simply put, this code will assign the stage ids 40 to 49 with file names for STGCUSTOM#.PAC and st_custom#.rel where # is a number 1 through 9.
For example, if you have three stages you want to load, you can name them STGCUSTOM1.PAC, STGCUSTOM2.PAC, and STGCUSTOM3.PAC. Then you can add the ids 40, 41, and 42 using Spunit's Custom Stage Select Screen code to add them into the stage roster.
For the module, you'll need to use
this one for each stage. It has been modified specifically for being used by this code. It should work with all SSE modified .pac files and it also doesn't cause a sandbag to appear at the start of the match.
If you don't feel like re-arranging everything, I've provided a sample so you can check it out. Just copy the the folders and .wgc file to their appropriate locations.
Sample
the stages should be in the Melee section of the stage select screen.
You've done an awesome job at improvising a code for handling the stages Dantarion - so I feel kinda' bad now that it may not be needed anymore.
Though there's still plenty of work to do as far as hacking goes.
*whew...* Now for some sleep.