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

Say Sounds (including Hybrid Edition) (4.0.8)


Post New Thread Reply   
 
Thread Tools Display Modes
naris
AlliedModders Donor
Join Date: Dec 2006
Old 09-01-2009 , 14:54   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #311

Quote:
Originally Posted by Pacmaney View Post
Is it possible to make the join sounds only play on the players FIRST connect. Having the sound play on mapchanges makes all of the people with join sounds play simultaneously which is a bit of an ear pain.
The short answer is "not really".

The long answer is that ALL players get disconnected when a map ends and re-connected at the start of the next map. There is no such thing as a "FIRST connect".

In order to do what you request, the plugin would have to track the steamid's of all players that connect in a database or something and only play the connect sound for those not in said database.

However, admins and regular players would then never hear the join sound, after their first ever connection to the server.

So, you would have to have some mechanism to remove players form the database after a certain amount of time or something, perhaps by also storing the timestamp when they last join and comparing it to the current one?

Last edited by naris; 09-01-2009 at 14:59.
naris is offline
hi_tech_guy_18
Junior Member
Join Date: May 2009
Old 09-06-2009 , 09:32   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #312

Seems to not like the Extra Files for a random sound event
Just an example:
"download" "1"
"file" "misc/lol2.wav" << --- The only file that will download and played
"file2" "misc/lol2.wav" <<--- Ignored Not Sent Not Played
"file3" "misc/lol3.wav" <<--- Ignored Not Sent Not Played
"file4" "misc/lol4.wav" <<--- Ignored Not Sent Not Played

It only seems to count "file" as the only file that it will send to clients

My list was much bigger "file" throw to "file100" for each event had upto file100 files but reduced the list down to trial and error the problem

But it would only send and play the first "file" of each and non of the "file#"

Ignore the www.mydomain.co.uk part its been changed for this but it is correct for the real domains
tf/sounds/www.mydomain.co.uk/the-voice
path for both client and server
and also the Fast Downloads server
www.mydomain-downloads.co.uk/game-servers/tf/sounds/www.mydomain.co.uk/the-voice
BTW www.mydomain.co.uk will NOT work in your browser so you cant get the files
Code:
"Sound Combinations"
        {
        "Suicide" 
            {
        "admin"    "0"
        "download" "1" 
                "action" "suicide"
        "param" "suicide"
                "file"    "www.mydomain.co.uk/the-voice/VOICE201.mp3" // works
                "file2"    "www.mydomain.co.uk/the-voice/VOICE202.mp3" //Not working
                "file3"    "www.mydomain.co.uk/the-voice/VOICE203.mp3"  //Not working
                "file4"    "www.mydomain.co.uk/the-voice/VOICE204.mp3"  //Not working
            }
        "Traind"
           {
        "action"    "hit_by_train"
        "param"        "hit_by_train"
        "download" "1"
        "file"    "www.mydomain.co.uk/the-voice/VOICE219.mp3" //works
        "file2"    "www.mydomain.co.uk/the-voice/VOICE222.mp3"  //Not working
        "file3"    "www.mydomain.co.uk/the-voice/VOICE231.mp3"  //Not working

           }

        }
Btw added // Working // Not Working as just a comment and remember this went upto file100 per sound event this is the trial and error configure after being reduced

Would of been fun if it all worked even with 100 files and all randomly but its stuck to the single "file" and only is sending that to clients and only playing one file

If it worked
Suicide Would of been funny if it played a different file each time with a Evil Male Voice saying
"Given Darwin Award"
"Go play Mario!!"
"Go bye bye!"

Traind
"Road Kill"
"Episode of stupidity..."
"Needs Supervision..."
"Crys for mommy!"

Last edited by hi_tech_guy_18; 09-06-2009 at 09:57.
hi_tech_guy_18 is offline
MrSaturn
SourceMod Donor
Join Date: Jan 2009
Old 09-07-2009 , 08:49   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #313

Quote:
Originally Posted by hi_tech_guy_18 View Post
Seems to not like the Extra Files for a random sound event
Just an example:
"download" "1"
"file" "misc/lol2.wav" << --- The only file that will download and played
"file2" "misc/lol2.wav" <<--- Ignored Not Sent Not Played
"file3" "misc/lol3.wav" <<--- Ignored Not Sent Not Played
"file4" "misc/lol4.wav" <<--- Ignored Not Sent Not Played

It only seems to count "file" as the only file that it will send to clients

My list was much bigger "file" throw to "file100" for each event had upto file100 files but reduced the list down to trial and error the problem

But it would only send and play the first "file" of each and non of the "file#"

