• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[1.30] Preload() and Preloader() don't do anything

Status
Not open for further replies.
Level 10
Joined
Dec 11, 2009
Messages
234
From my tests both Preload() and Preloader() don't do anything in Warcraft 1.30.
Or at least, in regard to sound files. Preloading sounds doesn't work.
Maybe it's a bug or Blizzard disabled something recently.

Zero effect from calling this:
JASS:
call Preload("Test\\file0018.ogg") // audio format doesn't matter, same zero effect with MP3 and WAV
Doesn't matter if it's a direct call or it's done via some Preloader("list.pld").
I found temporary workaround. This can be used now to actually preload sound file:
JASS:
call GetSoundFileDuration("Test\\file0018.ogg")
You can see that it works, because the game freezes for a few moments, if the sound file is big enough (for 2+ Mb OGG file it's easily noticeable on my PC).

As for Preloader(), it doesn't seem to execute ANY code from withing the file. Just nothing.
 
Last edited:
Status
Not open for further replies.
Top