• 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.

Replaced race music sometimes stop playing

Status
Not open for further replies.
Level 21
Joined
Dec 15, 2021
Messages
338
Hello fellow mapmakers.

My problem is this : I've replaced all human musics (same with undead) with custom mp3. All 4 tracks have played at least once, so worldedit recognizes the files.
But sometimes after one is finished it just stops playing new tracks, and I don't think it's always after the same track/it's always after the 2nd.
Has anyone ever encountered this problem ?
 
Level 21
Joined
Dec 15, 2021
Messages
338
I don't think it's related. The music restart from where it stopped after a cutscene as usual. From the tests I made, a music theme is played only once and automatically stops after a cutscene transition (I don't have any trouble with those), a music automatically plays if there is no theme playing, except if you use a trigger to prevent it.
The problem is that the imported music tracks I use don't behave like the vanilla ones. I think it stops playing after the 2nd one but I'm not sure since I test the maps for different things at once and I'm not monitoring music closely. I will have to test that separately while reading a book or something :grin:
 

deepstrasz

Map Reviewer
Level 75
Joined
Jun 4, 2009
Messages
20,246
Anyways, this is how Blizzard does it for their campaigns:

  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Trigger - Run Init 03 Music <gen> (checking conditions)
  • Init 03 Music
    • Events
    • Conditions
    • Actions
      • Sound - Clear the music list
      • Wait 0.01 seconds
      • Sound - Play Blood Elf Theme, skipping the first 9.58 seconds
      • Sound - Set the music list to Music, starting with song 0
Also, try testing the music flow by accessing that specific map through the game, not editor (via test map).
 
Last edited:
Level 21
Joined
Dec 15, 2021
Messages
338
  • Sound - Set the music list to Music, starting with song 0
that's the music list I was talking about, but you don't need the trigger

I never test my maps via the "test map" because it doesn't work for campaigns unless you have zero custom campaign unit/doodad/spell etc. That's one of the pains on working on campaigns instead of single maps (the other being the AI editor) :sad:
 
Status
Not open for further replies.
Top