Page 1 of 1

Skin sounds does not work

Posted: Sun Jan 18, 2015 4:56 pm
by L0N3W0LF
Im making a basic skin with the face of my friend just for testing. The skin images work greate and the skin name appers on the player configuration section. The only problem is that the skin cant make any sounds. What am i doing wrong?

Here is the SKININFO info file
* ZDoom S_Skin
* Lump on top of all

Code: Select all

{
name = "Charly"
sprite = CHLY
gender = male
}
Here is the audio SNDFILE
* ZDoom SndInfo
* Lump on top of all and under SKININFO

Code: Select all

Charly/Taunt1 	SWAGT1
Charly/Taunt2 	SWAGT2
Charly/Taunt3 	SWAGT3
Charly/Taunt4 	SWAGT4
Charly/Taunt5 	SWAGT5
Charly/Taunt6 	SWAGT6
Charly/Dead SWAGDT
Charly/Hit 	SWAGHU

$random Charly/Taunt { Charly/Taunt1 Charly/Taunt2 Charly/Taunt3 Charly/Taunt4 Charly/Taunt5 Charly/Taunt6 }

// Audio stuff
$playeralias "Charly"	male	*death		Charly/Dead
$playeralias "Charly"	male	*xdeath		Charly/Dead
$playeralias "Charly"	male	*gibbed		Charly/Dead
$playeralias "Charly"	male	*pain100	Charly/Hit
$playeralias "Charly"	male	*pain75		Charly/Hit
$playeralias "Charly"	male	*pain50		Charly/Hit
$playeralias "Charly"	male	*pain25		Charly/Hit
$playeralias "Charly"	male	*grunt		Charly/Taunt1
$playeralias "Charly"	male	*taunt		Charly/Taunt


The audio files are all .ogg and the name of all of them start as "SWAG" and all of them are the last lumps.

Any ideas?

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 5:11 pm
by Erma
Hi there!

I sometimes have a similar problem of a skin or class not working as it should soundwise.
Spoiler: code (Open)
$PlayerSound Geraldine female *Death Geraldinedeath
$PlayerSoundDup Geraldine female *XDeath *Death
$PlayerSound Geraldine female *Pain100 GeraldineHit
$PlayerSoundDup Geraldine female *Pain75 *Pain100
$PlayerSoundDup Geraldine female *Pain50 *Pain100
$PlayerSoundDup Geraldine female *Pain25 *Pain100
$PlayerSound Geraldine female *Grunt QUIET
$PlayerSoundDup Geraldine female *Land *Grunt
$PlayerSound Geraldine female *Jump QUIET
$PlayerSoundDup Geraldine female *UseFail *Grunt
$PlayerSound Geraldine female *Taunt GeraldineTaunt

$PlayerAlias Geraldine female *Death Geraldinedeath
$PlayerAlias Geraldine female *XDeath *Death
$PlayerAlias Geraldine female *Pain100 GeraldineHit
$PlayerAlias Geraldine female *Pain75 *Pain100
$PlayerAlias Geraldine female *Pain50 *Pain100
$PlayerAlias Geraldine female *Pain25 *Pain100
$PlayerAlias Geraldine female *Grunt QUIET
$PlayerAlias Geraldine female *Land QUIET
$PlayerAlias Geraldine female *Jump silent
$PlayerAlias Geraldine female *UseFail QUIET
$PlayerAlias Geraldine female *Taunt GeraldineTaunt
Do you have anything similar to this in your SNDINFO?

If you use a taunt/death/pain-sound which has multiple and random files, $PlayerAlias must be used. Atleast, that's what always worked for me.

Feel free to copy this code and just rename and redirect the correct lines. (e.g.: Geraldine -> Charly and Geraldinetaunt -> Charly/taunt)

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 5:25 pm
by L0N3W0LF
Hey!
Thanks for the help and code share :D but it dosent work either. (yes i checked all the names)
I dont know what is going on :/
I also tried the $volume thing and nop.

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 5:36 pm
by Erma
L0N3W0LF wrote: Hey!
Thanks for the help and code share :D but it dosent work either. (yes i checked all the names)
I dont know what is going on :/
I also tried the $volume thing and nop.
Could you upload the skin somewhere, so I can have a look at it? Speedyshare.com or Mediafire.com are usually good file-storage/distribution sites.

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 5:46 pm
by L0N3W0LF
mmmm sorry i talk to my friend and does not want to show his face xD but i can give you screenshots of how the files look and the code:

SLADE3
https://dl.dropboxusercontent.com/u/538 ... ges/2e.png
https://dl.dropboxusercontent.com/u/538 ... ges/1e.png

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 5:51 pm
by Erma
Doesn't want to show his face? Is this skin based on your friend then?

I'd just need the file though. But try adding the "playersounddup" part of my code in it as well. Just the entire thing :)

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 5:55 pm
by L0N3W0LF

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 6:04 pm
by Erma
Ah. I figured it out.

The soundfiles itself are corrupted. I tried playing the sounds in SLADE, but none of them play. Tried exporting it into a single .ogg file in REAPER (audio editor). Said I could not import the file.

I think your friend will have to redo the sounds.

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 6:06 pm
by L0N3W0LF
Thats weird, i actually can play them on SLADE and can export them o.0 but ok ill try then (:
Found what the problem is: My audio files are indeed .ogg but they are Opus audio format. You have to use Ogg Vorbis audio format. :S
Here is a link to a good audio format converter (: http://soundconverter.org/
now the audio works :D
And thanks for the help, Hekmatyar (:

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 6:45 pm
by Slim
For future reference, (shameless plug omg)

http://zandronum.com/forum/showthread.p ... 1#pid58404

Contains all you need to make one yourself/fix a skin with all the info.

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 6:54 pm
by L0N3W0LF
In the tutorial you should explain that even if its a .ogg file they should see if the audio format it self is a "Ogg Vorbis audio" format, because in my case the audio format was "Opus audio".

Yes i saw your article but it didn't help in my case, but thanks (:

RE: Skin sounds does not work

Posted: Sun Jan 18, 2015 7:01 pm
by Slim
Ohhh, Opus... Yeah I must've overlooked that, Muh bad.