Wumbo
edited
Hello, I'm an SRB2 fan that's new to modding.
Recently, I finally got my first actual mod working, which is supposed to add a new character, Sonic with X-Treme sprites and double-jump. I used the wiki to try this, but instead of correctly adding the new character, it simply replaced Sonic's sprites with the X-Treme ones.
Luckily, all the colors worked right, and even though I didn't have the double-jump, I was still happy that I actually got it to work in the first place. But the bad part was that selecting the menu option for X-Treme Sonic would crash the game.
I tried renaming the PLAY in the names of all frames to SNCX because I thought they were replacing regular Sonic's sprites, and it seemed that that was the case. But, the game still crashed every time I selected X-Treme Sonic.
I also tried a more simple approach, where I would try to make it so the WAD was designed to replace Sonic's sprites, but when doing that, the game would crash right when the WAD loaded.
I can't remember how, but when testing my mod the first time, I did get X-Treme Sonic working. I believe I loaded the mod in Egg Rock Zone and went to Greenflower Zone. The only problem was that the colors were odd (I expected that), and I couldn't move. Nevertheless, double-jump was working, and by doing the spindash, I was able to move around a bit until I bumped into a wall, and had to spindash again. I have been unable to replicate this since then.
Since it seems like I can't post downloads in this section, I'll tell you some details about my mod:
-All sprites are named exactly like Sonic's, and follows the same placement.
-Frames that I couldn't replace (such as the Super Sonic and hanging frames) use their regular SRB2 counterparts as placeholders.
-The code for S-SKIN:
-The code for SOC_XT:
-I use S_START and S_END markers around Sonic's sprites, and GX_START and GX_END markers around the character select and life icons.
-The character icon is named CHRXT, and the life icon is named LIVXT. CHRXT comes before LIVXT.
-Both S_SKIN and SOC_XT are located inside the S_START and S_END markers. They are both at the top, although SOC_XT comes before S_SKIN.
-The offsets of all X-Treme sprites are X=32 and Y=48.
Here are some images of the WAD, including a GIF of me speedrunning through Greenflower Zone Act 1 with X-Treme sprites to give you an idea of how the mod looks.
So, here are my two questions:
-Is there a problem with how the WAD looks that's preventing the mod from working correctly?
-If I wanted to make this mod just replace Sonic's sprites with his X-Treme counterparts and not add them as a separate character, how would I do that?
Help would very much be appreciated. Thank you!
Recently, I finally got my first actual mod working, which is supposed to add a new character, Sonic with X-Treme sprites and double-jump. I used the wiki to try this, but instead of correctly adding the new character, it simply replaced Sonic's sprites with the X-Treme ones.
Luckily, all the colors worked right, and even though I didn't have the double-jump, I was still happy that I actually got it to work in the first place. But the bad part was that selecting the menu option for X-Treme Sonic would crash the game.
I tried renaming the PLAY in the names of all frames to SNCX because I thought they were replacing regular Sonic's sprites, and it seemed that that was the case. But, the game still crashed every time I selected X-Treme Sonic.
I also tried a more simple approach, where I would try to make it so the WAD was designed to replace Sonic's sprites, but when doing that, the game would crash right when the WAD loaded.
I can't remember how, but when testing my mod the first time, I did get X-Treme Sonic working. I believe I loaded the mod in Egg Rock Zone and went to Greenflower Zone. The only problem was that the colors were odd (I expected that), and I couldn't move. Nevertheless, double-jump was working, and by doing the spindash, I was able to move around a bit until I bumped into a wall, and had to spindash again. I have been unable to replicate this since then.
Since it seems like I can't post downloads in this section, I'll tell you some details about my mod:
-All sprites are named exactly like Sonic's, and follows the same placement.
-Frames that I couldn't replace (such as the Super Sonic and hanging frames) use their regular SRB2 counterparts as placeholders.
-The code for S-SKIN:
Code:
name = sonicxt
realname = XTSonic
hudname = XTSONIC
charsel = CHRXT
face = LIVXT
startcolor = 230
prefcolor = Blue
ability = CA_DOUBLEJUMP
ability2 = CA2_SPINDASH
actionspd = 48
normalspeed = 48
accelstart = 256
acceleration = 64
-The code for SOC_XT:
Code:
SRB2 version = 210
Character
PicName = CHRXT
SkinName = sonicxt
Status = 1
PlayerText = ^2X-Treme Sonic^0 has found his way back to SRB2 after being absent since the Halloween demo!
^2Ability:^0 Double Jump
Reach higher platforms by pressing the jump button two times.
^2Note:^0 X-Treme Sonic still uses a lot of placeholder sprites from regular Sonic that can't be replaced.
#
-I use S_START and S_END markers around Sonic's sprites, and GX_START and GX_END markers around the character select and life icons.
-The character icon is named CHRXT, and the life icon is named LIVXT. CHRXT comes before LIVXT.
-Both S_SKIN and SOC_XT are located inside the S_START and S_END markers. They are both at the top, although SOC_XT comes before S_SKIN.
-The offsets of all X-Treme sprites are X=32 and Y=48.
Here are some images of the WAD, including a GIF of me speedrunning through Greenflower Zone Act 1 with X-Treme sprites to give you an idea of how the mod looks.
So, here are my two questions:
-Is there a problem with how the WAD looks that's preventing the mod from working correctly?
-If I wanted to make this mod just replace Sonic's sprites with his X-Treme counterparts and not add them as a separate character, how would I do that?
Help would very much be appreciated. Thank you!