Results 1 to 3 of 3
  1. #1
    Rank: Disciple
    • Join Date: Apr 2009
    • Posts: 202

    Default Guide : Play a MIDI file in Warcraft 3!

    This is only to allow Warcraft 3 World Editor to recorganize MIDI files as Sound/Music. It will cause compile errors if you try to do it without those steps.

    You should download ImplantMidi.zip.

    Note : Warcraft3.reg is named as wc3.reg.

    1. Why using MIDI files?

    Why using MIDI files? Because it has a low file size instead of 20 times of the normal .mp3 file. Example you want to import a 20 minutes music and you see it takes 40 mb in .mp3. Use MIDI and you will see it only takes around 500 kb!

    2. Implement in Warcraft 3 (Without Warcraft3.reg of ImplantMidi.zip)

    Start Execute and write regedit.exe. The register edit will open and go to :
    Code:
    HKEY_CURRENT_USER\Software\Blizzard Entertainment\Warcraft III
    You will find 9 file and Allow Local Files. It is an hexadecimal value of 0x00000000. Double Clic on it and you will have a pop-up. Change the file's valor to 1. It will result to 0x00000001.


    2. Implement in Warcraft 3 (With Warcraft3.reg of ImplantMidi.zip)

    Open the .zip file and you will find Warcraft3.reg. Start it and this part will be finished.


    3. MIDISounds.slk

    There is .slk file in ImplantMidi.zip. Here is what it looks.
    Code:
    ID;PWXL;N;E
    B;Y36;X12;D0 0 35 11
    C;Y1;X1;K"SoundLabel"
    C;X2;K"DirectoryBase"
    C;X3;K"MIDIFileName"
    C;X4;K"DLSFileName"
    C;X5;K"Volume"
    C;X6;K"Priority "
    C;X7;K"Pitch"
    C;X8;K"Channel"
    C;X9;K"Radius"
    C;X10;K"Flags"
    C;X11;K"version"
    C;X12;K"InBeta"
    C;Y2;X1;K"AshenvaleDay"
    C;X2;K"Sound\Ambient\Ashenvale"
    C;X3;K"AshenvaleDay.mid"
    C;X4;K"Ashenvale.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y3;X1;K"AshenvaleNight"
    C;X2;K"Sound\Ambient\Ashenvale"
    C;X3;K"AshenvaleNight.mid"
    C;X4;K"Ashenvale.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y4;X1;K"BarrensDay"
    C;X2;K"Sound\Ambient\Barrens"
    C;X3;K"BarrensDay.mid"
    C;X4;K"Barrens.dls"
    C;X5;K70
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y5;X1;K"BarrensNight"
    C;X2;K"Sound\Ambient\Barrens"
    C;X3;K"BarrensNight.mid"
    C;X4;K"Barrens.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y6;X1;K"CityScapeDay"
    C;X2;K"Sound\Ambient\CityScape"
    C;X3;K"CityScapeDay.mid"
    C;X4;K"CityScape.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y7;X1;K"CityScapeNight"
    C;X2;K"Sound\Ambient\CityScape"
    C;X3;K"CityScapeNight.mid"
    C;X4;K"CityScape.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y8;X1;K"LordaeronFallDay"
    C;X2;K"Sound\Ambient\LordaeronFall"
    C;X3;K"LordaeronFallDay.mid"
    C;X4;K"LordaeronFall.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y9;X1;K"LordaeronFallNight"
    C;X2;K"Sound\Ambient\LordaeronFall"
    C;X3;K"LordaeronFallNight.mid"
    C;X4;K"LordaeronFall.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y10;X1;K"LordaeronSummerDay"
    C;X2;K"Sound\Ambient\LordaeronSummer"
    C;X3;K"LordaeronSummerDay.mid"
    C;X4;K"LordaeronSummer.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y11;X1;K"LordaeronSummerNight"
    C;X2;K"Sound\Ambient\LordaeronSummer"
    C;X3;K"LordaeronSummerNight.mid"
    C;X4;K"LordaeronSummer.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y12;X1;K"LordaeronSummerWithBirds"
    C;X2;K"Sound\Ambient\LordaeronSummer"
    C;X3;K"LordaeronWithBirds.mid"
    C;X4;K"LordaeronSummer.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y13;X1;K"LordaeronWinterDay"
    C;X2;K"Sound\Ambient\LordaeronWinter"
    C;X3;K"LordaeronWinterDay.mid"
    C;X4;K"LordaeronWinter.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y14;X1;K"LordaeronWinterNight"
    C;X2;K"Sound\Ambient\LordaeronWinter"
    C;X3;K"LordaeronWinterNight.mid"
    C;X4;K"LordaeronWinter.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y15;X1;K"NorthrendDay"
    C;X2;K"Sound\Ambient\Northrend"
    C;X3;K"NorthrendDay.mid"
    C;X4;K"Northrend.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y16;X1;K"NorthrendNight"
    C;X2;K"Sound\Ambient\Northrend"
    C;X3;K"NorthrendNight.mid"
    C;X4;K"Northrend.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y17;X1;K"FelwoodDay"
    C;X2;K"Sound\Ambient\LordaeronSummer"
    C;X3;K"LordaeronSummerDay.mid"
    C;X4;K"LordaeronSummer.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y18;X1;K"FelwoodNight"
    C;X2;K"Sound\Ambient\LordaeronSummer"
    C;X3;K"LordaeronSummerNight.mid"
    C;X4;K"LordaeronSummer.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y19;X1;K"DalaranDay"
    C;X2;K"Sound\Ambient\CityScape"
    C;X3;K"CityScapeDay.mid"
    C;X4;K"CityScape.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y20;X1;K"DalaranNight"
    C;X2;K"Sound\Ambient\CityScape"
    C;X3;K"CityScapeNight.mid"
    C;X4;K"CityScape.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y21;X1;K"VillageDay"
    C;X2;K"Sound\Ambient\LordaeronSummer"
    C;X3;K"LordaeronSummerDay.mid"
    C;X4;K"LordaeronSummer.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y22;X1;K"VillageNight"
    C;X2;K"Sound\Ambient\LordaeronSummer"
    C;X3;K"LordaeronSummerNight.mid"
    C;X4;K"LordaeronSummer.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y23;X1;K"VillageFallDay"
    C;X2;K"Sound\Ambient\LordaeronFall"
    C;X3;K"LordaeronFallDay.mid"
    C;X4;K"LordaeronFall.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y24;X1;K"VillageFallNight"
    C;X2;K"Sound\Ambient\LordaeronFall"
    C;X3;K"LordaeronFallNight.mid"
    C;X4;K"LordaeronFall.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y25;X1;K"DungeonDay"
    C;X2;K"Sound\Ambient\Northrend"
    C;X3;K"NorthrendDay.mid"
    C;X4;K"Northrend.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y26;X1;K"DungeonNight"
    C;X2;K"Sound\Ambient\Northrend"
    C;X3;K"NorthrendNight.mid"
    C;X4;K"Northrend.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y27;X1;K"WINDTEST"
    C;X2;K"Sound\Ambient\Northrend"
    C;X3;K"NorthrendDay.mid"
    C;X4;K"Northrend.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    C;Y28;X1;K"SunkenRuinsDay"
    C;X2;K"Sound\Ambient\SunkenRuins"
    C;X3;K"Wetlandsday.mid"
    C;X4;K"Wetlands.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K1
    C;X12;K1
    C;Y29;X1;K"SunkenRuinsNight"
    C;X2;K"Sound\Ambient\SunkenRuins"
    C;X3;K"WetlandsNight.mid"
    C;X4;K"Wetlands.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K1
    C;X12;K1
    C;Y30;X1;K"BlackCitadelDay"
    C;X2;K"Sound\Ambient\BlackCitadel"
    C;X3;K"BlackCitadel_OutlandDay.mid"
    C;X4;K"BlackCitadel.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K1
    C;X12;K0
    C;Y31;X1;K"BlackCitadelNight"
    C;X2;K"Sound\Ambient\BlackCitadel"
    C;X3;K"BlackCitadel_OutlandNight.mid"
    C;X4;K"BlackCitadel.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K1
    C;X12;K0
    C;Y32;X1;K"DalaranRuinsDay"
    C;X2;K"Sound\Ambient\DalaranRuins"
    C;X3;K"DalaranRuinsDay.mid"
    C;X4;K"DalaranRuins.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K1
    C;X12;K0
    C;Y33;X1;K"DalaranRuinsNight"
    C;X2;K"Sound\Ambient\DalaranRuins"
    C;X3;K"DalaranRuinsNight.mid"
    C;X4;K"DalaranRuins.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K1
    C;X12;K0
    C;Y34;X1;K"IceCrownDay"
    C;X2;K"Sound\Ambient\IceCrown"
    C;X3;K"IceCrownDay.mid"
    C;X4;K"IceCrown.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K1
    C;X12;K0
    C;Y35;X1;K"IceCrownNight"
    C;X2;K"Sound\Ambient\IceCrown"
    C;X3;K"IceCrownNight.mid"
    C;X4;K"IceCrown.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K1
    C;X12;K0
    C;Y36;X1;K"Roland"
    C;X2;K"C:\Windows\system32\drivers"
    C;X3;K"none.mid"
    C;X4;K"gm.dls"
    C;X5;K80
    C;X6;K1000
    C;X7;K1
    C;X8;K15
    C;X9;K5000
    C;X10;K"CHANNELFULLPREEMPT"
    C;X11;K0
    C;X12;K1
    E

  2. #2
    Rank: Disciple
    • Join Date: Apr 2009
    • Posts: 202

    Default

    If you don't want to download it copy and paste it in notepad, then save it as .slk file. Move MIDISounds.slk to C:\Program Files\Warcraft III\UI\SoundInfo (The file must be on your Warcraft 3 folder + UI\SoundInfo). Open the .slk file and try to find C;X2;K"C:\Windows\system32\drivers" (If you look it is at the end of the file -12 lines). Try to find gm.dls in your Windows Folder. Normally it is on C:\Windows\system32\drivers. Normally you haven't to change C;X2;K"C:\Windows\system32\drivers" valor. It is only if it is on a other location. Example, gm.dls is at C:\Windows\system\drivers. So you will have to put C;X2;K"C:\Windows\system\drivers" instead of C;X2;K"C:\Windows\system32\drivers" (So : C;X2;K"C:\Windows\YOUR FOLDER BUT DON'T NAME WITH gm.dls". Also, if you use an another sound bank for playing MIDI files, you must change C;X4;K"gm.dls" (Two lines down of C;X2;K"C:\Windows\system\drivers") to C;X4;K"YOURFILENAME.dls".

    4. Playing a MIDI file in a file with the Trigger Editor

    Open World Editor and import any midi file that work if you want to test. Then open the Trigger Editor and create a trigger called Music that only runs at map initialization. Convert it directly to Custom Text after creating it.
    It should look like that :
    Code:
    function Trig_Music_Actions takes nothing returns nothing
    endfunction
    Add under the function and endfunction (Normally it looks like that I think) :
    PHP Code:
    Code:
    function Trig_Music_Actions takes nothing returns nothing
    call SetAmbientDaySound( "Roland" )
    call SetAmbientNightSound( "Roland" )
    endfunction
    Now you can play your music via call PlayMusicBJ( "Your midi file"). Example you want to play 653a1.mid.
    PHP Code:
    Code:
    call PlayMusicBJ( "653a1.mid")
    If you are using a war3mapImported\whateverthefilename... , you must write call PlayMusicBJ( "war3mapImported\\YOURFILENAME.mid") instead of call PlayMusicBJ( "war3mapImported\YOURFILENAME.mid"). There are two slashes instead of one.

    Enjoy this Guide! I did a research for more than 25 days in war3x.mpq to know how to play MIDI files because there was MIDI files in warcraft 3 and i wasn't knowing how they play it. Now I know. Good Luck to who will do this Guide. You can comment this Guide if you want and also tell me what can be improved.

  3. #3
    Rank: Forum Addict
    • Join Date: Apr 2009
    • Posts: 521

    Default

    Good job mate!
    ΠΑΛΙΕΣ ΚΑΛΕΣ ΕΠΟΧΕΣ !

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •