AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Custom songs won't play. Plugin help. (https://forums.alliedmods.net/showthread.php?t=232954)

Zond 01-07-2014 09:36

Custom songs won't play. Plugin help.
 
I have tried 3 different end roundsound plugins but none of them plays music. Then I got plugin witch do some stuff and also plays music, but the music part don't plays. I have something wrong with music, why it don't plays?
I got steam and I am running cs:cz

simanovich 01-07-2014 09:42

Re: Custom songs won't play. Plugin help.
 
Check if the sound files can be readable by the game engine.

To do that you need to be in the main main.

For MP3 file:
Type in console:
Code:

mp3 play "sound/mysoundfile.mp3"
Replace "mysoundfile.mp3" with your sound file path + file name.

For wav files:
Type in console:
Code:

spk "mysoundfile"
Replace "mysoundfile" with your sound file path (no need for "sound/" part) + file name.

Zond 01-07-2014 10:00

Re: Custom songs won't play. Plugin help.
 
Quote:

Originally Posted by simanovich (Post 2082463)
Check if the sound files can be readable by the game engine.

To do that you need to be in the main main.

For MP3 file:
Type in console:
Code:

mp3 play "sound/mysoundfile.mp3"
Replace "mysoundfile.mp3" with your sound file path + file name.

For wav files:
Type in console:
Code:

spk "mysoundfile"
Replace "mysoundfile" with your sound file path (no need for "sound/" part) + file name.

Thanks for response. I dont get what is main main, but I tried command: spk "misc/music1"
In server consule and while in server.
I think you wanet to me code that in main function? I can't do that, just didn't found right forum category where to post this :)

Zond 01-07-2014 13:54

Re: Custom songs won't play. Plugin help.
 
BUMP. Do I need to do some configuration to be able to play wav files on server?

11922911 01-07-2014 20:49

Re: Custom songs won't play. Plugin help.
 
Quote:

Originally Posted by Zond (Post 2082472)
Thanks for response. I dont get what is main main, but I tried command: spk "misc/music1"
In server consule and while in server.
I think you wanet to me code that in main function? I can't do that, just didn't found right forum category where to post this :)

Try again in a client console:
Code:

developer 1
spk "misc/music1"

and see if there have any output.

DWIGHTpN 01-08-2014 00:13

Re: Custom songs won't play. Plugin help.
 
I don't know for mp3, but for wave sounds convert with this settings:
Code:

Uncompressed: 16 bit (cd)
Channels 1 'mono', ~22 kHz.

With this settings will obtain a playable quality sounds. (for cs 1.6 client)

Zond 01-08-2014 02:27

Re: Custom songs won't play. Plugin help.
 
Quote:

Originally Posted by 11922911 (Post 2082753)
Try again in a client console:
Code:

developer 1
spk "misc/music1"

and see if there have any output.

misc/music1.wav is a stereo sample

fysiks 01-08-2014 02:30

Re: Custom songs won't play. Plugin help.
 
Quote:

Originally Posted by Zond (Post 2082814)
misc/music1.wav is a stereo sample

You have to convert the format of the wave file as stated by Dwight.

Zond 01-08-2014 02:39

Re: Custom songs won't play. Plugin help.
 
Quote:

Originally Posted by fysiks (Post 2082815)
You have to convert the format of the wave file as stated by Dwight.

Do you know with witch program I can do that?

Zond 01-08-2014 03:42

Re: Custom songs won't play. Plugin help.
 
http://bgetutorials.wordpress.com/20...v-to-mono-wav/
Followed that tutorial and solved my problem :)
Thanks to all for help.


All times are GMT -4. The time now is 10:06.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.