• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

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

Status
Not open for further replies.
Level 11
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