Page 1 of 1
Custom player class completely broken
Posted: Wed Jan 20, 2010 2:37 pm
by Cardboard Marty
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
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 5:06 pm
by Sangelothi
Use "$playeralias" when using "random" sounds instead of "$playersound", this should fix the sounds

Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 7:17 pm
by Cardboard Marty
Did the death sounds play for you at all?
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 7:27 pm
by Sangelothi
$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)

Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 7:34 pm
by Cardboard Marty
You wouldn't mind just pasting your SNDINFO here would you? It's still not working on my end :\
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 7:57 pm
by Sangelothi
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 8:21 pm
by Cardboard Marty
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.
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 8:29 pm
by Sangelothi
2.4.0

(the latest GZDoom SVN to be exact)
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 8:37 pm
by Cardboard Marty
I just downloaded that and it's still not working. What the hell?
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 8:41 pm
by Sangelothi
Hmmm, here try my edit of the wad

see if it works
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 8:44 pm
by Sangelothi
Hmm, here try my edit of the wad, see if it works
http://www.sendspace.com/file/gk2jg8
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 8:50 pm
by Cardboard Marty
Oh wow! That works completely fine, it seems! Thanks! :D
Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 8:52 pm
by Sangelothi
No problem, any idea what was wrong???

Re: Custom player class completely broken
Posted: Thu Jan 21, 2010 8:58 pm
by Cardboard Marty
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!