Raised This Month: $51 Target: $400
 12% 

Say Sounds (including Hybrid Edition) (4.0.8)


Post New Thread Reply   
 
Thread Tools Display Modes
InsaneOut
Junior Member
Join Date: Jul 2011
Old 07-22-2011 , 19:12   Re: Say Sounds (including Hybrid Edition) (4.0.1)
Reply With Quote #631

Awesome update, took a while to go through all the soundclips and add the durations.

Quick question: can I set multiple params to the same alias? For example I want to have a clip trigger whenever someone dies from a fire weapon (flamethrower, backburner, flares etc.) I know I can just copy paste the combination and change the name, but would I be able to have multiple params in the same block (param1, param2, param3 etc.)

Code:
	"burn"
	{
		"file"	"burn.mp3"
		"admin"	"0"
		"actiononly" "0"
		"action"	"kill"
		"playto"	"both"
		"param"		"flamethrower"
		"param"		"backburner"
		"param"		"flaregun"
	}
I'm gonna mess around with this in a bit, but was just wondering if you already know.
InsaneOut is offline
InsaneOut
Junior Member
Join Date: Jul 2011
Old 07-22-2011 , 20:23   Re: Say Sounds (including Hybrid Edition) (4.0.1)
Reply With Quote #632

Nope, nothing is ever that easy

But this does the trick instead:
Code:
	"burn"
	{
		"file"	"burn.mp3"
		"admin"	"0"
		"actiononly" "0"
		"action"	"kill"
		"playto"	"both"
		"param"		"flamethrower"
	}

	"burn2"
	{
		"file"	"burn.mp3"
		"admin"	"0"
		"actiononly" "1"
		"action"	"kill"
		"playto"	"both"
		"param"		"backburner"
	}

	"burn3"
	{
		"file"	"burn.mp3"
		"admin"	"0"
		"actiononly" "1"
		"action"	"kill"
		"playto"	"both"
		"param"		"flaregun"
	}
Just make sure the copies have actiononly set to 1 or you'll have 3 copies of the same file in the !soundlist menu
InsaneOut is offline
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 07-26-2011 , 20:03   Re: Say Sounds (including Hybrid Edition) (4.0.1)
Reply With Quote #633

