Page 1 of 1
Issue with colors on an actor/player
Posted: Wed Feb 22, 2017 8:47 pm
by Erma
Hello hello!
I have been creating a new character for my mod and stumbled on this little issue:
In the image seen below, the "model"/spawnable actor on the left is how it is supposed to look.
Meanwhile, me (or any other player playing as the character) looks different in terms of its colors.
The problem is: as you can see, the model on the left has a nice shade of black, while on the right; it has a more dark-green-ish tint (which is also visible on the front)
Any idea what may be the issue/what could potentially fix this issue?
Spoiler: Here's the actor code: (Open)Actor Stiglitz : PlayerPawn
{
Mass 400
Player.SoundClass "Stiglitz"
Player.DisplayName "Stiglitz"
Player.ForwardMove 1.0
Player.SideMove 1.0
Player.ColorRange 112, 127
Player.StartItem "MP40", 1
Player.StartItem "MP40Reload", 30
Player.StartItem "Clip3", 400
Player.StartItem "GasGun", 1
Player.StartItem "GasBombs", 10
Player.StartItem "IsHuman", 1
Player.StartItem "Screamer", 0
DamageFactor "GhostTrap", 0.0
Damagefactor "normal", 0.9
Damagefactor "Sentinel", 0.0
Damagefactor "MechPewPews", 0.0
Damagefactor "MacheteSlicerino", 0.0
scale 1.1
PainChance 256
LimitedToTeam 0
+NOSKIN
+NOICEDEATH
+NODAMAGETHRUST
+GHOST
+QUICKTORETALIATE
States

Re: Issue with colors on an actor/player
Posted: Thu Feb 23, 2017 1:29 am
by Ænima
What format are the sprites in?
Re: Issue with colors on an actor/player
Posted: Thu Feb 23, 2017 2:31 am
by Erma
Ænima wrote:What format are the sprites in?
Wasn't exactly specified, but they're on the zdoom forums resource page a while ago.
So I digged a bit in my saved resources files in my computer itself and re-discovered the spriteset.
If they need to be in a certain format, how does one change that?
Like, "Game Doom?" in the code itself or let Slade convert it (if that option's still around and if Slade doesn't crash 90% of the times when I try to view a sprite)?
They also look fine as in, in the Slade sprite preview window as well as when you summon/spawn the actor itself (seen in the image in my first post).
[spoiler]

[/spoiler]
I also found the original post:
https://forum.zdoom.org/viewtopic.php?f=37&t=47653
Re: Issue with colors on an actor/player
Posted: Thu Feb 23, 2017 9:12 am
by President People
From the looks of things, the sprites in your wad are truecolor PNGs. Player skins are paletted, and therefore restricted to the colors defined in the PLAYPAL lump, resulting in the differences you see in your screenshot.
While it'll never perfectly match the truecolor version, some manual editing might help produce a more satisfactory result. Exporting the images (The PLAYPAL lump itself can also be exported to PNG) to tinker with in Photoshop or the like typically offers more control and can help prevent losing colors that would otherwise be interpolated. In this case, though, SLADE's conversion to Doom's palette and Color Remap ought to do the trick.
Now that I think about it… failing full truecolor PNG support for skins, skin-specific palette lumps would be pretty great. I wonder how feasible that is.
Re: Issue with colors on an actor/player
Posted: Thu Feb 23, 2017 10:50 am
by Erma
Thank you for your assistance, both Aenima and President People.
I've trying to get Slade NOT to crash on me all the time and converting them to the doom's palette does do the trick.
Although it does not completely make it black like in the image, most of the green-ish tints are gone.
Thank you! :)