Hmm i cant get it to work...
Pre done things to cleanup:
Deleted _master_cache on Client, removed custom downloaded soundfiles and build new _master_cache with "snd_rebuildaudiocache"
Download fresh Server trough hldsupdatetool and installed Metamod/Sourcemod
Server running fine, admin status granted!
Server settings:
sv_pure 0, sv_consistency 0
1. Copy sm_downloader.smx to sourcemod/plugins/
2. Copy downloads.ini to sourcemod/configs/
downloads.ini
Code:
//Don't modify or remove the Comment Lines ( // )
//Files (Download Only No Precache)
//Decal Files (Download and Precache)
//Sound Files (Download and Precache)
sound/misc/noob6vs6
//Model Files (Download and Precache)
So the Folder get downloaded with 3 .wav files in it.
3. Copy content to download on webspace and edit server.cfg
sv_downloadurl shows to the correct address!
(Same content on Server folders)
4. Connect to Gameserver (Client has none of these files installed yet)
Blackscreen for like 10-15 secs (Thats the mooment where the download is in progress)
Ingame!
5. Alt+Tab to check if files get downloaded, they do!
6. Use ingame command
"sm_play @me misc/noob6vs6/cu.wav"
Message shows me "Sound played for ...."
And i hear nothing :/
Tested this again with .mp3 files because i read somewhere that mp3 files dont need to be cached, still the same, no sound played!
Also after exit game to dekstop, load game, connect again to server, i can't hear any of the sounds downloaded...
[EDIT]
When i do "snd_rebuildaudiocache" i hear the sounds after new connect.
[/EDIT]
Any ideas?
Cheers,
OtterNas3
[EDIT2]
Ideas:
a) Maybe there is some way of import just new files in the precaching file, with another command for rebuild?
b) Server could send the "snd_rebuildaudiocache" command to connecting player who download a new file for first time.
notes:
That would just annoy the Players a bit.
First black screen on download, then i dunno what it shows when doing the rebuild and it will take too long to do the rebuild...
c) echo code into the "maps/soundcache/_master.cache" file?
notes:
Maybe that way the client just has to reconnect or wait for next map?
I think the file get invalid due to checks?
Write a own cache file like "maps/soundcache/_CUSTOMTITLE.cache" and and use that in game somehow?
d) Some way of overwriting files on download, so you would be able to overwrite that useless "sound/commentary/*" files with custom stuff?
e) What about these "scripts/game_sound_*.txt" files?
notes:
Are they just to configure what is when how played?
That's it for now ^^
[/EDIT2]