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

Say Sounds (including Hybrid Edition) (4.0.8)


Post New Thread Reply   
 
Thread Tools Display Modes
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 07-27-2013 , 12:28   AW: Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1031

Quote:
Originally Posted by Meian View Post
Hello,
Is there a way to put a time between sounds individually for each instead of an overall time for all as sm_saysoundhe_time_between_sounds does? I ask because we have some short sounds and long sounds and don't want the same time to wait between using a new sound and don't want the sounds to be stacking on each other.
sm_saysoundhe_time_between_sounds is basically a minimum wait time. The sound info library extension will read the length of a sound and the saysounds plugin will use that length if it's greater than sm_saysoundhe_time_between_sounds.
gH0sTy is offline
Meian
Junior Member
Join Date: Jul 2013
Old 07-27-2013 , 13:13   Re: AW: Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1032

Quote:
Originally Posted by gH0sTy View Post
sm_saysoundhe_time_between_sounds is basically a minimum wait time. The sound info library extension will read the length of a sound and the saysounds plugin will use that length if it's greater than sm_saysoundhe_time_between_sounds.
Let me try to see if I understand. The sound info library extension will read the sound file and use the length of the sound before allowing to play another. The sm_saysoundhe_time_between_sounds is the maximum amount of time before you can play another sound even if the sound had ended a while back. If the sm_saysoundhe_time_between_sounds is a smaller time than the sound file itself, you can not play a sound until the sound file itself finishes.

Example 1:

Sound file is 10 seconds long.
sm_saysoundhe_time_between_sounds is set to "2".
The next sound can't be played even after 2 seconds until the first sound file finishes after 10 seconds.

If this is true, then there is something wrong I am doing. Currently I am testing with sm_saysoundhe_time_between_sounds at 2 and playing sounds that are longer than 2 seconds. I am able to stack sounds as a result. Is the sound library info extension not working properly for me? I would think the plugin wouldn't work at all if it wasn't.
Meian is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 07-27-2013 , 13:53   Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1033

It should work as described with custom sounds but it won't work with built in game sounds as the extension can't access files packed into a .vpk file.
gH0sTy is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 07-27-2013 , 14:34   Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1034

Quote:
Originally Posted by gH0sTy View Post
It should work as described with custom sounds but it won't work with built in game sounds as the extension can't access files packed into a .vpk file.
Which is sadly a limitation of the MP3 reader being used... it can't be used on files that are in memory and it doesn't know how to open files that are inside other files.

Wouldn't it be great if Valve fixed their own sound length function so it actually worked?
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 07-27-2013 at 14:37.
Powerlord is offline
Meian
Junior Member
Join Date: Jul 2013
Old 07-27-2013 , 14:42   Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1035

Quote:
Originally Posted by gH0sTy View Post
It should work as described with custom sounds but it won't work with built in game sounds as the extension can't access files packed into a .vpk file.
They're custom sounds that go into the sound/misc folder. Is it possible for the extension to not work but the plugin does work? Because other than that I am at a loss why this is happening. Is there a way to test if the extension is working?

Edit:

Checked extensions with "sm exts"

"Automatic Updater" (1.4.7) by AlliedModders LLC: Updates SourceMod gamedata files
"Webternet" (1.4.7) by AlliedModders LLC: Extension for interacting with URLs
"Top Menus" (1.4.7) by AlliedModders: Creates sorted nested menus
"SDK Tools" (1.4.7) by AlliedModders LLC: Source SDK Tools
"BinTools" (1.4.7) by AlliedModders LLC: Low-level C/C++ Calling API
"GeoIP" (1.4.7) by AlliedModders LLC: Geographical IP information
"Client Preferences" (1.4.7) by AlliedModders: Saves client preference settings
"SQLite" (1.4.7) by AlliedModders LLC: SQLite Driver
"Sound Info Library" (1.0) by Berni: Access information of sound files

So it shows that it is there... augh I dunno ;; If I could manually put a delay between each sound after it is played before playing another I would at this point

Last edited by Meian; 07-27-2013 at 19:02.
Meian is offline
Spirrwell
Member
Join Date: Jul 2013
Old 07-28-2013 , 00:57   Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1036

