Custom Sounds in map - how to upload them in BSP? [SOLVED]
Quote from beecake on May 14, 2014, 3:19 pmHello fellow members.
I'm in the situation where I have finished my custom story in Hammer.
I want to create a "Beta" for my friend, containing only 1 map.
The problem is that we can't make the custom sound files to work.I read about Pakrat and tried using it. This is what I did.
After compiling my map I opened Pakrat.
In Pakrat I opened the mymap.bsp
Then I clicked "Add".
Then I found the custom sound files and added them.
I also added the mymap.txt which contains all the necessary lines for the sound files to work.
Then I click "Save BSP".
Then I send the BSP to my friend.I install the map as everyone does but when he plays it everything is there, but the sound files.
How do I implement them in my BSP file?It has to be said that I can play all the files on my computer, because they're in the right directories and so and so...
It's only when I pack it into a BSP it doesn't work.
Hello fellow members.
I'm in the situation where I have finished my custom story in Hammer.
I want to create a "Beta" for my friend, containing only 1 map.
The problem is that we can't make the custom sound files to work.
I read about Pakrat and tried using it. This is what I did.
After compiling my map I opened Pakrat.
In Pakrat I opened the mymap.bsp
Then I clicked "Add".
Then I found the custom sound files and added them.
I also added the mymap.txt which contains all the necessary lines for the sound files to work.
Then I click "Save BSP".
Then I send the BSP to my friend.
I install the map as everyone does but when he plays it everything is there, but the sound files.
How do I implement them in my BSP file?
It has to be said that I can play all the files on my computer, because they're in the right directories and so and so...
It's only when I pack it into a BSP it doesn't work.
Quote from portal2companioncube on May 14, 2014, 10:09 pmI'm working on a map with custom sounds too. I also need to know this!
I'm working on a map with custom sounds too. I also need to know this!
Quote from josepezdj on May 15, 2014, 2:27 am@Beecake: you didn't mention anything related to fixing up the path to the files when you listed the things you did. Maybe that is your problem. What pakrat does is just fix up the paths to your custom files so that when your map searches for them in game, it searches inside the .BSP instead of the original locations your custom files are in.
You can set this to be done automatically by going to File > Preferences. You should have the "Path fixup on add file" on one of these options: "Never", "Ask", "Always". I set it to "Ask", because I want to make sure that it does its work.
Check out this.
Also, are you using soundscapes? Have you named your script file correctly relative to your map? something like soundscapes_beecake_new_map.TXT
@Beecake: you didn't mention anything related to fixing up the path to the files when you listed the things you did. Maybe that is your problem. What pakrat does is just fix up the paths to your custom files so that when your map searches for them in game, it searches inside the .BSP instead of the original locations your custom files are in.
You can set this to be done automatically by going to File > Preferences. You should have the "Path fixup on add file" on one of these options: "Never", "Ask", "Always". I set it to "Ask", because I want to make sure that it does its work.
Check out this.
Also, are you using soundscapes? Have you named your script file correctly relative to your map? something like soundscapes_beecake_new_map.TXT
Quote from beecake on May 15, 2014, 3:07 amjosepezdj wrote:@Beecake: you didn't mention anything related to fixing up the path to the files when you listed the things you did. Maybe that is your problem. What pakrat does is just fix up the paths to your custom files so that when your map searches for them in game, it searches inside the .BSP instead of the original locations your custom files are in.You can set this to be done automatically by going to File > Preferences. You should have the "Path fixup on add file" on one of these options: "Never", "Ask", "Always". I set it to "Ask", because I want to make sure that it does its work.
Check out this.
Also, are you using soundscapes? Have you named your script file correctly relative to your map? something like soundscapes_beecake_new_map.TXT
I have no script files, because I am using no soundscapes.
Have no experience in them yet...
Everything I'm using is ordinary ambient_genericsI'll take a look at your idea and report back!
You can set this to be done automatically by going to File > Preferences. You should have the "Path fixup on add file" on one of these options: "Never", "Ask", "Always". I set it to "Ask", because I want to make sure that it does its work.
Check out this.
Also, are you using soundscapes? Have you named your script file correctly relative to your map? something like soundscapes_beecake_new_map.TXT
I have no script files, because I am using no soundscapes.
Have no experience in them yet...
Everything I'm using is ordinary ambient_generics
I'll take a look at your idea and report back!
Quote from josepezdj on May 15, 2014, 3:58 ambeecake wrote:I have no script files, because I am using no soundscapes.
Have no experience in them yet...Hmmm.... then what is that "mymap.txt" file that you mentioned you needed for your sound files to work?
Have no experience in them yet...
Hmmm.... then what is that "mymap.txt" file that you mentioned you needed for your sound files to work?
Quote from beecake on May 15, 2014, 4:10 amjosepezdj wrote:beecake wrote:I have no script files, because I am using no soundscapes.
Have no experience in them yet...Hmmm.... then what is that "mymap.txt" file that you mentioned you needed for your sound files to work?
Well the sounds I have are custom (Placed in the /temp folder), and I have to write the path of the sounds to make them work. That's what I read about, at least, and it's working, so things should be good.
Have no experience in them yet...
Hmmm.... then what is that "mymap.txt" file that you mentioned you needed for your sound files to work?
Well the sounds I have are custom (Placed in the /temp folder), and I have to write the path of the sounds to make them work. That's what I read about, at least, and it's working, so things should be good.
Quote from josepezdj on May 15, 2014, 4:22 amI think it's way simpler. Just put your sounds under your /sound folder or /sound/music (and create your own custom folder there too if you want) and you're done. They should be working in game without the need of any other "path file".
I think it's way simpler. Just put your sounds under your /sound folder or /sound/music (and create your own custom folder there too if you want) and you're done. They should be working in game without the need of any other "path file".
Quote from beecake on May 15, 2014, 5:00 amjosepezdj wrote:I think it's way simpler. Just put your sounds under your /sound folder or /sound/music (and create your own custom folder there too if you want) and you're done. They should be working in game without the need of any other "path file".Oh well, it's just a text file. I can always delete it.
I'll be checking if it works when I delete it today. Thanks.
Oh well, it's just a text file. I can always delete it.
I'll be checking if it works when I delete it today. Thanks.
Quote from beecake on May 16, 2014, 7:49 amSorry for doubleposting
This is how it looks in Pakrat right now
Does it look ok?
I checked the preferences and it seems like it is already on "Ask" to begin with.
Sorry for doubleposting
This is how it looks in Pakrat right now
Does it look ok?
I checked the preferences and it seems like it is already on "Ask" to begin with.
Quote from josepezdj on May 16, 2014, 7:56 amWell, that looks good.... as long as you DID fix up the paths, it should be working.
One tip: in order to have a clearer view into pakrat you can choose to see the packed elements list "As a Tree" by going to View menu
Well, that looks good.... as long as you DID fix up the paths, it should be working.
One tip: in order to have a clearer view into pakrat you can choose to see the packed elements list "As a Tree" by going to View menu