Raised This Month: $32 Target: $400
 8% 

Solved [L4D2] custom game_sounds scripts


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
philipjfry
Junior Member
Join Date: Sep 2019
Location: Somewhere in europe
Old 12-28-2019 , 10:05   [L4D2] custom game_sounds scripts
Reply With Quote #1

hello, is it possible to make the game read some modified game_sounds.txt scripts on a server without editing/messing names of the ones existing in pak01_dir's etc?

Last edited by philipjfry; 12-29-2019 at 14:15.
philipjfry is offline
Lux
Veteran Member
Join Date: Jan 2015
Location: Cat
Old 12-28-2019 , 23:00   Re: [L4D2] custom game_sounds scripts
Reply With Quote #2

Yes editing gameinfo.txt and loading a vpk as a valve content update besure to load whatever you want last.

Here is example (example name of content "update is modified_game_sounds") for you below you have to make sure you follow the folder structure as the other valve content updates.
Code:
		SearchPaths
		{
			Game				modified_game_sounds
			Game				update
			Game				left4dead2_dlc3
			Game				left4dead2_dlc2
			Game				left4dead2_dlc1
			Game				|gameinfo_path|.
			Game				hl2
		}
In whatever you named your content update folder besure to name your vpk "pak01_dir" and have proper folder stucture inside the vpk just like other vpks.

folder structure
Code:
../l4d2_server/left4dead2
../l4d2_server/left4dead2_dlc1
../l4d2_server/left4dead2_dlc2
../l4d2_server/left4dead2_dlc3
../l4d2_server/update

and last your content update (example)
../l4d2_server/modified_game_sounds
__________________
Connect
My Plugins: KlickME
[My GitHub]

Commission me for L4D
Lux is offline
Balimbanana
Member
Join Date: Jan 2017
Old 12-29-2019 , 01:10   Re: [L4D2] custom game_sounds scripts
Reply With Quote #3

You should also be able to extract game_sounds_manifest.txt from pak01_dir.vpk in scripts to:
Left 4 Dead 2 Dedicated Server\left4dead2\scripts\game_sound_manifest .txt
Then add on at some point:
Code:
"precache_file"  	"scripts/game_sounds_modified.txt"
Then make your game_sounds_modified.txt and place it in the same directory.
The only issue with this method is for sv_pure 1 will most likely skip this manifest. Another method that should work with sv_pure 1 would be to create a VPK of just those two files in:
Code:
scripts/game_sounds_manifest.txt
scripts/game_sounds_modified.txt
and place that in Left 4 Dead 2 Dedicated Server\left4dead2\addons\myvpk.vpk and restart the server.
Balimbanana is offline
philipjfry
Junior Member
Join Date: Sep 2019
Location: Somewhere in europe
Old 12-29-2019 , 14:14   Re: [L4D2] custom game_sounds scripts
Reply With Quote #4

Thanks, the custom folder vpk method worked alright.
philipjfry 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 18:02.


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