Custom player class completely broken
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Cardboard Marty
- Posts: 1149
- Joined: Sat Oct 23, 2004 8:29 am
- Graphics Processor: nVidia with Vulkan support
- Location: Robot Mountain
- Contact:
Custom player class completely broken
Okay, so I've set up a new custom player class. I've imported the sprites, .png like I always do, set up the sounds in .ogg format, etc. etc. But then when I go to play as this class, the sprite's pants are gray instead of blue like I colored them, and only two of the sounds work.
This is completely frustrating because as far as I can tell I've done everything right here. When I summon the player class, the pants are blue like I intended, but the sounds still don't play when I shoot him or what have you. I even got the extreme death sound to play once but all of a sudden it stopped working.
I set the class up in SLumpEd (imported the sprites/sounds, wrote the code), but I also tried doing it in XWE and still got the same results. :( Help guys?
http://www.sendspace.com/file/0j9iw0
EDIT: Looks like the gray pants are because ZDoom is forcing the palette on my sprites, but only when it's being used as a player class. Apparently this is a known issue :P
This is completely frustrating because as far as I can tell I've done everything right here. When I summon the player class, the pants are blue like I intended, but the sounds still don't play when I shoot him or what have you. I even got the extreme death sound to play once but all of a sudden it stopped working.
I set the class up in SLumpEd (imported the sprites/sounds, wrote the code), but I also tried doing it in XWE and still got the same results. :( Help guys?
http://www.sendspace.com/file/0j9iw0
EDIT: Looks like the gray pants are because ZDoom is forcing the palette on my sprites, but only when it's being used as a player class. Apparently this is a known issue :P
- Sangelothi
- Posts: 351
- Joined: Mon Sep 07, 2009 12:32 am
Re: Custom player class completely broken
Use "$playeralias" when using "random" sounds instead of "$playersound", this should fix the sounds 

- Cardboard Marty
- Posts: 1149
- Joined: Sat Oct 23, 2004 8:29 am
- Graphics Processor: nVidia with Vulkan support
- Location: Robot Mountain
- Contact:
Re: Custom player class completely broken
Did the death sounds play for you at all?
- Sangelothi
- Posts: 351
- Joined: Mon Sep 07, 2009 12:32 am
Re: Custom player class completely broken
$playersound Agent male *crazydeath treehdt1
$playersound Agent male *wimpydeath ta/death
add that , and it works
EDIT: You could also try using "PlayerPawn" instead of "Doomplayer replaces Doomplayer" (Did that with EP because it would play both the original Doom player sounds and the new ones)
$playersound Agent male *wimpydeath ta/death
add that , and it works

EDIT: You could also try using "PlayerPawn" instead of "Doomplayer replaces Doomplayer" (Did that with EP because it would play both the original Doom player sounds and the new ones)

- Cardboard Marty
- Posts: 1149
- Joined: Sat Oct 23, 2004 8:29 am
- Graphics Processor: nVidia with Vulkan support
- Location: Robot Mountain
- Contact:
Re: Custom player class completely broken
You wouldn't mind just pasting your SNDINFO here would you? It's still not working on my end :\
- Sangelothi
- Posts: 351
- Joined: Mon Sep 07, 2009 12:32 am
Re: Custom player class completely broken
Spoiler: SNDINFO
Spoiler: Decorate
- Cardboard Marty
- Posts: 1149
- Joined: Sat Oct 23, 2004 8:29 am
- Graphics Processor: nVidia with Vulkan support
- Location: Robot Mountain
- Contact:
Re: Custom player class completely broken
What version of ZDoom are you using? Weasel and I couldn't get it working in the latest, but DoomRater had it working in 2.3.1.
EDIT: That's with Zero-X's fixes and also DoomRater's, which are both pretty identical it seems.
EDIT: That's with Zero-X's fixes and also DoomRater's, which are both pretty identical it seems.
- Sangelothi
- Posts: 351
- Joined: Mon Sep 07, 2009 12:32 am
Re: Custom player class completely broken
2.4.0
(the latest GZDoom SVN to be exact)

- Cardboard Marty
- Posts: 1149
- Joined: Sat Oct 23, 2004 8:29 am
- Graphics Processor: nVidia with Vulkan support
- Location: Robot Mountain
- Contact:
Re: Custom player class completely broken
I just downloaded that and it's still not working. What the hell?
- Sangelothi
- Posts: 351
- Joined: Mon Sep 07, 2009 12:32 am
Re: Custom player class completely broken
Hmmm, here try my edit of the wad
see if it works

- Sangelothi
- Posts: 351
- Joined: Mon Sep 07, 2009 12:32 am
- Cardboard Marty
- Posts: 1149
- Joined: Sat Oct 23, 2004 8:29 am
- Graphics Processor: nVidia with Vulkan support
- Location: Robot Mountain
- Contact:
Re: Custom player class completely broken
Oh wow! That works completely fine, it seems! Thanks! :D
- Sangelothi
- Posts: 351
- Joined: Mon Sep 07, 2009 12:32 am
Re: Custom player class completely broken
No problem, any idea what was wrong??? 

- Cardboard Marty
- Posts: 1149
- Joined: Sat Oct 23, 2004 8:29 am
- Graphics Processor: nVidia with Vulkan support
- Location: Robot Mountain
- Contact:
Re: Custom player class completely broken
I'm not entirely sure, DoomRater applied the fixes and they seemed to work, but when me and Weasel did they didn't. I also did your fixes and it didn't work on my end, but your .wad works great!