Author Topic: use a variable to set directory path  (Read 2726 times)

rpoteat

  • Guest
use a variable to set directory path
« on: May 01, 2017, 12:07:43 AM »
I've got a bit of a difficult question.

I've been collecting voicepacks for awhile now, but recently i've wanted to better arrange my voiceattack\sounds folder. as an example, i have several packs that should install as below:

c:\program files(x86)\voiceattack\sounds\hcspack
c:\program files(x86)\voiceattack\sounds\hcspack-alix
c:\program files(x86)\voiceattack\sounds\hcspack-Eden

now these packs come with pre-set profiles setup to use this folder structure. What I want to do is have them installed into the following structure:

c:\program files(x86)\voiceattack\sounds\hcs packs\hcspack
c:\program files(x86)\voiceattack\sounds\hcs packs\hcspack-alix
c:\program files(x86)\voiceattack\sounds\hcs packs\hcspack-Eden

While there's no problem installing the packs, the profiles are now unusable, as they all look for the "default" location. Is there a way to use a token or variable within to tell the profile to use a different folder location? This way, i just have to add 1 line of code to each profile instead of having to edit the entire profile.

I know that this can be set within the options, however i don't think this will solve the problem, as i have several sub folders within the sounds folder itself (hcs, non-hcs, game music packs, etc.), and I want to try to keep this if at all possible.

any and all help is appreciated!

Thanks in advance.

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4778
  • RTFM
Re: use a variable to set directory path
« Reply #1 on: May 01, 2017, 08:51:43 AM »
The only way to edit(non-pause/keypress) actions in bulk is to export the profile, and do a find and replace in a a text editor.

You'll want to search for the string "{VA_SOUNDS}\" and replace it with "{VA_SOUNDS}\hcs packs\".