Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
The way your script is set up, the sound event is named soundname_01 and will play one of the five sound files at random.
The files you need to keep for this are the .wav files in \testnr2\sounds\ and soundevents_addon.vsndevts in \testnr2\soundevents\
Made point sound not ambient sound. renamed it to soundname_01, removed unneeded scripts / files...
what else could i be doing wrong?
https://www.flickr.com/photos/maantas/49303532176/in/dateposted-public/
https://www.flickr.com/photos/maantas/49303532251/in/dateposted-public/
https://www.flickr.com/photos/maantas/49303046478/in/dateposted-public/
https://www.flickr.com/photos/maantas/49303559903/in/dateposted-public/
https://www.flickr.com/photos/maantas/49304044951/in/dateposted-public/
no sound.
but i guess now i would have to import wav files again? cos i had wav files with names 01.wav, 02.wav etc. ?
The entity in Hammer only tells the engine to play the sound event soundname_01 in its position. The engine then looks up the sound event form the file, how to play it from the type value, and what files to use from the vsnd_files value.
So in your case you would still need to set the Sound Event Name property to soundname_01 without the .vsnd extension (since it's not the actual sound file). With how your sound event is set up, it would play one of the files randomly every time the sound event is played.
https://i.imgur.com/TxFMRJc.png
If you want to choose which of you sounds 01.wav to 05.wav to play, you would have to make separate sound events for them, no need to reimport the files.
etc.
And then add the soundevent for the right one to the entity:
https://i.imgur.com/zvi4Aor.png
https://www.flickr.com/photos/maantas/49304929321/in/dateposted-public/
dam it. so.. does it mean the script is not loaded?
btw - happy new year!
With the map running you can also try opening the console, and resaving the script. It should print some lines like: Recompiling resource asset: 'soundevents/soundevents_addon.vsndevts'
Or show errors if it failed.
If you haven't used the console before, make sure it's connected to the right port:
https://developer.valvesoftware.com/wiki/SteamVR/Environments/Introduction#Console
And thanks! Still 6 hours to go here.
so, tried console, and opened script, resaved it. indeed, there is an error! https://www.flickr.com/photos/maantas/49304668633/in/dateposted-public/
this is the file:
https://www.flickr.com/photos/maantas/49304689488/in/dateposted-public/
Like: