Raised This Month: $ Target: $400
 0% 

Janking and missing files


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Recoil1984
Junior Member
Join Date: Dec 2018
Old 12-26-2018 , 18:20   Janking and missing files
Reply With Quote #1

Hi guys, firstly I would like to thank everyone who has ever been involved in any modding for CS:S, you're all legends!!

Obviously over the years servers have changed, games have become less supported and in turn over time so have mods

I have recently delved back into running a CS:S server, and opted for SM as per usual, it's been 2-3 years tho and a few things seem to have changed.

Steam pipe being the main one, I think I have my paths right, maps download, and work fine, but custom sounds don't seem to download...

I have my fast FTP downloads in a folder on the path - sv_downloadurl "http://*****/downloads/cstrike" in this directory are the usual mirrored folders, maps, materials, resource, sound, then the new steam pipe directory structure, "http://*****/downloads/cstrike/download" with the same folders below it!

I removed the upper folders the other day and map downloads stopped working which suggests to me it wasn't following the steam pipe model, so I replaced them and I am currently running both directories with everything in, maps work great, but sounds not so great!

All files downloaded except custom sounds, and they re-download on each map load, when checking my downloads on my client end, no files are visible from the download, I think I have the paths right, but I'm not 100% sure

I did read somewhere about download tables.... any ideas?

Additionally, I have the custom sounds plugin installed, and when trying to play sounds I get this message;

MP3 initialized with no sound cache, this may cause janking. [ sound\admin_plugin\******.mp3 ]
Failed to create decoder for MP3 [ sound\admin_plugin\******.mp3 ]
MP3 initialized with no sound cache, this may cause janking. [ sound\admin_plugin\******.mp3 ]
Failed to create decoder for MP3 [ sound\admin_plugin\*******.mp3 ]
*** Invalid sample rate (0) for sound 'sound\admin_plugin\******.mp3

I can only find one thread on this issue, but it wasn't solved, has anyone else had this issue and found out how to fix it?

Please help, I want to recreate my server as they used to be... without custom sounds it feels pointless

I thank you all in advance for any help you can give

Recoil

Last edited by Recoil1984; 12-26-2018 at 18:21.
Recoil1984 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-27-2018 , 01:42   Re: Janking and missing files
Reply With Quote #2

Well hi.

This is my opinion that, don't use "custom" and "download" folders in server.
Those are mostly like for clients only.



So you install custom files in server old fashion way:
...cstrike/materials/
...cstrike/models/
...cstrike/sound/


And you mirror those files same way in your "upload host"
sv_downloadurl "http://***/cstrike"
...cstrike/materials/
...cstrike/models/
...cstrike/sound/





For upload sound files and also precache, you need find right SM plugin for this.
https://www.sourcemod.net/plugins.ph...tion=&search=1



Have you change sv_pure value ??
- Join your server and type in your own game console: sv_pure
and show console output.






----



Known problems why player can't download files:

- Downloading files is blocked from your sv_downloadurl "url" location.
Try check using normal web browser, can you download file using that url address.

- client side setting, is it right
Code:
"cl_downloadfilter" = "all"
 archive
 - Determines which files can be downloaded from the server (all, none, nosounds, mapsonly)

- Server running sv_pure 1 and 2 prevent players to use custom files.
You can override in sv_pure 1 mode with ...cfg/pure_server_whitelist.txt file
console output when check sv_pure
__________________
Do not Private Message @me
Bacardi is offline
Recoil1984
Junior Member
Join Date: Dec 2018
Old 12-27-2018 , 10:33   Re: Janking and missing files
Reply With Quote #3

Hi Bacardi, thanks for taking the time to write a reply

So download URL was fine, and you are right, ignore the Steam Pipe layout, went with the tried and tested standard file path structure, downloads work now, and quake sounds + lastman standing work, custom sounds don't yet though, I was using Admin Sounds by dalto, I've changed to Say sounds by gH0sTy and I am currently editing the file for the custom sounds I have, I will update when finished to let you know if it works ok, It doe's have settings for precaching files so hopefully this will fix the issue!

As for sv_pure, I have it set to 1, and had already whitelisted everything I have, so shouldn't be any issues from that.

Thanks again, and I will let you know how I get on.
Recoil1984 is offline
Recoil1984
Junior Member
Join Date: Dec 2018
Old 12-27-2018 , 11:43   Re: Janking and missing files
Reply With Quote #4

Hi again, so the main problem I think is the lack of pre-caching from the original plugin I was using, the Say sounds hybrid works, but still has issues with MP3's, I converted one to .wav and this seemed to fix the issue, the Say sounds addon comes with the Sound Info Library EXTENSION but this doesn't seem to work, probably out of date now, as one post explains the GSP would need to update the service pack depending on the version of windows in use, not something I'm willing to chase, converting files to .wav isn't hard work and as most people have fast internet nowadays, the larger files won't matter as much anymore

Still getting a few files downloading over and over again, but hoping this will get sorted as I add more, will come back if not.

Thanks again

Recoil
Recoil1984 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-27-2018 , 12:35   Re: Janking and missing files
Reply With Quote #5

I would like to see your sv_pure settings.
But from console output:
- Join your server, open your own game console and type sv_pure
- Post console output text


Game not support all sound formats, you should check it.
#392



