i dont know how to change player colors

Forum rules
Contrary to popular belief, we are not all-knowing-all-seeing magical beings!

If you want help you're going to have to provide lots of info. Like what is your hardware, what is your operating system, what version of GZDoom/LZDoom/whatever you're using, what mods you're loading, how you're loading it, what you've already tried for fixing the problem, and anything else that is even remotely relevant to the problem.

We can't magically figure out what it is if you're going to be vague, and if we feel like you're just wasting our time with guessing games we will act like that's what you're really doing and won't help you.

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: i dont know how to change player colors

Re: i dont know how to change player colors

by Enjay » Fri Apr 05, 2024 5:18 am

By creating your own custom player class and adding the appropriate code:

https://zdoom.org/wiki/Creating_new_player_classes
https://zdoom.org/wiki/Classes:PlayerPawn

Re: i dont know how to change player colors

by CanMan » Thu Apr 04, 2024 12:41 pm

Professor Hastig wrote: Thu Mar 28, 2024 3:07 am
Enjay wrote: Wed Mar 27, 2024 1:58 pm If so, then it is a related problem. My guess is that, with Chex loaded, the game "knows" that the colour range that should be subject to remapping for the player sprites is not green but blue (I just checked - the game does indeed "know" that).[/edit]
It's much simpler:

DoomPlayer has "Player.ColorRange 112, 127;"
ChexPlayer has "player.colorrange 192, 207;" with this comment added: //Not perfect, but its better than everyone being blue.

The game doesn't need to know, you can just define the desired range on your player class.
how?

Re: i dont know how to change player colors

by Enjay » Thu Mar 28, 2024 4:13 am

Yup:
Enjay wrote: Wed Mar 27, 2024 2:19 pm If you are interested in defining a totally new player class, then you can set which colours are the ones subject to alteration in the preferences menu by including Player.ColorRange in your player definition.
;)

I'm a little bit rusty with some of the inner workings of GZDoom, having been semi-away for some time, but it's coming back to me. :D

Re: i dont know how to change player colors

by Professor Hastig » Thu Mar 28, 2024 3:07 am

Enjay wrote: Wed Mar 27, 2024 1:58 pm If so, then it is a related problem. My guess is that, with Chex loaded, the game "knows" that the colour range that should be subject to remapping for the player sprites is not green but blue (I just checked - the game does indeed "know" that).[/edit]
It's much simpler:

DoomPlayer has "Player.ColorRange 112, 127;"
ChexPlayer has "player.colorrange 192, 207;" with this comment added: //Not perfect, but its better than everyone being blue.

The game doesn't need to know, you can just define the desired range on your player class.

Re: i dont know how to change player colors

by Enjay » Wed Mar 27, 2024 5:43 pm

No, that should be OK.

There is an element of the status bar that can change with player colour in multiplayer games, but it's the background to the face, not the face itself.

Re: i dont know how to change player colors

by CanMan » Wed Mar 27, 2024 2:40 pm

do i have to change the status bar face too?

Re: i dont know how to change player colors

by CanMan » Wed Mar 27, 2024 2:36 pm

no the light blue looks the same pretty much so doesnt matter :)

Re: i dont know how to change player colors

by Enjay » Wed Mar 27, 2024 2:35 pm

No problem, glad you got it worked out.

Of course, your revised sprite will probably have unchangeable green hair if you use it in Chex Quest. ;)

Re: i dont know how to change player colors

by CanMan » Wed Mar 27, 2024 2:33 pm

YES FINALLY I KNOW WHAT HAPPENED THANK YOU MAN REALLY I SEARCHED SO HARD FOR THIS THANK. YOU.

Re: i dont know how to change player colors

by Enjay » Wed Mar 27, 2024 2:31 pm

CanMan wrote: Wed Mar 27, 2024 2:27 pm so something like this?
Yes, that should work.

Re: i dont know how to change player colors

by Enjay » Wed Mar 27, 2024 2:30 pm

BTW, I think what you might see in Doom (when you mentioned "soul sphere blue") is an artefact of how GZDoom does the sprite colour changing. If you are trying to translate the colours of a sprite, GZDoom first maps the colours in the sprite to the best matches it can find in the Doom palette. So, with your player sprite loaded, when you try to change colours, GZDoom maps the colours in your sprite to the Doom palette. The light blue in your sprite does not exist in Doom, so the "soul sphere blue" that you mentioned is probably the nearest match. You don't really notice this happening with the rest of the sprite because it's all grey and Doom has a lot of greys in its palette.

Image

If you just leave the player preference at "Green" Doom doesn't try to remap the colours so you can see your normal light blue.

Image

Re: i dont know how to change player colors

by CanMan » Wed Mar 27, 2024 2:27 pm

so something like this?
Attachments
PLAYA1.png
PLAYA1.png (905 Bytes) Viewed 442 times

Re: i dont know how to change player colors

by CanMan » Wed Mar 27, 2024 2:20 pm

makes sense i guess thanks though

Re: i dont know how to change player colors

by Enjay » Wed Mar 27, 2024 2:19 pm

CanMan player sprite right?

Yup, with Chex loaded, the hair on your sprite becomes changable:

Image
(Pic taken with Chex Quest loaded)

If you want the same thing to happen in Doom, then colour your sprite hair green and then change it in the player preferences.

If you are interested in defining a totally new player class, then you can set which colours are the ones subject to alteration in the preferences menu by including Player.ColorRange in your player definition.

Re: i dont know how to change player colors

by CanMan » Wed Mar 27, 2024 2:11 pm

yes thats the problem i have posted an old version of my sprite replacement mod in here take a look at my profile

Top