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.
[02:53 am]
Ultraviolet -- :wob:
[2026-11-27. : 10:21 am]
Zycorax -- :wob:
[2026-11-27. : 9:46 am]
UndeadStar -- :wob:
[2026-11-27. : 3:45 am]
Symmetry -- :wob:
[2026-11-24. : 7:28 pm]
Mr.BurnLiquid -- Thanks
[2026-11-24. : 7:17 pm]
NudeRaider -- you can't, just edit.
[2026-11-24. : 6:33 pm]
Mr.BurnLiquid -- Hi, how do I delete posts I’ve made? I was practicing with map editing or at least working with existing maps but I’d like to delete them; I’ve since refined my style and want to start fresh with new posts.
[2026-11-21. : 7:14 pm]
Symmetry -- so it shows the version history of temple siege
[2026-11-21. : 7:13 pm]
Symmetry -- I think he's trying to find the most popular versions of maps
[2026-11-21. : 9:24 am]
UndeadStar -- yes it helped...but I didn't understand what the picture was about lol
Please log in to shout.


Members Online: IlyaSnopchenko, NudeRaider