+playerclass doesn't work

Need help running G/Q/ZDoom/ECWolf/Zandronum/3DGE/EDuke32/Raze? Did your computer break? Ask here.

Moderator: GZDoom Developers

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.
User avatar
SPZ1
Posts: 375
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

+playerclass doesn't work

Post by SPZ1 »

I tried to make it work but it just won't. +playerclass command line argument doesn't work! I tried this with both Doom2.wad and Hexen.wad :?

Mirror 1
Mirror 2
User avatar
Enjay
 
 
Posts: 26835
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: +playerclass doesn't work

Post by Enjay »

I'm not sure what the results should look like but I tried adding:

+playerclass water_Mage +map map01 -nomonsters

to the command line (and also tried with earth, water and wind). When the game started, I was a very tall player and typing "playerclass" at the console returned the same option as I had entered at the command line.

Code: Select all

]playerclass
"playerclass" is "water_mage" (default: "Fighter")
I'm not sure what the difference in your character classes are though, so I don't know if the player was actually different classes with the different parameters.

It should also be noted that when I typed +playerclass testme +map map01 -nomonsters at the command line, I got exactly the same result: the player was very tall and the console told me that the playerclass was "testme" even though no testme class exists. So, I guess the command just sets the variable, regardless of whether the player class exists or not.

However, using the default player classes in Hexen:
+playerclass cleric +map map01 -nomonsters
+playerclass mage +map map01 -nomonsters
+playerclass fighter +map map01 -nomonsters
definitely worked as expected.
User avatar
SPZ1
Posts: 375
Joined: Wed Aug 02, 2017 3:01 pm
Location: Illinois

Re: +playerclass doesn't work

Post by SPZ1 »

When there is no specification, the player class spawned will be random (this is supposed to be how it works). You can see which player class you are with the chasecam. This wiki page mentions this:
The Wiki wrote: +playerclass class
Only relevant when playing a game with several available player classes. Without mods, this applies to Hexen only. For example:

+playerclass Fighter
+playerclass Cleric
+playerclass Mage
+playerclass Random
User avatar
Enjay
 
 
Posts: 26835
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland

Re: +playerclass doesn't work

Post by Enjay »

SPZ1 wrote: Sat Feb 01, 2025 4:57 pm You can see which player class you are with the chasecam.
Ah, OK, yes, that does help. And, yes, your player classes just seem to be getting applied randomly.

However, I am getting the correct vanilla Hexen classes working very reliably and repeatably in Hexen. So, it could be something to do with your mod, though I can't see what, and your classes certainly work properly from the new game menu.

Return to “Technical Issues”