Ignore the www.mydomain.co.uk part its been changed for this but it is correct for the real domains
tf/sounds/www.mydomain.co.uk/the-voice
path for both client and server
and also the Fast Downloads server
www.mydomain-downloads.co.uk/game-servers/tf/sounds/www.mydomain.co.uk/the-voice
BTW www.mydomain.co.uk will NOT work in your browser so you cant get the files
Code:
"Sound Combinations"
        {
        "Suicide" 
            {
        "admin"    "0"
        "download" "1" 
                "action" "suicide"
        "param" "suicide"
                "file"    "www.mydomain.co.uk/the-voice/VOICE201.mp3" // works
                "file2"    "www.mydomain.co.uk/the-voice/VOICE202.mp3" //Not working
                "file3"    "www.mydomain.co.uk/the-voice/VOICE203.mp3"  //Not working
                "file4"    "www.mydomain.co.uk/the-voice/VOICE204.mp3"  //Not working
            }
        "Traind"
           {
        "action"    "hit_by_train"
        "param"        "hit_by_train"
        "download" "1"
        "file"    "www.mydomain.co.uk/the-voice/VOICE219.mp3" //works
        "file2"    "www.mydomain.co.uk/the-voice/VOICE222.mp3"  //Not working
        "file3"    "www.mydomain.co.uk/the-voice/VOICE231.mp3"  //Not working

           }

        }
Btw added // Working // Not Working as just a comment and remember this went upto file100 per sound event this is the trial and error configure after being reduced

Would of been fun if it all worked even with 100 files and all randomly but its stuck to the single "file" and only is sending that to clients and only playing one file

If it worked
Suicide Would of been funny if it played a different file each time with a Evil Male Voice saying
"Given Darwin Award"
"Go play Mario!!"
"Go bye bye!"

Traind
"Road Kill"
"Episode of stupidity..."
"Needs Supervision..."
"Crys for mommy!"
1. make sure you have the files downloaded locally...
2. replace "file" with "file1"
3. add a "count" at the end of the "file#"s with the amount of files you have triggered.

here is my example file.
Attached Files
File Type: cfg saysounds.cfg (11.3 KB, 155 views)
__________________
MrSaturn is offline
hi_tech_guy_18
Junior Member
Join Date: May 2009
Old 09-10-2009 , 01:17   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #314

Thank you Saturn that little fix got them all working They all downloaded
BUT New problem the moment one Triggers & Plays = Server Crash (Without a dump)

"file" > "file1" Makes the server crash but oddly downloads the whole list
"file1" > "file" No crash but only downloads and plays one file
I'm using an updated Ver of saysounds

Useing a Windows Srcds Server
Plugins:

also using supersentrys sidewinder mod
Attached Thumbnails
Click image for larger version

Name:	plugins 11-09-2009 06-48-42 AM.jpg
Views:	526
Size:	63.6 KB
ID:	49482  

Last edited by hi_tech_guy_18; 09-11-2009 at 01:53.
hi_tech_guy_18 is offline
iVeDAkiLLa
Member
Join Date: Dec 2004
Old 09-14-2009 , 02:30   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #315

Hi,

when du you update your Plugin that it will be saved wenn a Player type "!sounds" in Chat? Every Map type "!sounds" in Chat to disable it is nerved...
__________________
Visit us @ www.kodclan.org

