Jump to content

Recommended Posts

Posted

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 :

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.

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  

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 :

function Trig_Music_Actions takes nothing returns nothing
endfunction  

Add under the function and endfunction (Normally it looks like that I think) :

PHP 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:

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.

 

Credits:Chocobo

 

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • L2 DEVS - HTML DESIGN (ALL NPC'S)    
    • I only share for free what they are reselling 🙂 You keep crying in all the publications, and if you are looking for h5 or gd wait for 5 or 6 years... cheers.... GENERAL Cached Extended to 8192kb IOBuffer Hair2SlotCache ItemBidAuctioner Clan Hall Current Olympiad Season Rank pages System (Shows Points/Games - Fully Configurable) Automatic Flag Around Raidboss System Offline Shop & Buffers Restore After Restart (Fixed location) Offline Buffer System PvP Auto Announce System Rebuilt with Extra Addons (Fully Configurable, Name, Zones, Rewards) Automatic Announce System Rebuilt with Extra Addons (Fully Configurable) ALT+B Augmentation House Shift+Click Droplist/Spoil List Epic Items Rank RB points Rank ChangeColorName ChangeColorTitle Change Skin (Race) Change Gender Custom Subclass (Acumulative) Achievements Item Delivery System  Augmentations/Enchants Automatic Announce System Auto Learn Skills PvP Reward Pk Reward War Reward Scheme buffer GlobalChatTrade Trade Augment Items Castle Announce Time Castle Standby Time Fix Spiritshots delay SpellbooksDrop Enable/Disable Drop custom Fully configurable, lvl min max allmobs, allrb, individual New cancel effect min,max BlessedarmorEnchantRate BlessedmagicWeaponEnchantRate BlessednormalWeaponEnchantRate MaxSlosChars MaxSlotsDwarfs Enable or disable all commands Fix fast loading npc OlympiadRestoreStatsOnFightStart OlympiadSystemSecondTimeEnabled OlympiadEnterLast10Minute OlympiadThirdClassSummons MinLevelTrade AnnounceSubClassMsg1 AnnounceSubClassMsg2 AnnounceSubClassMsg3 LimitedSubClassRace NoSellItems Change ID SealStones for AA NoPrivateBuyItems NoDropPlayerOnDie DisableSkillEnchantData Show Level Mobs Show npc clan flag DespawnSummonEnBattle SummonPetEnBattle RideSummonPetEnBattle DitanceToTargetMove EnterWorld_Undying EnterWorld_UnHide BlockWhispMessagePlayerToGM UseItemsWithHide CriticalSkillDamageBonusPer=4.0 Disable SSQSystem OnCastle Siege End Use any dyes Buy halls directly in auctioneer without waiting for the auction, configuration to change the item you consume MensajeEnterWorldServer Command .hero enable/disable hero aura Config vip global chat character, chat by systemsg Soulshots: NoSendSystemMessageUse Panel //admin Global vote reward Agathions system Anti Interface, control all patch files by md5 Command .menu configurable, last restart, name, maxusers, privatestores Spawn protection activate deactivate consume items to activate  Activate or deactivate autoloot for vip characters EVENTS Happy Hour Event reworked Configurable by announcements or systemsg Team VS Team Capture The Flag Death Match Last Man Standing Destroy The Base Korean Style Castle Siege Check if the player is inside the tvt event due to disconnection/critical error Top 1/5 killer reward/announce TimeAfk ResetReuseSkills ResetBuffsOnFinish Firework effect Reward win/lost Add Team Location Title custom Red/blue Open Door/Wall System BalanceBishops Show kills in title Invest positions Show Death To Top Delete Non-Subclass Skills     RELOADS Reload Enterworld Html Option Reload Faction System Reload Donate Shop Reload OfflineBuffer Reload Champion NPC Reload CliExt Reload AntiBot Reload Vip System Reload Auction Reload AutoLoot Reload CastleSiegeManager Reload CharacterLock Reload ClanPvPStatus Reload AutoLearn Reload ClanReputationRank Reload ClanSystem Reload CreatureAction Reload Customs.ini Reload L2server.ini Reload SkillData.txt Reload doordata.txt Reload decodata.txt Reload Multisell Reload DropList   Extender tested for more than 3 years. Assured stability. Possibility of adding MOD's upon request. (Not included, consult).
    • some peoples trash is another mans treasure, is that your treasure?   people might like the content but you are still the rat in the room     thats the community judging you.  
    • Keep reselling what I publish here for free!!! 🙂 GG  
  • Topics

×
×
  • Create New...