[SOLVED] I need help replacing sounds in Portal
It's basically just a voice (GLaDOS, Turrets, Cores and Party Escort Bits) and music (Still Alive) replacement.
So...
I tried folowing a bunch of tutorials of how to replace the sounds, but no one worked.
Could you, please, help me to find out what's wrong? 
FelixGriffin wrote:
(It used to be a lot easier to do this, but Steampipe broke the other method.)
What was the other method? adding a new folder directory into the gameinfo.txt?
FelixGriffin wrote:
Just putting files into portal/sound/vo directly, since things outside a GCF had higher priority than things inside one.
SearchPaths
{
// First, mount all user customizations. This will search for VPKs and subfolders
// and mount them in alphabetical order. The easiest way to distribute a mod is to
// pack up the custom content into a VPK. To "install" a mod, just drop it in this
// folder.
//
// Note that this folder is scanned only when the game is booted.
game+mod |gameinfo_path|custom/*
// Now search loose files. We'll set the directory containing the gameinfo.txt file
// as the first "mod" search path (after any user customizations). This is also the one
// that's used when writing to the "mod" path.
game+mod+mod_write+default_write_path |gameinfo_path|.
gamebin |gameinfo_path|bin
// We search VPK files before ordinary folders, because most files will be found in
// VPK and we can avoid making thousands of file system calls to attempt to open files
// in folders where they don't exist. (Searching a VPK is much faster than making an operating
// system call.)
game_lv portal/portal_lv.vpk
game+mod portal/portal_sound_vo_english.vpk
game+mod portal/portal_pak.vpk
game |all_source_engine_paths|hl2/hl2_textures.vpk
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
game |all_source_engine_paths|hl2/hl2_misc.vpk
platform |all_source_engine_paths|platform/platform_misc.vpk
// Now search loose files. We'll set the directory containing the gameinfo.txt file
// as the first "mod" search path (after any user customizations). This is also the one
// that's used when writing to the "mod" path.
mod+mod_write+default_write_path |gameinfo_path|.
// Add the Portal directory as a game search path. This is also where where writes
// to the "game" path go.
game+game_write portal
// Where the game's binaries are
gamebin |gameinfo_path|/bin
// Last, mount in shared HL2 loose files
game |all_source_engine_paths|portal
game |all_source_engine_paths|hl2
platform |all_source_engine_paths|platform
}
reepblue wrote:
FelixGriffin wrote:Just putting files into portal/sound/vo directly, since things outside a GCF had higher priority than things inside one.
```
SearchPaths
{
// First, mount all user customizations. This will search for VPKs and subfolders
// and mount them in alphabetical order. The easiest way to distribute a mod is to
// pack up the custom content into a VPK. To "install" a mod, just drop it in this
// folder.
//// Note that this folder is scanned only when the game is booted.
game+mod |gameinfo_path|custom/*// Now search loose files. We'll set the directory containing the gameinfo.txt file
// as the first "mod" search path (after any user customizations). This is also the one
// that's used when writing to the "mod" path.
game+mod+mod_write+default_write_path |gameinfo_path|.
gamebin |gameinfo_path|bin// We search VPK files before ordinary folders, because most files will be found in
// VPK and we can avoid making thousands of file system calls to attempt to open files
// in folders where they don't exist. (Searching a VPK is much faster than making an operating
// system call.)game_lv portal/portal_lv.vpk
game+mod portal/portal_sound_vo_english.vpk
game+mod portal/portal_pak.vpkgame |all_source_engine_paths|hl2/hl2_textures.vpk
game |all_source_engine_paths|hl2/hl2_sound_vo_english.vpk
game |all_source_engine_paths|hl2/hl2_sound_misc.vpk
game |all_source_engine_paths|hl2/hl2_misc.vpkplatform |all_source_engine_paths|platform/platform_misc.vpk
// Now search loose files. We'll set the directory containing the gameinfo.txt file
// as the first "mod" search path (after any user customizations). This is also the one
// that's used when writing to the "mod" path.
mod+mod_write+default_write_path |gameinfo_path|.// Add the Portal directory as a game search path. This is also where where writes
// to the "game" path go.
game+game_write portal// Where the game's binaries are
gamebin |gameinfo_path|/bin// Last, mount in shared HL2 loose files
game |all_source_engine_paths|portal
game |all_source_engine_paths|hl2
platform |all_source_engine_paths|platform
}```
Oh, thank you, it worked perfectly!