95.156.232.40:27015 [KoD| .:: ChillOutBude I ::. CS:Source |HLStatsX|FastDL|

95.156.232.41:27015 [KoD| .:: ChillOutBude II ::. DoD:Source |HLStatsX|FastDL|Funmods|
iVeDAkiLLa is offline
Send a message via ICQ to iVeDAkiLLa
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 09-14-2009 , 18:25   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #316

Clients say sound settings will already be saved.
gH0sTy is offline
hi_tech_guy_18
Junior Member
Join Date: May 2009
Old 09-15-2009 , 03:24   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #317

Waits for 3.2.0 ^^

Last edited by hi_tech_guy_18; 09-15-2009 at 03:41.
hi_tech_guy_18 is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 09-16-2009 , 14:51   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #318

Quote:
Originally Posted by hi_tech_guy_18 View Post
Ignore the www.mydomain.co.uk part its been changed for this but it is correct for the real domains
tf/sounds/www.mydomain.co.uk/the-voice
path for both client and server
and also the Fast Downloads server
www.mydomain-downloads.co.uk/game-servers/tf/sounds/www.mydomain.co.uk/the-voice
BTW www.mydomain.co.uk will NOT work in your browser so you cant get
Why do you have such long path names for your files, with a URL type name? That is completely unnecessary.
naris is offline
hi_tech_guy_18
Junior Member
Join Date: May 2009
Old 09-16-2009 , 17:37   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #319

Quote:
Why do you have such long path names for your files, with a URL type name? That is completely unnecessary.
I chosen this way due it avoids pure Client / Server issues with same File names and file sizes or hashes being different from OTHER servers and keeps my servers files away from there's

-> Also made it easy for them to find my server files for Sounds they can use for Windows Sounds / SMS / Ringtones - I get asked a lot (Most of the time it never occurs to them that they have the files already and norm get a happy face when I tell them they already have the file so saving them from finding/downloading it a 2nd time) Just tell them the path tf/sounds/www.mydomain.co.uk and there happy to browse though

I made it Easy for players to remove my ALL server files with a simple delete of 1 folder www.mydoamin.co.uk rather than looking throw 1 folder with 500+ sound files with no clue what servers they all came from (it works 2 ways Keep all my servers file but delete the 500+ you don't know where they came form)

It keeps my CLEAN Sound files away form Infected Sounds
I notice a few servers are sending out Infected Scripted MP3s and my AV picked up on them when I went though the sounds folder but had no clue what servers are sending them out (BAD SERVER ADMINS or BAD SOUNDS PACK)

At lest with my server Clean Sound files I'm more than happy to Advertise the website the server belongs to using a folder with all the sounds for my server / and avoids my server triggering some same name file under the sounds path that was infected and sent by another previous server the player connected to

its also another way of advertising the website

No Performance side effects from long paths Game or Server or Web-server

Apart form being long long path names for typing into a cfg for each file is not a problem (Knowing PHP or Dos/smd commands or using Macros copy & Paste you can get them to wire them self's CFG)

____________________________
BUT Remember
I'm having 2 Issue its not the path due
I tried both Short Paths
tf/Sound/TheVoice
and long Paths:
tf/Sound/www.mydomain.co.uk/TheVoice
Makes no diffrence Even Tried Drffrent File Formats WAV/MP3
I get the same problem puzzle

If set
"File"
"File2"
"Count" "2"
- > Only the "file" Will download and plays without crashing it ignores "file#"

If set
"File1"
"File2"
"Count" "2"
The files All Download BUT the Moment there triggered to play is a Crash Its like it cant randomise the list

If it was the long path then it should of crashed the server under the "file" setup but it isn't its playing it fine

Last edited by hi_tech_guy_18; 09-16-2009 at 18:33.
hi_tech_guy_18 is offline
naris
AlliedModders Donor
Join Date: Dec 2006
Old 09-17-2009 , 01:00   Re: Say Sounds (including Hybrid Edition) (3.1.9)
Reply With Quote #320

Quote:
Originally Posted by hi_tech_guy_18 View Post
tf/sounds/www.mydomain.co.uk
Well, yeah, a separate directory is a good thing, I was only wondering why the name was so long. For www.jigglysfunhouse.net we put our sound files in a folder named tf/sounds/jiggly and for our SourceCraft mod it is tf/sounds/sc -- makes it easier to maintain the sound files and configuration files.

Quote:
Originally Posted by hi_tech_guy_18 View Post
I notice a few servers are sending out Infected Scripted MP3s and my AV picked up on them when I went though the sounds folder but had no clue what servers are sending them out (BAD SERVER ADMINS or BAD SOUNDS PACK)
mp3 and wav files can't have scripts in them unless they aren't actually .mp3 or .wav files. Either those or false positives or someone is getting really dubiously sneaky. If they can be played by windows media payer or some other player (make sure to open them by using File|Open from the media player, DON'T double click them or try to open them from windows exploder) then they can't be viruses. This is safe to do since, if it's really a virus, the media player will read the file as if it is what it claims it is and not just blindly try to execute it.

Quote:
Originally Posted by hi_tech_guy_18 View Post
At lest with my server Clean Sound files I'm more than happy to Advertise the website the server belongs to using a folder with all the sounds for my server / and avoids my server triggering some same name file under the sounds path that was infected and sent by another previous server the player connected to
It is not possible for any source server to trigger any kind of "virus" by "triggering" a sound file, even if it does happen to contain a virus. The game would read the file and attempt to play it, it will either, most likely, be an invalid sound file and won't play or, at most, if it has the correct headers (which also make it impossible for anything to ever execute the "virus"), will "play" the virus by sending it's bits to the sound card which will probably wind up sounding like noise, if anything. There is absolutely NO CHANCE any "code" in the sound file will get executed, even if there is some.

Last edited by naris; 09-17-2009 at 01:10.
naris 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 19:17.


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