I actually helped him with it. I won't know for sure if it works for him until he gets up tomorrow, but if anybody else has the same problem. Get the version from GitHub, it should work properly.
Spirrwell is offline
Meian
Junior Member
Join Date: Jul 2013
Old 07-28-2013 , 10:31   Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1037

Quote:
Originally Posted by Spirrwell View Post
I actually helped him with it. I won't know for sure if it works for him until he gets up tomorrow, but if anybody else has the same problem. Get the version from GitHub, it should work properly.
Can confirm this works! Not sure why the other one works but glad it did~
Meian is offline
Hasney
New Member
Join Date: Jul 2013
Old 08-05-2013 , 09:00   Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1038

Quote:
Originally Posted by Hasney View Post
Getting a slight issue on this one. Trying to get a round start sound played and not much is happening.

The plugin is loaded and I can bring the menu up and the sound is downloaded by the client at the start, but little else happens. My configs:

Code:
// ##################################################################################################
// ############################## Saysounds example config ##########################################
// ##################################################################################################
// # Soundfiles have to be placed relative to your game/mod "sound" folder.							#
// # Example: 	cstrike/sound/mysound.mp3	or		dod/sound/myfolder/mysound.mp3					#
// #			"file"	"mysound.mp3"		or		"file"	"myfolder/mysound.mp3"					#
// # If you run a pure server (sv_pure = 1) you should create an extra folder for your sounds		#
// # so you don't have to whitelist your whole "sound" folder.										#
// # Whitelisting is done in the "pure_server_whitelist.txt" file located in the "hl2" folder.		#
// # Example: sound\myfolder\...	allow_from_disk													#
// # Don't forget to change the map after you've added something to your pure_server_whitelist.txt	#
// # For more infos on pure servers visit http://developer.valvesoftware.com/wiki/Pure_Servers		#
// ##################################################################################################

"Sound Combinations"
{
	"start"
	{
		"file"	"rocky.mp3"
		"actiononly" "1"
		"action" "round"
		"param" "roundstart"
		"prob"		"1"
	}
}

Code:
//////////////////////////////////
//		***	GENERAL	***			//
//////////////////////////////////

// Turns Sounds On/Off
// -
// Default: "1"
sm_saysoundhe_enable "1"

// Number of sounds to download per map start (-1=unlimited).
// -
// Default: "-1"
sm_saysoundhe_download_threshold "-1"

// Number of sounds to precache on map start (-1=unlimited).
// -
// Default: "0"
sm_saysoundhe_sound_threshold "0"

// 1 To show menu to users, 0 to hide menu from users (admins excluded)
// -
// Default: "1"
sm_saysoundhe_showmenu "0"

// Volume setting for Say Sounds (0.0 <= x <= 1.0)
// -
// Default: "1.0"
// Minimum: "0.000000"
// Maximum: "1.000000"
sm_saysoundhe_saysounds_volume "1.0"

// Turns on announcements when a sound is played
// -
// Default: "1"
sm_saysoundhe_sound_announce "0"

// Announce played adult sounds? | 0 = off 1 = on
// -
// Default: "0"
sm_saysoundhe_adult_announce "0"

// If set, block the sound trigger to be displayed in the chat window
// -
// Default: "0"
sm_saysoundhe_block_trigger "0"

// When set, allows clients that have turned their sounds off to trigger sounds (0=off | 1=on)
// -
// Default: "0"
sm_saysoundhe_play_cl_snd_off "0"

// When set, will trigger sounds if keyword is embedded in a sentence
// -
// Default: "0"
sm_saysoundhe_sound_sentence "0"

// If set, don't allow to play a sound that was recently played
// -
// Default: "0"
sm_saysoundhe_excl_last_sound "0"

// If set, alive players do not hear sounds triggered by dead players
// -
// Default: "0"
sm_saysoundhe_filter_if_dead "0"

// If set, interrupt the current sound when a new start
// -
// Default: "0"
sm_saysoundhe_interrupt_sound "0"

// User flags that are allowed to stop a sound
// -
// Default: ""
sm_saysoundhe_stop_flags ""

