![]() |
![]() |
#1 |
|
Hi!
I just registered in there, so I hope you don't mind if this is in wrong section. I have own SRB2 project what's called "Mufik the Hedgehog". It's actually a little and childish parody about Sonic the Hedgehog. Now what I need to do is to find Sonic's spin attack color's location. All I know is that it is hardcoded inside the .exe, because in sonic.plr I couldn't find the S_SKIN lump. I just need to replace the blue color with brown. I have managed to replace Sonic's sprites with my own character's sprites by editing the SRB2.EXE in hex editor so it should be easy if I just know the color's location. ps. I know that my English is bad. Thanks. -Eemil EDIT: I saw that there was edit help section, but now I found that there isn't delete option to delete posts. Last edited by "Project Mufik"; 05-03-2012 at 03:41 PM. |
![]() |
![]() |
#2 | |
Fangtastic
Administrator
|
Quote:
But since you want this topic in the Editing Help section, I'll move it there for you now... |
|
![]() |
![]() |
#3 |
KartKrew™
Developer
|
I believe what your talking about is a thokitem or spinitem. Both of these are generally determined by the prefcolor (With a few exceptions).
http://wiki.srb2.org/wiki/Character_...rial#prefcolor
__________________
Your freedom lies within the Hidden Sanctuary. |
![]() |
![]() |
#4 | |
|
Quote:
|
|
![]() |
![]() |
#5 | |
Fangtastic
Administrator
|
Quote:
And to save you time searching through that, it's actually found in "r_things.c". |
|
![]() |
![]() |
#6 |
|
Yeah, I found word r_things.c inside the main exe. There are words like "prefcolor" and "spinitem" but there isn't any numbers like "prefcolor = 7" (7 means blue). Any ideas? If no, I probably need to give up this thing. Bad thing is, that blue color wont suit my character at all.. But I dont want to recompile SRB2 via source code.
|
![]() |
![]() |
#7 | |
Fangtastic
Administrator
|
Quote:
Code:
strcpy(skin->prefcolor, "7"); Last edited by Monster Iestyn; 05-03-2012 at 07:07 PM. |
|
![]() |
![]() |
#8 |
|
Yep, that string exist in source code but I cant find that string in main exe. Maybe it is someway in hexadecimal? So there is not any hope?
|
![]() |
![]() |
#9 |
|
|
![]() |
![]() |
#10 | |
|
Quote:
And its just strange why didnt Sonic Team Junior include Sonic's S_SKIN in sonic.plr like Knux and Tails. And I dont want to add another character. I just want to replace Sonic with my sprites. Last edited by "Project Mufik"; 05-04-2012 at 03:54 AM. |
|
![]() |
![]() |
#11 |
|
Maybe a little OT but I just remember that I started this project years ago, and then my computer broke up. About 2 years later, I managed to rescue my project from my broken computer's hard drive. I just realized that I am using version 1.9.4! Is there any way to play same servers which are in v2.0.6? Also, it is impossible to get my modded SRB2.SRB or sonic.plr to work in 2.0.6. Besides, I need to modify that 2.0.6 SRB2.exe with hex editor again... :(
Any ideas? -Eemil |
![]() |
![]() |
#12 | ||
Fangtastic
Administrator
|
Quote:
Quote:
SRB2 has a built-in MD5 checker to make sure the files you're using are the real deal - that's why. Last edited by Monster Iestyn; 05-04-2012 at 03:20 PM. |
||
![]() |
![]() |
#13 | |
|
Quote:
|
|
![]() |
![]() |
Thread Tools | Search this Thread |
|
|