There is old client side sv_pure bug, this make player download same files over and over again on every connection.
- To avoid this happen, in server, place sv_pure 1 command in ...cfg/autoexec.cfg

Problem in this command is, when use sv_pure to change mode (0, 1, etc. etc.), it require map change to take effect.
console text

- from autoexec.cfg it will work in first map when server launch.
- from server.cfg it will work too late, first map is still in sv_pure 0 mode -> next map turns in sv_pure 1

In situation when sv_pure mode work late:
Players who had connected in first map while it still in sv_pure 0 mode, starting have bug when they -> go in next map which turn in sv_pure 1.

Player also get sv_pure bug, when he visit in different servers and servers have different sv_pure settings.
- The truth is, player shoud restart own game before joinin into one server. :S


----

About sound plugins... I'm going to night shift. Can't help you for now
Maybe tomorrow
__________________
Do not Private Message @me
Bacardi is offline
Recoil1984
Junior Member
Join Date: Dec 2018
Old 12-27-2018 , 13:32   Re: Janking and missing files
Reply With Quote #6

Ok, the server command line should take care of that surely?

-console -game cstrike -condebug -nohltv +tv_port 27959 +maxplayers 32 +ip 194.147.120.43 -port 27954 +exec "server.cfg" +sv_pure 1 +map "cs_office" +fps_max 66

But to be sure, my current sv_pure 1 white list settings are;

Quote:
] sv_pure
--------------------------------------------------------
sv_pure: Only allow client to use certain files.

-1 - Do not apply any rules or restrict which files the client may load.
0 - Apply rules in cfg/pure_server_minimal.txt only.
1 - Apply rules in cfg/pure_server_full.txt and then cfg/pure_server_whitelist.txt.
2 - Apply rules in cfg/pure_server_full.txt.

See cfg/pure_server_whitelist_example.txt for more details.


The server is using sv_pure 1. (Custom pure server rules.)
models\... trusted_source
particles\... trusted_source
scripts\game_sounds.txt trusted_source
scripts\game_sounds_manifest.txt trusted_source
scripts\game_sounds_player.txt trusted_source
scripts\game_sounds_vo.txt trusted_source
scripts\game_sounds_vo_handmade.txt trusted_source
scripts\game_sounds_weapons.txt trusted_source
scripts\soundmixers.txt trusted_source
models\parachute\... any
models\player\... any
models\weapons\... trusted_source
materials\... any
materials\models\parachute\... any
materials\models\player\... any
materials\models\weapons\... trusted_source
resource\... any
sound\quake\... any
sound\*.* any
sound\admin_plugin\... any
sound\... any
sound\admin_plugin\1069er.mp3 any
sound\admin_plugin\4_show.mp3 any
sound\admin_plugin\angel.mp3 any
any any
sound\ui\hitsound.wav any
--------------------------------------------------------
the specific files were a test, the server has stopped downloading sounds since I made copes of all sounds into .wav files... rechecked and no downloads are happening on map change either now, seems to be sorted

I do need to tidy up my whitelist though, any pointers, I added extras as downloads were not working, but as they now work I can remove some of the extras I have added in.

EDIT: sorry forgot to say, all sounds are from previous servers and worked fine, all are either 22k or 44100hz.

Recoil

Last edited by Recoil1984; 12-27-2018 at 13:33.
Recoil1984 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-28-2018 , 13:00   Re: Janking and missing files
Reply With Quote #7

You shouldn't create multiple paths with in same location and set them also in same condition.
I remember this could cause crash or bring bug.
Code:
The server is using sv_pure 1. (Custom pure server rules.)
models\... trusted_source
particles\... trusted_source
scripts\game_sounds.txt trusted_source
scripts\game_sounds_manifest.txt trusted_source
scripts\game_sounds_player.txt trusted_source
scripts\game_sounds_vo.txt trusted_source
scripts\game_sounds_vo_handmade.txt trusted_source
scripts\game_sounds_weapons.txt trusted_source
scripts\soundmixers.txt trusted_source
models\parachute\... any
models\player\... any
models\weapons\... trusted_source
materials\... any
materials\models\parachute\... any
materials\models\player\... any
materials\models\weapons\... trusted_source
resource\... any
sound\quake\... any
sound\*.* any
sound\admin_plugin\... any
sound\... any
sound\admin_plugin\1069er.mp3 any
sound\admin_plugin\4_show.mp3 any
sound\admin_plugin\angel.mp3 any
any any
sound\ui\hitsound.wav any
--------------------------------------------------------
And I'm not sure what you are doing with sv_pure 1, because you just let players to use custom models and textures which again they can use "material cheats".

Maybe better if you run your server in sv_pure 0 mode.
Bacardi is offline
Recoil1984
Junior Member
Join Date: Dec 2018
Old 12-28-2018 , 13:24   Re: Janking and missing files
Reply With Quote #8

Good point mate, as I said though this was edited to get custom downloads working, I will tidy it up now, and thank you for pointing that out

Server is running smooth currently, all sounds work etc, so happy days, converting all my .mp3's to .wav fixed the janking issue, although i do still use a few .mp3 files, most caused issues.

Recoil
Recoil1984 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 12-28-2018 , 13:26   Re: Janking and missing files
Reply With Quote #9

good
__________________
Do not Private Message @me
Bacardi 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 22:22.


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