• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Solved] Custom Minimap Screen Preview Music Topic

Level 7
Joined
Oct 6, 2022
Messages
135
Hello, I was wondering how can i put Music in my Custom Minimap Screen Preview like this? I also remembered that dota has this also but I do not know how
minimapimagefinishedlook2.jpg

Credits to world editor tutorials for this img
 
Last edited:
Level 18
Joined
Mar 16, 2008
Messages
721
I think this link below explains it but feel free to reply if you need more help:

 
Level 18
Joined
Mar 16, 2008
Messages
721
Sorry I didn't read. Here is from the thread of how to add music. I haven't personally tested this but I can try to help you implement it.
  1. Use MPQ Editor to open your map (non-protected), read file war3map.j with notepad

  2. Find function named "config" (Ctrl F)

  3. Add 1 line above the "endfunction" part: call PlayMusic( "Sound\\Music\\mp3Music\\PH1.mp3" )

  4. Save, exit and test

 
Level 18
Joined
Mar 16, 2008
Messages
721
Not a noob question at all.

I haven't done this before so I'm not 100% sure, but according to the instructions I linked, no I don't think that's the right folder.

1) download MPQ editor
2) open your map in MPQ editor
3) find this file named "war3map.j" in the MPQ files
4) open war3map.j
5) CTRL+F "function config"
6) add "call PlayMusic( "Sound\\Music\\mp3Music\\PH1.mp3" )" right before the "endfunction" line
JASS:
function config takes nothing returns nothing
    call SetMapName("TRIGSTR_159")
    call SetMapDescription("TRIGSTR_161")
    call SetPlayers(23)
    call SetTeams(23)
    call SetGamePlacement(MAP_PLACEMENT_TEAMS_TOGETHER)

    call DefineStartLocation(0, - 704.0, 8064.0)
    call DefineStartLocation(1, 8320.0, - 1024.0)
    call DefineStartLocation(2, - 704.0, - 8384.0)
    call DefineStartLocation(3, - 8704.0, - 576.0)
    call DefineStartLocation(4, - 896.0, - 960.0)
    call DefineStartLocation(5, - 256.0, - 1280.0)
    call DefineStartLocation(6, 64.0, - 960.0)
    call DefineStartLocation(7, - 576.0, - 1280.0)
    call DefineStartLocation(8, 64.0, - 640.0)
    call DefineStartLocation(9, - 896.0, - 640.0)
    call DefineStartLocation(10, - 576.0, - 320.0)
    call DefineStartLocation(11, - 256.0, - 320.0)
    call DefineStartLocation(12, - 704.0, 8064.0)
    call DefineStartLocation(13, 8320.0, - 1024.0)
    call DefineStartLocation(14, - 704.0, - 8384.0)
    call DefineStartLocation(15, - 8704.0, - 576.0)
    call DefineStartLocation(16, - 832.0, - 1216.0)
    call DefineStartLocation(17, - 832.0, - 384.0)
    call DefineStartLocation(18, 0.0, - 384.0)
    call DefineStartLocation(19, 0.0, - 1216.0)
    call DefineStartLocation(20, - 512.0, - 704.0)
    call DefineStartLocation(21, 2048.0, 4224.0)
    call DefineStartLocation(22, - 320.0, - 896.0)

    // Player setup
    call InitCustomPlayerSlots()
    call InitCustomTeams()
    call InitAllyPriorities()
    call PlayMusic( "Sound\\Music\\mp3Music\\PH1.mp3" )
endfunction
7) I think you also need to import the music you want into the sound editor, and of course change "PH1" to the song name you want to play.

Again not 100% sure this words but that's my understanding of the instructions. LMK if it works if you want more of my help.

Maybe someone else who understands this better can contribute.
 
Top