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.
[01:15 am]
Symmetry -- There are so many people here I'm surprised we're still online :hurr:
[09:47 pm]
Symmetry -- :wob::wob:
[09:14 pm]
Apos -- I like to :wob:-it :wob:-it.
[2026-8-22. : 11:25 pm]
Zakerozi -- HI
[2026-8-22. : 10:29 pm]
Symmetry -- handledeez nuts
[2026-8-22. : 7:42 pm]
Excalibur -- Its handled.
[2026-8-22. : 6:50 pm]
Praetor -- yo nude or another mod, anyone around rn?
[2026-8-22. : 7:30 am]
NudeRaider -- ultraviolet
[2026-8-22. : 4:42 am]
LoveLess -- ultragod
[2026-8-22. : 4:07 am]
Symmetry -- I'm trying to figure out an end goal for my map. So far the best I've got is "destroy the AI data centers to summon god then kill god"
Please log in to shout.


Members Online: Milestone