// User flags that are allowed to access the configuration menu
// -
// Default: ""
sm_saysoundhe_confmenu_flags ""

// Time between each admin sound trigger, 0.0 to disable checking for admin sounds
// Set to -1 to completely bypass the soundspam protection for admins
// -
// Default: "4.5"
sm_saysoundhe_time_between_admin_sounds "4.5"

// Time between each sound trigger, 0.0 to disable checking
// -
// Default: "4.5"
sm_saysoundhe_time_between_sounds "4.5"

// User flags to bypass the Time between sounds check
// -
// Default: ""
sm_saysoundhe_time_between_flags ""

// When set, will log sounds that are played
// -
// Default: "0"
sm_saysoundhe_sound_logging "0"


//////////////////////////////////
//		***	LIMITS	***			//
//////////////////////////////////

// If set, sm_saysoundhe_sound_limit is the limit per round instead of per map
// -
// Default: "0"
sm_saysoundhe_limit_sound_per_round "0"

// Maximum sounds per ADMIN (0 for unlimited)
// -
// Default: "0"
sm_saysoundhe_sound_admin_limit "0"

// Maximum sounds per PLAYER (0 for unlimited)
// -
// Default: "5"
sm_saysoundhe_sound_limit "0"

// User flags that will result in unlimited sounds
// -
// Default: ""
sm_saysoundhe_sound_flags ""

// Flag(s) that will have a seperate sound limit
// -
// Default: ""
sm_saysoundhe_flags ""

// Maximum sounds per person with the corresponding flag (0 for unlimited)
// -
// Default: "5"
sm_saysoundhe_flags_limit "5"

// If set, stores sound counts when clients leave and loads them when they join.
// -
// Default: "1"
sm_saysoundhe_track_disconnect "1"


//////////////////////////////////
//		***	WARNINGS ***		//
//////////////////////////////////

// Number of sounds to warn ADMIN at (0 for no warnings)
// -
// Default: "0"
sm_saysoundhe_sound_admin_warn "0"

// Number of sounds to warn PLAYER at (0 for no warnings)
// -
// Default: "3"
sm_saysoundhe_sound_warn "3"


//////////////////////////////////
//		***	Join Sounds	***		//
//////////////////////////////////

// Play sounds when someone joins or exits the game
// -
// Default: "1"
sm_saysoundhe_join_exit "0"

// Wait until the player spawns before playing the join sound
// -
// Default: "1"
sm_saysoundhe_join_spawn "1"

// Play sounds when specific steam ID joins or exits the game
// -
// Default: "1"
sm_saysoundhe_specific_join_exit "1"


//////////////////////////////////
//		***	Karaoke	***			//
//////////////////////////////////

// Delay before playing a Karaoke song
// -
// Default: "15.0"
sm_saysoundhe_karaoke_delay "15.0"
Thanks for any help
Any ideas on this one anyone? Still struggling to get it working.
Hasney is offline
scorpadorp
SourceMod Donor
Join Date: May 2012
Location: NC
Old 08-15-2013 , 17:29   Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1039

Not sure what I'm doing wrong here. I installed it correctly. I added a sound from vpk and a few custom files and they work perfectly.

Problem is, the chat trigger won't show in chat only for me (rcon access) but does for everyone else. Also, I'm the only one that can't hear the songs.

Any ideas as to why?

Last edited by scorpadorp; 08-15-2013 at 20:41.
scorpadorp is offline
mghtbgiant
Junior Member
Join Date: Feb 2013
Old 08-16-2013 , 16:07   Re: Say Sounds (including Hybrid Edition) (4.0.8)
Reply With Quote #1040

Is there a file-size limitation on the config file/number of sounds? I just got done adding a BUNCH and now it's not working. I realize there is a good chance I fat-fingered something and I'm scouring the config file now to see if there is a clerical error. However, I was wondering if there is a file-size limitation from anywhere.

How big is everyone else's config file? Mine is now (after this latest batch of sounds) a little over 27MB with close to 400 distinct sounds.

EDIT: as a follow-up, I just checked sm plugins list and Say Sounds is showing as running.

Last edited by mghtbgiant; 08-16-2013 at 16:09. Reason: further info
mghtbgiant 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:10.


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