Cutstuff Forum

Mega Man 8-bit Deathmatch => Help & Editing => Topic started by: TheGreenBlur on September 18, 2014, 03:33:42 PM

Title: How to make classes and how to fix skin errors?
Post by: TheGreenBlur on September 18, 2014, 03:33:42 PM
Hello everyone! I need help pls! I made a skin for Shadow the hedgehog, but I always got an error.
R_InstallSpriteLump: Bad frame characters in lump STHE1
Could someone help me with this?

My deviantart where you can check the sprite template for Shadow:
http://sonictheminecrafthog.deviantart.com (http://sonictheminecrafthog.deviantart.com)

My youtube channel if you want to watch some videos:
https://www.youtube.com/channel/UC6-hEa ... 2k2hAANZVQ (https://www.youtube.com/channel/UC6-hEaOQvKU142k2hAANZVQ)

And now the other thing. I want to make a Class for the skin, but i don't now how.
If someone nows pls tell me.
Title: Re: How to make classes and how to fix skin errors?
Post by: Zdagger67 on February 23, 2016, 12:59:44 PM
i know about the error spritelump, it should STHEA1
Title: Re: How to make classes and how to fix skin errors?
Post by: TheGreenBlur on July 16, 2016, 05:18:06 PM
Quote from: "Zdagger67"
i know about the error spritelump, it should STHEA1

Sorry for the late reply, but I wasn't really active in these months.
What do you mean by that?
Title: Re: How to make classes and how to fix skin errors?
Post by: Korby on July 16, 2016, 07:59:08 PM
Sprites have to have a four letter code.
For example, PLAY is the default player skin's code and AFRO is Frostman's.
"STHE1" won't work.
Although I'm not quite sure the specifics of your file, if STHE is your code, you need to put the frame after it like STHEA1, STHEB1, etc.
If STH is your file, you need to pad it out one more letter. SHTH for "SHadow The Hedgehog" should work.
Title: Re: How to make classes and how to fix skin errors?
Post by: Russel on July 18, 2016, 02:07:36 PM
Apologies for the late response
Korby's response isn't entirely correct, though it does provide a good start.

Sprites in Doom use a 6 to 8 character naming scheme. The first four characters specifies the sprite's name or code, as Korby mentioned.
The fifth character, which must be A-Z, [, , or ], specifies the index of the sprite.
Player skins always use the following frames in the same manner:
A - Standing
BCDE - Walking
FG - Firing
H - Pain and Death

Finally, the sixth character specifies the angle the sprite takes. Valid values are:
0 - Sprite appears the same from all angles.
1 - Front, facing the viewpoint
2 - Front angled, facing 45 degrees to the left of the viewpoint
3 - Side, facing to the left
4 - Back angled, facing 45 degrees to the left away from the viewpoint
5 - Back, facing directly away from the viewpoint
6 - Back angled, facing 45 degrees to the right away from the viewpoint
7 - Side, facing to the right
8 - Front angled, facing 45 degrees to the right of the viewpoint

