Please or Register to create posts and topics.

Importing Custom Sounds

PreviousPage 2 of 3Next

The reason could be: The sounds are loaded with the map, like they are cached with the map itself.
But I never tested this.

greykarel wrote:
Lpfreaky90 wrote:
The problem is with sounds in a bsp you need to rebuild the audio cache

Well, I must say something has changed.
In my last map Hard Light I used some Portal 1 glados lines. May be there is a better way, but I used it as custom
sounds (extracted .waw files from portal 1 .gcf, placed them in portal2/sound/hard_light). Hammer finds and
playes them ok, but in game I couldn't hear them until I packed them into .bsp with Pakrat. So I didn't rebuiled
sound cash (I just didn't know I should) and I don't think anyone who played the map did it, but the lines played for them allright.

I'm not entirely sure what the cache does, but if it says "this file is a song" it will still find the file, because it's still in the same (overwritten) location. If you add a new sound the cache needs to know which files are sounds again so you will need to re-build the cache.

The cache holds the first 150 ms of each sound. Instead of loading all the files at once, that little bit should be long enough that it can load the rest once it starts playing.

Falsi sumus crusto!

this is all one big headache to me @_@

I dont even know how to use VPK

Just when I think I understand the system, it changes on me.

Just read my post, and use vpk.exe in the portal 2/bin folder to create a vpk ;)

https://developer.valvesoftware.com/wik ... ng_the_VPK
I dont understand what they want to me to do on number 2

Just when I think I understand the system, it changes on me.
Fracture wrote:
https://developer.valvesoftware.com/wiki/Releasing_A_Portal_2_Map#Creating_the_VPK
I dont understand what they want to me to do on number 2

simple if you want a texture, you place them in portal 2/portal2/materials/<<stuff>>
If you want them in a vpk:
create a materials folder and then put the texture in the correct location

example:
portal 2/portal2/materials/lp/test.vmf should also go into
materials/lp/test.vmf in the vpk.

same for sounds
sounds/lp/test.wav should go to sounds/lp/test.wav in the vpk too.

Okay i THINK I managed to cram it in there. I modified my first map for this and added the sound down in a ratman den. Let me know if it is working for you. I have a feeling I may have fudged it.

The Boxed Arm v.6

Just when I think I understand the system, it changes on me.

Is there any way to do that that's compatible with the steam workshop?

pack it in the bsp. using pakrat or bspzip.
https://developer.valvesoftware.com/wiki/BSPZIP
https://developer.valvesoftware.com/wiki/Pakrat

PreviousPage 2 of 3Next