[SOLVED] I need help replacing sounds in Portal

Avatar
lucki_vibrato
2 Posts
Posted Aug 16, 2014
Hello, I'm new here and I'm with a pt-br Portal fandub project, since Portal doesn't have full portuguese language support.
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?

Advertisement
Registered users don't see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Aug 16, 2014
Replied 8 hours later
You'll need to record the voice lines with the same filenames as the sounds they're replacing, then pack the new sound/vo folder into a new VPK and rebuild the audio cache. Unfortunately you won't be able to hear them in the game until you do this, so it'll probably be easiest to record all the sound first, then do the packing. (It used to be a lot easier to do this, but Steampipe broke the other method.)
Avatar
CamBen
973 Posts
Posted Aug 17, 2014
Replied 3 hours later

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?

Avatar
FelixGriffin
2,680 Posts
Posted Aug 17, 2014
Replied 7 hours later
Just putting files into portal/sound/vo directly, since things outside a GCF had higher priority than things inside one.
Avatar
reepblue
894 Posts
Posted Aug 17, 2014
Replied 2 hours later

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
      }

https://www.youtube.com/watch?v=UJCwkBpqNLk

Advertisement
Registered users don't see ads! Register now!
Avatar
lucki_vibrato
2 Posts
Posted Aug 17, 2014
Replied 4 hours later

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.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
      }

```

https://www.youtube.com/watch?v=UJCwkBpqNLk

Oh, thank you, it worked perfectly!