Hello, I seem to be getting this error:
PHP Code:
L 07/26/2011 18:43:43: [SMNative "SQL_FetchRow" reportedInvalid query Handle 0 (error4)
L 07/26/2011 18:43:43: [SMDisplaying call stack trace for plugin "saysounds.smx":
L 07/26/2011 18:43:43: [SM]   [0]  Line 1180E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp::Event_Disconnect() 
BTW, my clientprefs is using MySQL, rather than SQLite if that means anything.
StrikerMan780 is offline
Mev
Senior Member
Join Date: Apr 2011
Old 07-26-2011 , 23:14   Re: Say Sounds (including Hybrid Edition) (4.0.1)
Reply With Quote #634

"Sound Combinations"
{
// #### Join/Exit Sounds ####
"JoinSound" // Sound to play when a player Joins the server
{
"file" "Sound/SSG/SSG_Kill_Everybody.mp3"
"admin" "0"
"text" "blablabla" // Message to display if s client joins the server
"single" "1" // 1 to play sound to single client only, 0 to play to all (default is 1)
"volume" "1.1" // Specify volume for this specific sound
}

Am I doing something wrong? ;S


L 07/27/2011 - 13:08:02: [SM] Native "GetSoundLength" reported: Invalid sound-file handle 0 (error 4)
L 07/27/2011 - 13:08:02: [SM] Displaying call stack trace for plugin "saysounds.smx":
L 07/27/2011 - 13:08:02: [SM] [0] Line 2054, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::Send_Sound()
L 07/27/2011 - 13:08:02: [SM] [1] Line 2019, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::Submit_Sound()
L 07/27/2011 - 13:08:02: [SM] [2] Line 1703, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::CheckJoin()
L 07/27/2011 - 13:08:02: [SM] [3] Line 1652, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::OnClientPostAdminCheck()

In console?
Mev is offline
Mev
Senior Member
Join Date: Apr 2011
Old 07-26-2011 , 23:20   Re: Say Sounds (including Hybrid Edition) (4.0.1)
Reply With Quote #635

All I hear on connect is a trumpet sound.
Mev is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 07-27-2011 , 09:17   Re: Say Sounds (including Hybrid Edition) (4.0.1)
Reply With Quote #636

Quote:
Originally Posted by StrikerMan780 View Post
Hello, I seem to be getting this error:
PHP Code:
L 07/26/2011 18:43:43: [SMNative "SQL_FetchRow" reportedInvalid query Handle 0 (error4)
L 07/26/2011 18:43:43: [SMDisplaying call stack trace for plugin "saysounds.smx":
L 07/26/2011 18:43:43: [SM]   [0]  Line 1180E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp::Event_Disconnect() 
BTW, my clientprefs is using MySQL, rather than SQLite if that means anything.
Get version 4.0.2, should be fixed now.
Quote:
Originally Posted by Mev View Post
"Sound Combinations"
{
// #### Join/Exit Sounds ####
"JoinSound" // Sound to play when a player Joins the server
{
"file" "Sound/SSG/SSG_Kill_Everybody.mp3"
"admin" "0"
"text" "blablabla" // Message to display if s client joins the server
"single" "1" // 1 to play sound to single client only, 0 to play to all (default is 1)
"volume" "1.1" // Specify volume for this specific sound
}

Am I doing something wrong? ;S


L 07/27/2011 - 13:08:02: [SM] Native "GetSoundLength" reported: Invalid sound-file handle 0 (error 4)
L 07/27/2011 - 13:08:02: [SM] Displaying call stack trace for plugin "saysounds.smx":
L 07/27/2011 - 13:08:02: [SM] [0] Line 2054, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::Send_Sound()
L 07/27/2011 - 13:08:02: [SM] [1] Line 2019, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::Submit_Sound()
L 07/27/2011 - 13:08:02: [SM] [2] Line 1703, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::CheckJoin()
L 07/27/2011 - 13:08:02: [SM] [3] Line 1652, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::OnClientPostAdminCheck()

In console?
The soundfile couldn't be opened, looks like a wrong configuration.
According to your "file" key the soundfile is in <game>/sound/Sound/SSG/SSG_Kill_Everybody.mp3 ?
gH0sTy is offline
Mev
Senior Member
Join Date: Apr 2011
Old 07-27-2011 , 23:04   Re: Say Sounds (including Hybrid Edition) (4.0.2)
Reply With Quote #637

So I only need SSG/...( file name)

It doesnt need to be told game or sound folder? it assumes?
Mev is offline
Mev
Senior Member
Join Date: Apr 2011
Old 07-27-2011 , 23:17   Re: Say Sounds (including Hybrid Edition) (4.0.2)
Reply With Quote #638

L 07/28/2011 - 13:09:17: [SM] Displaying call stack trace for plugin "saysounds.smx":
L 07/28/2011 - 13:09:17: [SM] [0] Line 2054, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::Send_Sound()
L 07/28/2011 - 13:09:17: [SM] [1] Line 2019, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::Submit_Sound()
L 07/28/2011 - 13:09:17: [SM] [2] Line 1703, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::CheckJoin()
L 07/28/2011 - 13:09:17: [SM] [3] Line 1652, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::OnClientPostAdminCheck()

Still getting this over and over.
Tried placing it as misc/SSG_Kill_Everybody.mp3 even and others but it only ever plays trumpet on connect =/
Mev is offline
StrikerMan780
AlliedModders Donor
Join Date: Jul 2009
Location: Canada
Old 07-28-2011 , 01:24   Re: Say Sounds (including Hybrid Edition) (4.0.2)
Reply With Quote #639

4.0.2 doesn't fix it. Just brings about a new problem.
Code:
L 07/28/2011 - 00:14:55: [SM] Native "CloseHandle" reported: Handle 0 is invalid (error 4)
L 07/28/2011 - 00:14:55: [SM] Displaying call stack trace for plugin "saysounds.smx":
L 07/28/2011 - 00:14:55: [SM]   [0]  Line 1204, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp::Event_Disconnect()
StrikerMan780 is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 07-28-2011 , 06:10   Re: Say Sounds (including Hybrid Edition) (4.0.2)
Reply With Quote #640

Quote:
Originally Posted by Mev View Post
So I only need SSG/...( file name)

It doesnt need to be told game or sound folder? it assumes?
Quote:
Originally Posted by Mev View Post
L 07/28/2011 - 13:09:17: [SM] Displaying call stack trace for plugin "saysounds.smx":
L 07/28/2011 - 13:09:17: [SM] [0] Line 2054, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::Send_Sound()
L 07/28/2011 - 13:09:17: [SM] [1] Line 2019, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::Submit_Sound()
L 07/28/2011 - 13:09:17: [SM] [2] Line 1703, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::CheckJoin()
L 07/28/2011 - 13:09:17: [SM] [3] Line 1652, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp ::OnClientPostAdminCheck()

Still getting this over and over.
Tried placing it as misc/SSG_Kill_Everybody.mp3 even and others but it only ever plays trumpet on connect =/
All sound files have to be placed relative to your <game>/sound folder and you only specify the path beneath the <game>/sound folder in your saysounds.cfg.
There still seems to be a misconfiguration in your saysounds.cfg.. and what do you want to tell me with your trumpet sound?

Quote:
Originally Posted by StrikerMan780 View Post
4.0.2 doesn't fix it. Just brings about a new problem.
Code:
L 07/28/2011 - 00:14:55: [SM] Native "CloseHandle" reported: Handle 0 is invalid (error 4)
L 07/28/2011 - 00:14:55: [SM] Displaying call stack trace for plugin "saysounds.smx":
L 07/28/2011 - 00:14:55: [SM]   [0]  Line 1204, E:\2Burn\Games\Server\sourcemod-1.3.8-linux\addons\sourcemod\scripting\saysounds.sp::Event_Disconnect()
The connection to the SQL database was successful but the query wasn't.
You do know that you'll have to restart your gameserver after you've switched your clientprefs DB configuration from SQLite to MySQL?
Try the attached version and have a look at the saysounds_error.log in the SM logs folder, there should be a more detailed error message.
Attached Files
File Type: smx saysounds.smx (36.2 KB, 116 views)
File Type: sp Get Plugin or Get Source (saysounds.sp - 119 views - 102.3 KB)
gH0sTy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:17.


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