Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Why doesn't the CHK WAV section include file duration of eac
Why doesn't the CHK WAV section include file duration of eac
Jul 20 2024, 8:25 pm
By: sethmachine  

Jul 20 2024, 8:25 pm sethmachine Post #1



The CHK WAV section only includes the path of the WAV file in the MPQ archive: http://www.staredit.net/wiki/index.php/Scenario.chk#.22WAV_.22_-_WAV_String_Indexes

However, the corresponding trigger actions for playing a wav file (http://www.staredit.net/wiki/index.php/Scenario.chk#Trigger_Actions_List) like 8 = Play WAV(Wav, WavTime) expect a duration of milliseconds for the WAV file to be played.

In the default GUI map editor, you can't normally choose a time, and instead it looks like the map editor implicitly gathers the millisecond duration of the file and adds it into the trigger action behind the scenes.

This is unfortunate, because it means to allow creating triggers related to WAV files, you have to have access to full MPQ archive in order to find out the WAV durations.

Am I wrong? Is the WAV duration stored somewhere else in the CHK sections? Would it be hacky to create an extra section in the CHK to store WAV file metadata like duration (or use an not commonly used section)?

Does anyone have insight into the design reasoning of this choice by Blizzard?



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2025-6-21. : 4:08 am]
Ultraviolet -- Yeah I mean it's just always veering off in the same direction which doesn't give the feeling of movement based inaccuracy. I'd say it should jitter around if you're going for an inaccurate effect while strafing. Also it doesn't seem to do it when strafing right so I wasn't sure if it was intentional or not
[2025-6-21. : 3:34 am]
Zoan -- that's on purpose; got to stand still to be accurate, and you can't just strafe away while firing consistently ;) does it feel weird tho
[2025-6-21. : 12:26 am]
Ultraviolet -- I tested a little, the shots fired weirdly in not quite the right direction when I moved and shot at the same time, seemed a little off
[2025-6-20. : 10:02 pm]
Moose -- dark web game o_o
[2025-6-20. : 7:21 pm]
Zoan -- here's the temporary link (I'll get a domain later) http://3.145.71.231:3000/
[2025-6-20. : 7:03 pm]
Zoan -- hey I made a .io game, anyone wanna help me test it
[2025-6-20. : 11:51 am]
UndeadStar -- :wob:
[2025-6-20. : 6:11 am]
7-7 -- Been a minute
[2025-6-20. : 1:43 am]
O)FaRTy1billion[MM] -- :wob:
[2025-6-19. : 7:49 pm]
RexyRex -- :wob:
Please log in to shout.


Members Online: Moose