Staredit Network > Forums > Modding Discussion > Topic: Sfxdata.arr
Sfxdata.arr
Jun 10 2014, 9:50 pm
By: Pandut  

Jun 10 2014, 9:50 pm Pandut Post #1

I'm just a fish



Just stumbled upon this a bit ago. ExploLRG, ExploMED and ExploSM are some of the few sounds in starcraft that play off-screen (distanced). I was curious to see if I could make it so other sounds could play off-screen.

I experimented with a few sound effects basically by matching their "General Properties" to what it shows in the screencap. Lo and behold, in-game the edited sound effects are played off-screen. This is handy for sound people wanting to create a atmospheric battle system in a mod.

I don't know if this is already known but I felt the need to share.

Also, you can create more varied sound effects using the Pss dialogue files of units. With some Iscript editing, I gave the Terran Marine seven different firing sounds and they work perfectly in-game. Requires a little extra work but the results are well worth it.



None.

Jun 12 2014, 1:37 am Sand Wraith Post #2

she/her

1) What are the exact fields and their corresponding values to allow a sound to play off-screen?

2) What do you mean by more varied sound effects? Do you mean replacing the Pss sounds with different sounds, and then playing the corresponding sound IDs through iscript?




Jun 12 2014, 6:50 pm Pandut Post #3

I'm just a fish

Quote
1) What are the exact fields and their corresponding values to allow a sound to play off-screen?
Not 100% sure. All I know that if you look through Sfxdata.arr, a lot of the sound effects have different fields/values. I'm theorizing here, but I wager "Unknown4" deals with sounds playing off-screen as well as it's priority. ExploLRG has an "Unknown4" value of 40, ExploMED has 30 and ExploSM has 20. I've noticed that the sounds with "Unknown4 40" play louder then those with lesser values, though that could just be the volume of the actual sound file. Mere speculation.

The values are like what is shown in the screenshot I posted.

EDIT: I think I'm right. The Comsat scan sound has an Unknown4 value of 50, I dialed it down to 30 and it plays much quieter in-game. Same with the nuke.

Quote
2) What do you mean by more varied sound effects? Do you mean replacing the Pss sounds with different sounds, and then playing the corresponding sound IDs through iscript?
Yeah, that's what I meant. The Marine only uses one firing sound, but using the Pss dialogue files and having them play via Iscript edits you can add more. "Unknown2" is somehow related to dialogue files, all dialogue files have an "Unknown2" value of 34.

Post has been edited 1 time(s), last time on Jun 13 2014, 5:37 am by Pandut.



None.

Jun 13 2014, 3:32 pm Sand Wraith Post #4

she/her

Unknown2 may have something to do with global sound playing. Ex. A Marine always plays its Yes sounds at a certain volume.

May also have to do with the "Unit Responses" boolean value in the Sound options in-game. Further speculation is that the "Interface Volume" option in Sound may affect it.




Jun 13 2014, 8:38 pm O)FaRTy1billion[MM] Post #5

👻 👾 👽 💪

One may also have to do with the Mute Unit Speech sound volume.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[10:41 am]
v9bettel -- Nice
[01:39 am]
Ultraviolet -- no u elky skeleton guy, I'll use em better
[10:50 pm]
Vrael -- Ultraviolet
Ultraviolet shouted: How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
hey cut it out I'm getting all the minerals
[10:11 pm]
Ultraviolet -- :P
[10:11 pm]
Ultraviolet -- How about you all send me your minerals instead of washing them into the gambling void? I'm saving up for a new name color and/or glow
[2024-4-17. : 11:50 pm]
O)FaRTy1billion[MM] -- nice, now i have more than enough
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- if i don't gamble them away first
[2024-4-17. : 11:49 pm]
O)FaRTy1billion[MM] -- o, due to a donation i now have enough minerals to send you minerals
[2024-4-17. : 3:26 am]
O)FaRTy1billion[MM] -- i have to ask for minerals first tho cuz i don't have enough to send
[2024-4-17. : 1:53 am]
Vrael -- bet u'll ask for my minerals first and then just send me some lousy vespene gas instead
Please log in to shout.


Members Online: Callfbyad, C(a)HeK