That was a lot of words, but hopefully this gif will make it slightly clearer:
(http://i.imgur.com/ESXPxmo.gif)


Putting all this together, the front standing sprite for your skin should probably be STHEA1
STHE is the four character name of the set of sprites, A is the index and 1 is the angle.

Finally, it's possible to specify an additional two characters in a sprite name. These two extra characters will specify another index and angle in which the sprite will show up. Additionally, the resulting sprite on that index and angle will be mirrored.

Seeing as you have a front-angled Shadow facing right, the sprite name for this frame would be STHEA8.
Also, since you didn't make 8 rotations for Shadow, you would want the sprite to be mirrored for the left rotation. Specifying the index and angle you want will tell the game to do that.
The resulting sprite name is thus STHEA8A2, where STHEA2 is generated by the game as a mirrored version of STHEA8.

The same can be done with other angles and even other indexes!

I hope this wasn't too much information to absorb at once.


As for classes... that requires a bit more information than a single post can supply. I'd recommend you get the skin working first, as classes are a good deal more difficult to put together.
Title: Re: How to make classes and how to fix skin errors?
Post by: TheGreenBlur on July 22, 2016, 10:18:47 AM
Quote from: "Korby"
Sprites have to have a four letter code.
For example, PLAY is the default player skin's code and AFRO is Frostman's.
"STHE1" won't work.
Although I'm not quite sure the specifics of your file, if STHE is your code, you need to put the frame after it like STHEA1, STHEB1, etc.
If STH is your file, you need to pad it out one more letter. SHTH for "SHadow The Hedgehog" should work.

So if I rename it "SHTH" instead of "STH" then the skin should work?
Title: Re: How to make classes and how to fix skin errors?
Post by: TheGreenBlur on July 22, 2016, 10:22:10 AM
Quote from: "Lego"
Apologies for the late response
Korby's response isn't entirely correct, though it does provide a good start.

Sprites in Doom use a 6 to 8 character naming scheme. The first four characters specifies the sprite's name or code, as Korby mentioned.
The fifth character, which must be A-Z, [, , or ], specifies the index of the sprite.
Player skins always use the following frames in the same manner:
A - Standing
BCDE - Walking
FG - Firing
H - Pain and Death

Finally, the sixth character specifies the angle the sprite takes. Valid values are:
0 - Sprite appears the same from all angles.
1 - Front, facing the viewpoint
2 - Front angled, facing 45 degrees to the left of the viewpoint
3 - Side, facing to the left
4 - Back angled, facing 45 degrees to the left away from the viewpoint
5 - Back, facing directly away from the viewpoint
6 - Back angled, facing 45 degrees to the right away from the viewpoint
7 - Side, facing to the right
8 - Front angled, facing 45 degrees to the right of the viewpoint

That was a lot of words, but hopefully this gif will make it slightly clearer:
(http://i.imgur.com/ESXPxmo.gif)


Putting all this together, the front standing sprite for your skin should probably be STHEA1
STHE is the four character name of the set of sprites, A is the index and 1 is the angle.

Finally, it's possible to specify an additional two characters in a sprite name. These two extra characters will specify another index and angle in which the sprite will show up. Additionally, the resulting sprite on that index and angle will be mirrored.

Seeing as you have a front-angled Shadow facing right, the sprite name for this frame would be STHEA8.
Also, since you didn't make 8 rotations for Shadow, you would want the sprite to be mirrored for the left rotation. Specifying the index and angle you want will tell the game to do that.
The resulting sprite name is thus STHEA8A2, where STHEA2 is generated by the game as a mirrored version of STHEA8.

The same can be done with other angles and even other indexes!

I hope this wasn't too much information to absorb at once.


As for classes... that requires a bit more information than a single post can supply. I'd recommend you get the skin working first, as classes are a good deal more difficult to put together.

I understand now I will try it out and tell you if it worked.
Also here is the spritesheet I made for him: http://sonictheminecrafthog.deviantart. ... -482076832 (http://sonictheminecrafthog.deviantart.com/art/Shadow-the-Hedgehog-8bit-for-MM8BDM-482076832)
I think that he has everything.

-Edit: It doesn't work and I don't know why. I changed everything and it still give the same error.
Title: Re: How to make classes and how to fix skin errors?
Post by: Korby on July 22, 2016, 03:37:09 PM
Upload the file to a hosting site and throw it here so we can look at it for you, or take a screenshot of the file opened in SLADE/SlumpED
Title: Re: How to make classes and how to fix skin errors?
Post by: TheGreenBlur on July 22, 2016, 08:02:00 PM
Quote from: "Korby"
Upload the file to a hosting site and throw it here so we can look at it for you, or take a screenshot of the file opened in SLADE/SlumpED

http://sonictheminecrafthog.deviantart. ... -623309683 (http://sonictheminecrafthog.deviantart.com/art/1-623309683)

http://sonictheminecrafthog.deviantart. ... -623310206 (http://sonictheminecrafthog.deviantart.com/art/2-623310206)

http://sonictheminecrafthog.deviantart. ... -623310381 (http://sonictheminecrafthog.deviantart.com/art/3-623310381)

Here is everything...I think.
Title: Re: How to make classes and how to fix skin errors?
Post by: Korby on July 23, 2016, 03:38:45 AM
Remove the C from STHECA1
Title: Re: How to make classes and how to fix skin errors?
Post by: TheGreenBlur on July 23, 2016, 06:45:13 AM
Quote from: "Korby"
Remove the C from STHECA1

Just that?
Edit:
Thx it worked!