SRCDS Steam group


[Quick question] CRC check on updated custom file?
#1
Question 
Hello everybody, I need some help. Cool

I am using the "SourceMod - Quake Sounds" plugin for my TF2 server.

Let's say I got a custom sound file, as:

---------------------
custom_sound_01.mp3
---------------------

So when new player joins my server for the first time, that custom sound file will be downloaded to his/her local TF2 folder. OK with that part.

My question is:

1)
If later on I modify that custom sound file, or replace it with a totally different one, yet still using the same filename. Then when my player returns to my server, will he/she be automatically download the updated version of the file?

I remember when I was messing around with the "pure_whitelist.txt", I saw some option for checking the CRC of a file, but at the moment, I have no access to the it, so I can't check it out myself...
---------------------

Anyone has experience with that, please help me out. I really appreciate it. Thanks! Big Grin
Reply
#2
I did a little testing myself, but still no luck.

Here is what I tried:

1)
In my "server.cfg", my "sv_pure" and "sv_pure_kick_clients" were as my original:

------------------------
sv_pure 1
sv_pure_kick_clients 1

------------------------

The only change was in the "pure_server_whitelist.txt", I added the "check_crc".

From:
------------------------
sound/admin_plugin/... allow_from_disk
------------------------

To:
------------------------
sound/admin_plugin/... allow_from_disk+check_crc
------------------------

*(The CRC check did add a significant on joining the server...)

Tried to join the server, and no luck, TF2 didn't download the my updated sound file, and I got kicked for not having a consistent file.

2)
Then, in "server.cfg", I changed:

------------------------
sv_pure 1
sv_pure_kick_clients 0 // from 1

------------------------

No luck, it played the old sound file, instead of downloading the updated on. "sv_pure" didn't care about the CRC, and only check the filename?

I will try some more later.
Reply
#3
The sounds will never "update"
You need to give them new names, the engine does not overwrite files to match files from the server ever.
Join the Source Dedicated Server Support Group on Steam Community!
Source Dedicated Server (SRCDS)
Free to join, Live support! (When available)

http://forums.srcds.com/viewtopic/5114
Reply
#4
Drocona,

Thank you for your reply.

I read a bit more on the wiki:

----------------------------------------
http://developer.valvesoftware.com/wiki/Pure_Servers
----------------------------------------

and it really doesn't seem like there is a way to update the custom sound file, to the correct version...

Just my opinion, I find it kind of odd, especially with the options as "sv_pure" and "check_crc", I expected that updating a file would be possible.

Using my case as example, I originally have an audio clip for welcoming the players, but it didn't play well, so I edited the clip a bit to make it work. Now, since Steam won't update the same file, I have to give the modified clip a new name, and use it as a new file, that makes the original one an orphan file on my player's HDD. Consider many other SRCDS admins are dealing with the same issue, that is just not a good scene...

A week ago, when I first set up the Quake Sounds plugin, I was worried about an issue like this, so I did a bit precaution, and added the abbreviation of my server, to the sound files, as a prefix. Something like this:

--------------------------------------
crazy_sound_01.mp3
--------------------------------------

so if other servers got their "sound_01.mp3" screwed up, at least that wouldn't affect my server...
__________________________________________________________

In regard to this issue, anyone here got tips to share on how to manage the files better?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)