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

Game - Preload .mdx/.blp

Level 21
Joined
Mar 16, 2008
Messages
958
How come this trigger doesn't seem to preload any of these models and textures? They still cause lag.

  • Preload Models and Textures
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game - Preload 1-SilverhandTabernacle.mdx
      • Game - Preload AllianceDozer.mdx
      • Game - Preload AlteracMarketPlace.mdx
      • Game - Preload AngelicWing.blp
      • Game - Preload ArcaneRuneblade.blp
      • Game - Preload Arch Angel Mikael.mdx
      • Game - Preload Arch Angel Mikael_Portrait.mdx
      • Game - Preload Archer Lordaeron_Light_Alter.mdx
      • Game - Preload Archer_Lordaeron_ArrowMissile.mdx
      • Game - Preload ArmoredFootman.mdx
      • Game - Preload ArmoredFootman_Portrait.mdx
      • Game - Preload Artisan.blp
      • Game - Preload Artisan.mdx
      • Game - Preload Ashbringer.mdx
      • Game - Preload Auriel's Blessing_Wings.mdx
      • Game - Preload Badass_Pegasus_Knight.mdx
      • Game - Preload BagOfPlums.blp
      • Game - Preload BagOfPlums.mdx
      • Game - Preload BagOfPlums_Portrait.mdx
      • Game - Preload Banana.mdx
      • Game - Preload BanditRider.mdx
      • Game - Preload Barracks.mdx
      • Game - Preload BattleCryTarget.mdx
      • Game - Preload BeltOfGiantStrength.mdx
      • Game - Preload BlackArmour.blp
      • Game - Preload BlackLegionEliteCavalrymanTCV2.mdx
      • Game - Preload BlackLegionRangerTCV2.mdx
      • Game - Preload Blessings.mdx
      • Game - Preload BloodElfMage.mdx
      • Game - Preload BloodKnightV1.02.mdx
      • Game - Preload BootsOfSpeed.mdx
      • Game - Preload BrillianceStaff.mdx
      • Game - Preload Butcher.mdx
      • Game - Preload Butcher_Portrait.mdx
      • Game - Preload CW_Gilneas_Buildings.BLP
      • Game - Preload CageWagon_TC.mdx
      • Game - Preload Calia_Menethil.mdx
      • Game - Preload Calia_Menethil_Portrait.mdx
      • Game - Preload Candle_Priest.mdx
      • Game - Preload Candle_Priest_portrait.mdx
      • Game - Preload CandyStick.blp
      • Game - Preload Cannon.mdx
      • Game - Preload Cannon_Portrait.mdx
      • Game - Preload Cannonball.mdx
      • Game - Preload Captain Lordaeron_HQ_TC_Unit.mdx
      • Game - Preload Captain Lordaeron_Portrait.mdx
      • Game - Preload ChampRallyAura006.mdx
      • Game - Preload ChaosCitadel.mdx
      • Game - Preload ChaosGraveyard1.3.mdx
      • Game - Preload CheeseItem.mdx
      • Game - Preload ChestOfBluePearlsItemV.122.mdx
      • Game - Preload ChromaticAbberation.blp
      • Game - Preload ChurchWC1.mdx
      • Game - Preload ClawsOfAttack.mdx
      • Game - Preload ClericMissile.mdx
      • Game - Preload ClericWC1.mdx
      • Game - Preload CloakOfShadows.mdx
      • Game - Preload ColdTower.mdx
      • Game - Preload ConjuringTower.mdx
      • Game - Preload CorruptedAshbringer.blp
      • Game - Preload CorruptedAshbringer.mdx
      • Game - Preload Crate_of_Fruits.mdx
      • Game - Preload CrimsonSkullOrderVeneratedGolem.mdx
      • Game - Preload CrownOfKings.mdx
      • Game - Preload Crusader.mdx
      • Game - Preload Crystal Shield.mdx
      • Game - Preload Curser.mdx
      • Game - Preload Curser_Portrait.mdx
      • Game - Preload DaggerOfEscape.mdx
      • Game - Preload DalaranMarshalPaladinFaceWhite.mdx
      • Game - Preload Dark Elven Archon.mdx
      • Game - Preload Dark Elven Archon_portrait.mdx
      • Game - Preload DarknessBomb.mdx
      • Game - Preload Darksword.mdx
      • Game - Preload DemonHunterNagaV1.00.mdx
      • Game - Preload DemonKingStatue.mdx
      • Game - Preload DemonObelisk.mdx
      • Game - Preload DemonPillar.mdx
      • Game - Preload DemonTower.mdx
      • Game - Preload DemonTownhall.MDX
      • Game - Preload DemonicGatewayDeathEffect.mdx
      • Game - Preload DemonicPortal.blp
      • Game - Preload Die_By_The_Sword_final.mdx
      • Game - Preload DiskOfScythes.mdx
      • Game - Preload DoomLord.mdx
      • Game - Preload DoomTower.mdx
      • Game - Preload Dragonling.mdx
      • Game - Preload Dragonling_Portrait.mdx
      • Game - Preload DustWind.blp
      • Game - Preload DwarvenTower.mdx
      • Game - Preload Effect_RiftPurple.mdx
      • Game - Preload Eldritch Covenant 503.mdx
      • Game - Preload EnchantedGoldmineDemonV1.01.mdx
      • Game - Preload EnchantedGoldmineNerubianV1.11.mdx
      • Game - Preload EnchantedGoldmineZulDrakV1.02.mdx
      • Game - Preload Engineer.blp
      • Game - Preload Engineer.mdx
      • Game - Preload EnochianAlphabet.blp
      • Game - Preload Face128x128.blp
      • Game - Preload FacelessOneCultist.mdx
      • Game - Preload FacelessOneCultist_portrait.mdx
      • Game - Preload FireTornado.mdx
      • Game - Preload Fire_Stream.mdx
      • Game - Preload Forsaken_Apothecary.mdx
      • Game - Preload Forsaken_Apothecary_Portrait.mdx
      • Game - Preload FreeCompanyMilitia_2_2.mdx
      • Game - Preload FurionV2.mdx
      • Game - Preload GauntletsOfOgrePower.mdx
      • Game - Preload GearAura.blp
      • Game - Preload GearAura.mdx
      • Game - Preload GeneralHeroGlow.mdx
      • Game - Preload GhostKey.mdx
      • Game - Preload GhostShip.mdx
      • Game - Preload GhostShip_Portrait.mdx
      • Game - Preload GilneasFarm.mdx
      • Game - Preload GilneasLumberMill.mdx
      • Game - Preload GilneasTower.mdx
      • Game - Preload GoldenPeasant.mdx
      • Game - Preload GondorFountainGuard.mdx
      • Game - Preload GrandMage.mdx
      • Game - Preload GrandMage_Portrait.mdx
      • Game - Preload GreaterWheelAngel.mdx
      • Game - Preload GrnVortexAura_Portrait.mdx
      • Game - Preload HQ Captain Morgan.mdx
      • Game - Preload HQ Treasure Chest.mdx
      • Game - Preload HandOfDeath.mdx
      • Game - Preload Heavens Gate Channel.mdx
      • Game - Preload Heavens Gate.mdx
      • Game - Preload HeroElfKing.blp
      • Game - Preload HeroRogue1.mdx
      • Game - Preload HeroVampireCombatant.blp
      • Game - Preload HeroVampireCombatant.mdx
      • Game - Preload HeroVampireCombatant_Portrait.mdx
      • Game - Preload Hero_ElectorCount.mdx
      • Game - Preload Hero_ElfKing.mdx
      • Game - Preload Hero_Thaurissan.mdx
      • Game - Preload HolyShield Seal.mdx
      • Game - Preload Holy_Fire_Slam.mdx
      • Game - Preload Holy_Spawn.mdx
      • Game - Preload Houses.mdx
      • Game - Preload Human Bishop.mdx
      • Game - Preload Human Bishop_portrait.mdx
      • Game - Preload Human Destroyer Zeppelin.mdx
      • Game - Preload Human Garrison.mdx
      • Game - Preload HumanBarracks.mdx
      • Game - Preload HumanBladeMaster.mdx
      • Game - Preload HumanBladeMaster_portrait.mdx
      • Game - Preload HumanChurch.mdx
      • Game - Preload HumanShipyard.mdx
      • Game - Preload HumanWizard.mdx
      • Game - Preload HumanWizard_Portrait.mdx
      • Game - Preload Hurricanwave.mdx
      • Game - Preload HydromancerKulTirasV1.06.mdx
      • Game - Preload Imp2.MDX
      • Game - Preload Imp2.blp
      • Game - Preload InquisitorDemonV1.00.mdx
      • Game - Preload Item_Gem_Amethyst.mdx
      • Game - Preload Item_Gem_Diamond.mdx
      • Game - Preload Item_Gem_Emerald.mdx
      • Game - Preload Item_Gem_Ruby.mdx
      • Game - Preload Item_Gem_Sapphire.mdx
      • Game - Preload Javeliner.mdx
      • Game - Preload Javeliner_portrait.mdx
      • Game - Preload Judgement.mdx
      • Game - Preload Judgment.blp
      • Game - Preload Judgment.mdx
      • Game - Preload Judgment_portrait.mdx
      • Game - Preload JuggernaughtIronHordeV1.03.mdx
      • Game - Preload King Terenas Menethil.mdx
      • Game - Preload King Varian Wrynn.mdx
      • Game - Preload King Varian Wrynn_Portrait.mdx
      • Game - Preload King.mdx
      • Game - Preload King_Portrait.mdx
      • Game - Preload Knight Lordaeron.mdx
      • Game - Preload Knight Lordaeron_Portrait.mdx
      • Game - Preload KobAltar_columns.mdx
      • Game - Preload KoboldBarracks01.mdx
      • Game - Preload KoboldDigger.mdx
      • Game - Preload KoboldSlave.mdx
      • Game - Preload KoboldSlave_Portrait.mdx
      • Game - Preload KultirasTradeHouseV1.mdx
      • Game - Preload Liberty Yellow.mdx
      • Game - Preload LionSong.BLP
      • Game - Preload LionSong.mdx
      • Game - Preload Lor'themar.mdx
      • Game - Preload Lor'themar_portrait.mdx
      • Game - Preload LordaeronAltar.mdx
      • Game - Preload LordaeronMageTower.mdx
      • Game - Preload LordaeronMonument.mdx
      • Game - Preload LordearonMarshalPaladinFaceWhite.mdx
      • Game - Preload LumberMillWC1.mdx
      • Game - Preload Magic Orb.mdx
      • Game - Preload MagicCircle_Devil.mdx
      • Game - Preload MagicShield.mdx
      • Game - Preload Malevolence Aura Green.mdx
      • Game - Preload Malthael.mdx
      • Game - Preload Malthael_Portrait.mdx
      • Game - Preload MantleOfIntelligence.mdx
      • Game - Preload MaskOfDeath.mdx
      • Game - Preload MassTeleportTo.mdx
      • Game - Preload Monk.mdx
      • Game - Preload Monk_portrait.mdx
      • Game - Preload Mounted Captain.mdx
      • Game - Preload Mounted Captain_Portrait.mdx
      • Game - Preload Nemesis.mdx
      • Game - Preload NightleTeamColor.mdx
      • Game - Preload NightmareSheep01.blp
      • Game - Preload NightmareSheep02.blp
      • Game - Preload NightmareSheep03.blp
      • Game - Preload NightmareSheep2.mdx
      • Game - Preload Ninja3.mdx
      • Game - Preload Ninja3_Portrait.mdx
      • Game - Preload NuclearExplosion5.mdx
      • Game - Preload Objects\InventoryItems\Radar\Radar.blp
      • Game - Preload Omni_DarkIron.blp
      • Game - Preload OrbFireX.mdx
      • Game - Preload OrbIceX.mdx
      • Game - Preload OrbLightX.mdx
      • Game - Preload OrbWaterX.mdx
      • Game - Preload OrcSelectionAura.mdx
      • Game - Preload PeasantFemale.mdx
      • Game - Preload PeasantFemale_Portrait.mdx
      • Game - Preload PeasantHouse.mdx
      • Game - Preload PigFarm3.mdx
      • Game - Preload PotionBlue.mdx
      • Game - Preload PotionGreen.mdx
      • Game - Preload PotionGreenSmall.mdx
      • Game - Preload Providence Aura Teal.mdx
      • Game - Preload PsionicGlow.blp
      • Game - Preload PurpleShine.blp
      • Game - Preload Questioner(Visored).mdx
      • Game - Preload Questioner.blp
      • Game - Preload RPGThief.blp
      • Game - Preload Radar.mdx
      • Game - Preload Radiant_SGuards.mdx
      • Game - Preload RagnarosHammer.blp
      • Game - Preload RagnarosSkin.blp
      • Game - Preload Renault Morgraine.mdx
      • Game - Preload Renault Morgraine_Portrait.mdx
      • Game - Preload Retribution.mdx
      • Game - Preload RoyalCrown.mdx
      • Game - Preload RoyalCrown_Portrait.mdx
      • Game - Preload RoyalOrb.mdx
      • Game - Preload RoyalOrb_black.mdx
      • Game - Preload RoyalOrb_blue.mdx
      • Game - Preload RoyalOrb_purp.mdx
      • Game - Preload RoyalOrb_teal.mdx
      • Game - Preload RoyalQueen.mdx
      • Game - Preload RoyalQueen_Portrait.mdx
      • Game - Preload RuneOrb.mdx
      • Game - Preload Runestone Battlestaff.mdx
      • Game - Preload Runestone Breastplate.mdx
      • Game - Preload Runestone Shield.mdx
      • Game - Preload Runestone Shield_Portrait.mdx
      • Game - Preload RunicAura.mdx
      • Game - Preload RupeeSkinTGA2.blp
      • Game - Preload SBGarrison.mdx
      • Game - Preload ScourgeShrine_ByxYours Trulyx.mdx
      • Game - Preload Scroll.mdx
      • Game - Preload ShadowHeart_face.mdx
      • Game - Preload ShadowOrbMissile v1.2.mdx
      • Game - Preload ShipyardDemonV2.00.mdx
      • Game - Preload ShuttingEye2.blp
      • Game - Preload SilverhandKnight.mdx
      • Game - Preload SlippersOfAgility.mdx
      • Game - Preload Soul Discharge.mdx
      • Game - Preload SpanishLancer.mdx
      • Game - Preload Spanish_Outrider.mdx
      • Game - Preload Spearman Lordaeron_Heavy_L.mdx
      • Game - Preload Spearman Lordaeron_Heavy_L_Portrait.mdx
      • Game - Preload SpellShieldAmulet.mdx
      • Game - Preload Spirit_Axe.mdx
      • Game - Preload Stable.mdx
      • Game - Preload SteamMilitia.mdx
      • Game - Preload SteamWorker.mdx
      • Game - Preload Storm_Sorcerer_Kul-Tiras_HD_TC.mdx
      • Game - Preload Stormbinder 08.mdx
      • Game - Preload StormwindArcaneVault.mdx
      • Game - Preload StormwindBlacksmith.mdx
      • Game - Preload StormwindKnight.mdx
      • Game - Preload StormwindLumberMill.mdx
      • Game - Preload StormwindMageTower.mdx
      • Game - Preload StormwindTower.mdx
      • Game - Preload StormwindTransportShip.mdx
      • Game - Preload Stranglehold.mdx
      • Game - Preload StromgardeKeep.mdx
      • Game - Preload StromgardeShipyard.mdx
      • Game - Preload StromgardeTradeHouse.mdx
      • Game - Preload StromgardeWizardSanctum.mdx
      • Game - Preload StromgardeWorkshop.mdx
      • Game - Preload Succorbenoth.mdx
      • Game - Preload Succorbenoth_Portrait.mdx
      • Game - Preload Sulfuras Hand Of Ragnaros.mdx
      • Game - Preload SuperLightningBall.mdx
      • Game - Preload TeamGlow00.blp
      • Game - Preload TemplarExemplar.mdx
      • Game - Preload TemplarJusticar.mdx
      • Game - Preload TemplarWarrior.mdx
      • Game - Preload Textures\ArmoredFootman.blp
      • Game - Preload Textures\BloodElfMage.blp
      • Game - Preload Textures\Kobold_shared_1.blp
      • Game - Preload Textures\Ninja3.blp
      • Game - Preload Textures\Pirates\PirateBattleShip\PirateBattleShip.blp
      • Game - Preload Textures\Rune1d.blp
      • Game - Preload Textures\ShadoFace.blp
      • Game - Preload The Mana Blade.mdx
      • Game - Preload TheAshbringer.blp
      • Game - Preload ThorasTrollbane.mdx
      • Game - Preload Tornado2.blp
      • Game - Preload Tornado2b.blp
      • Game - Preload TotemFelOrcV1.02.mdx
      • Game - Preload Towers.mdx
      • Game - Preload Treant.mdx
      • Game - Preload Treant_Portrait.mdx
      • Game - Preload Turret Fire.mdx
      • Game - Preload UnbrokenCultist.mdx
      • Game - Preload UnbrokenCultist_portrait.mdx
      • Game - Preload UndeadBannerFinal.mdx
      • Game - Preload Units\Rostrodle\Skirmisher\Skirmisher.blp
      • Game - Preload University.mdx
      • Game - Preload VFX4x4HolyFlame.blp
      • Game - Preload VFXsmoke_04.blp
      • Game - Preload VampireTracker.blp
      • Game - Preload VampireTracker.mdx
      • Game - Preload VampireTracker_bonearrow.mdx
      • Game - Preload VerdantGlow3.blp
      • Game - Preload VileKnight.mdx
      • Game - Preload Vuurtje.blp
      • Game - Preload WCIITownHall.mdx
      • Game - Preload Wagon.mdx
      • Game - Preload WarMill4.mdx
      • Game - Preload WightLight.mdx
      • Game - Preload WindCirclefaster.mdx
      • Game - Preload WitchOfNight.mdx
      • Game - Preload WitchOfNight_Portrait.mdx
      • Game - Preload WorgenGeneral.blp
      • Game - Preload WorgenHeroV2.mdx
      • Game - Preload WorgenHeroV2_Portrait.mdx
      • Game - Preload WotK Factory.mdx
      • Game - Preload Wraith_BlackRider.mdx
      • Game - Preload WyvernRed.MDX
      • Game - Preload WyvernRed_Portrait.MDX
      • Game - Preload XmasCandyStick.mdx
      • Game - Preload ZRupee.MDX
      • Game - Preload blackscull.blp
      • Game - Preload cold.blp
      • Game - Preload dalaranbirth.mdx
      • Game - Preload dragonpriest.blp
      • Game - Preload faerie.mdx
      • Game - Preload faerie_Portrait.mdx
      • Game - Preload justanotheraura.mdx
      • Game - Preload liz_pyro_new15noglow.mdx
      • Game - Preload nightle_scythe.blp
      • Game - Preload nightle_team_texture.blp
      • Game - Preload royal_orb_texture_black.blp
      • Game - Preload royal_orb_texture_blue.blp
      • Game - Preload royal_orb_texture_purp.blp
      • Game - Preload royal_orb_texture_teal.blp
      • Game - Preload s_HolymagicProjectile.mdx
      • Game - Preload star5tga.blp
      • Game - Preload stormwindfootman.mdx
      • Game - Preload stormwindfootman_Portrait.mdx
      • Game - Preload textures\CrossedSwordsBuff.blp
      • Game - Preload textures\Lightning1b.blp
      • Game - Preload textures\genie.blp
      • Game - Preload textures\wc1knight_helmet.blp
      • Game - Preload textures\webbedgrass.blp
      • Game - Preload treasurechestspecial.mdx
      • Game - Preload war3mapImported\AutumnGlow.blp
      • Game - Preload war3mapImported\HolyGlow.blp
      • Game - Preload war3mapImported\PirateBattleship.mdx
      • Game - Preload war3mapImported\ScHighComm 256.blp
      • Game - Preload war3mapImported\SwanKnight.mdx
      • Game - Preload war3mapImported\WaterExplosion.mdx
      • Game - Preload war3mapImported\dummy.mdx
      • Game - Preload war3mapImported\dust3.blp
      • Game - Preload war3mapImported\instantdummy.mdx
      • Game - Preload war3mapImported\largesmoke1.blp
      • Game - Preload war3mapImported\taiji2.blp
      • Game - Preload war3mapImported\taiji3.blp
      • Game - Preload war3mapImported\taiji5.blp
      • Game - Preload webbedgrass.mdx
      • Game - Preload wind.blp
      • Game - Preload yin yang aura.mdx
      • Game - Preload zwei_knight.mdx
      • Game - Preload zweihander_knight.blp
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
You forgot the quotation marks "..." at the beginning and the end of the preload function. Also, it will be better if you put all these preloads inside one .pld file and call them using Game - Preload all files listed in <filename path> Example:
Code:
function PreloadFiles takes nothing returns nothing

    call Preload( "Environment\\Sky\\DalaranSky\\DalaranSky.mdx" )
    call Preload( "environment\\Sky\\DalaranSky\\DalaranSky.blp" )
    call Preload( "Textures\\sun.blp" )
    call Preload( "ReplaceableTextures\\Weather\\RaysOfLight.blp" )
    call Preload( "ReplaceableTextures\\Selection\\SelectionCircleSmall.blp" )
    call Preload( "ReplaceableTextures\\Selection\\SelectionCircleMed.blp" )
    call Preload( "ReplaceableTextures\\CameraMasks\\White_mask.blp" )
    call Preload( "Splats\\SplatData.slk" )
    call PreloadEnd( 5.0 )

endfunction
 
Level 21
Joined
Mar 16, 2008
Messages
958
1) The GUI function automatically put quotation marks. I added them anyway. They still don't have any effect with quotation marks around the file names. It still lags.

GUI converted to JASS with quotation marks:
JASS:
    call Preload( "\"1-SilverhandTabernacle.mdx\"" )
GUI converted to JASS without quotation marks:
JASS:
    call Preload( "1-SilverhandTabernacle.mdx" )

  • Preload Models and Textures
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Game - Preload "1-SilverhandTabernacle.mdx"
      • Game - Preload "AllianceDozer.mdx"
      • Game - Preload "AlteracMarketPlace.mdx"
      • Game - Preload "AngelicWing.blp"
      • Game - Preload "ArcaneRuneblade.blp"
      • Game - Preload "Arch Angel Mikael.mdx"
      • Game - Preload "Arch Angel Mikael_Portrait.mdx"
      • Game - Preload "Archer Lordaeron_Light_Alter.mdx"
      • Game - Preload "Archer_Lordaeron_ArrowMissile.mdx"
      • Game - Preload "ArmoredFootman.mdx"
      • Game - Preload "ArmoredFootman_Portrait.mdx"
      • Game - Preload "Artisan.blp"
      • Game - Preload "Artisan.mdx"
      • Game - Preload "Ashbringer.mdx"
      • Game - Preload "Auriel's Blessing_Wings.mdx"
      • Game - Preload "Badass_Pegasus_Knight.mdx"
      • Game - Preload "BagOfPlums.blp"
      • Game - Preload "BagOfPlums.mdx"
      • Game - Preload "BagOfPlums_Portrait.mdx"
      • Game - Preload "Banana.mdx"
      • Game - Preload "BanditRider.mdx"
      • Game - Preload "Barracks.mdx"
      • Game - Preload "BattleCryTarget.mdx"
      • Game - Preload "BeltOfGiantStrength.mdx"
      • Game - Preload "BlackArmour.blp"
      • Game - Preload "BlackLegionEliteCavalrymanTCV2.mdx"
      • Game - Preload "BlackLegionRangerTCV2.mdx"
      • Game - Preload "Blessings.mdx"
      • Game - Preload "BloodElfMage.mdx"
      • Game - Preload "BloodKnightV1.02.mdx"
      • Game - Preload "BootsOfSpeed.mdx"
      • Game - Preload "BrillianceStaff.mdx"
      • Game - Preload "Butcher.mdx"
      • Game - Preload "Butcher_Portrait.mdx"
      • Game - Preload "CW_Gilneas_Buildings.BLP"
      • Game - Preload "CageWagon_TC.mdx"
      • Game - Preload "Calia_Menethil.mdx"
      • Game - Preload "Calia_Menethil_Portrait.mdx"
      • Game - Preload "Candle_Priest.mdx"
      • Game - Preload "Candle_Priest_portrait.mdx"
      • Game - Preload "CandyStick.blp"
      • Game - Preload "Cannon.mdx"
      • Game - Preload "Cannon_Portrait.mdx"
      • Game - Preload "Cannonball.mdx"
      • Game - Preload "Captain Lordaeron_HQ_TC_Unit.mdx"
      • Game - Preload "Captain Lordaeron_Portrait.mdx"
      • Game - Preload "ChampRallyAura006.mdx"
      • Game - Preload "ChaosCitadel.mdx"
      • Game - Preload "ChaosGraveyard1.3.mdx"
      • Game - Preload "CheeseItem.mdx"
      • Game - Preload "ChestOfBluePearlsItemV.122.mdx"
      • Game - Preload "ChromaticAbberation.blp"
      • Game - Preload "ChurchWC1.mdx"
      • Game - Preload "ClawsOfAttack.mdx"
      • Game - Preload "ClericMissile.mdx"
      • Game - Preload "ClericWC1.mdx"
      • Game - Preload "CloakOfShadows.mdx"
      • Game - Preload "ColdTower.mdx"
      • Game - Preload "ConjuringTower.mdx"
      • Game - Preload "CorruptedAshbringer.blp"
      • Game - Preload "CorruptedAshbringer.mdx"
      • Game - Preload "Crate_of_Fruits.mdx"
      • Game - Preload "CrimsonSkullOrderVeneratedGolem.mdx"
      • Game - Preload "CrownOfKings.mdx"
      • Game - Preload "Crusader.mdx"
      • Game - Preload "Crystal Shield.mdx"
      • Game - Preload "Curser.mdx"
      • Game - Preload "Curser_Portrait.mdx"
      • Game - Preload "DaggerOfEscape.mdx"
      • Game - Preload "DalaranMarshalPaladinFaceWhite.mdx"
      • Game - Preload "Dark Elven Archon.mdx"
      • Game - Preload "Dark Elven Archon_portrait.mdx"
      • Game - Preload "DarknessBomb.mdx"
      • Game - Preload "Darksword.mdx"
      • Game - Preload "DemonHunterNagaV1.00.mdx"
      • Game - Preload "DemonKingStatue.mdx"
      • Game - Preload "DemonObelisk.mdx"
      • Game - Preload "DemonPillar.mdx"
      • Game - Preload "DemonTower.mdx"
      • Game - Preload "DemonTownhall.MDX"
      • Game - Preload "DemonicGatewayDeathEffect.mdx"
      • Game - Preload "DemonicPortal.blp"
      • Game - Preload "Die_By_The_Sword_final.mdx"
      • Game - Preload "DiskOfScythes.mdx"
      • Game - Preload "DoomLord.mdx"
      • Game - Preload "DoomTower.mdx"
      • Game - Preload "Dragonling.mdx"
      • Game - Preload "Dragonling_Portrait.mdx"
      • Game - Preload "DustWind.blp"
      • Game - Preload "DwarvenTower.mdx"
      • Game - Preload "Effect_RiftPurple.mdx"
      • Game - Preload "Eldritch Covenant 503.mdx"
      • Game - Preload "EnchantedGoldmineDemonV1.01.mdx"
      • Game - Preload "EnchantedGoldmineNerubianV1.11.mdx"
      • Game - Preload "EnchantedGoldmineZulDrakV1.02.mdx"
      • Game - Preload "Engineer.blp"
      • Game - Preload "Engineer.mdx"
      • Game - Preload "EnochianAlphabet.blp"
      • Game - Preload "Face128x128.blp"
      • Game - Preload "FacelessOneCultist.mdx"
      • Game - Preload "FacelessOneCultist_portrait.mdx"
      • Game - Preload "FireTornado.mdx"
      • Game - Preload "Fire_Stream.mdx"
      • Game - Preload "Forsaken_Apothecary.mdx"
      • Game - Preload "Forsaken_Apothecary_Portrait.mdx"
      • Game - Preload "FreeCompanyMilitia_2_2.mdx"
      • Game - Preload "FurionV2.mdx"
      • Game - Preload "GauntletsOfOgrePower.mdx"
      • Game - Preload "GearAura.blp"
      • Game - Preload "GearAura.mdx"
      • Game - Preload "GeneralHeroGlow.mdx"
      • Game - Preload "GhostKey.mdx"
      • Game - Preload "GhostShip.mdx"
      • Game - Preload "GhostShip_Portrait.mdx"
      • Game - Preload "GilneasFarm.mdx"
      • Game - Preload "GilneasLumberMill.mdx"
      • Game - Preload "GilneasTower.mdx"
      • Game - Preload "GoldenPeasant.mdx"
      • Game - Preload "GondorFountainGuard.mdx"
      • Game - Preload "GrandMage.mdx"
      • Game - Preload "GrandMage_Portrait.mdx"
      • Game - Preload "GreaterWheelAngel.mdx"
      • Game - Preload "GrnVortexAura_Portrait.mdx"
      • Game - Preload "HQ Captain Morgan.mdx"
      • Game - Preload "HQ Treasure Chest.mdx"
      • Game - Preload "HandOfDeath.mdx"
      • Game - Preload "Heavens Gate Channel.mdx"
      • Game - Preload "Heavens Gate.mdx"
      • Game - Preload "HeroElfKing.blp"
      • Game - Preload "HeroRogue1.mdx"
      • Game - Preload "HeroVampireCombatant.blp"
      • Game - Preload "HeroVampireCombatant.mdx"
      • Game - Preload "HeroVampireCombatant_Portrait.mdx"
      • Game - Preload "Hero_ElectorCount.mdx"
      • Game - Preload "Hero_ElfKing.mdx"
      • Game - Preload "Hero_Thaurissan.mdx"
      • Game - Preload "HolyShield Seal.mdx"
      • Game - Preload "Holy_Fire_Slam.mdx"
      • Game - Preload "Holy_Spawn.mdx"
      • Game - Preload "Houses.mdx"
      • Game - Preload "Human Bishop.mdx"
      • Game - Preload "Human Bishop_portrait.mdx"
      • Game - Preload "Human Destroyer Zeppelin.mdx"
      • Game - Preload "Human Garrison.mdx"
      • Game - Preload "HumanBarracks.mdx"
      • Game - Preload "HumanBladeMaster.mdx"
      • Game - Preload "HumanBladeMaster_portrait.mdx"
      • Game - Preload "HumanChurch.mdx"
      • Game - Preload "HumanShipyard.mdx"
      • Game - Preload "HumanWizard.mdx"
      • Game - Preload "HumanWizard_Portrait.mdx"
      • Game - Preload "Hurricanwave.mdx"
      • Game - Preload "HydromancerKulTirasV1.06.mdx"
      • Game - Preload "Imp2.MDX"
      • Game - Preload "Imp2.blp"
      • Game - Preload "InquisitorDemonV1.00.mdx"
      • Game - Preload "Item_Gem_Amethyst.mdx"
      • Game - Preload "Item_Gem_Diamond.mdx"
      • Game - Preload "Item_Gem_Emerald.mdx"
      • Game - Preload "Item_Gem_Ruby.mdx"
      • Game - Preload "Item_Gem_Sapphire.mdx"
      • Game - Preload "Javeliner.mdx"
      • Game - Preload "Javeliner_portrait.mdx"
      • Game - Preload "Judgement.mdx"
      • Game - Preload "Judgment.blp"
      • Game - Preload "Judgment.mdx"
      • Game - Preload "Judgment_portrait.mdx"
      • Game - Preload "JuggernaughtIronHordeV1.03.mdx"
      • Game - Preload "King Terenas Menethil.mdx"
      • Game - Preload "King Varian Wrynn.mdx"
      • Game - Preload "King Varian Wrynn_Portrait.mdx"
      • Game - Preload "King.mdx"
      • Game - Preload "King_Portrait.mdx"
      • Game - Preload "Knight Lordaeron.mdx"
      • Game - Preload "Knight Lordaeron_Portrait.mdx"
      • Game - Preload "KobAltar_columns.mdx"
      • Game - Preload "KoboldBarracks01.mdx"
      • Game - Preload "KoboldDigger.mdx"
      • Game - Preload "KoboldSlave.mdx"
      • Game - Preload "KoboldSlave_Portrait.mdx"
      • Game - Preload "KultirasTradeHouseV1.mdx"
      • Game - Preload "Liberty Yellow.mdx"
      • Game - Preload "LionSong.BLP"
      • Game - Preload "LionSong.mdx"
      • Game - Preload "Lor'themar.mdx"
      • Game - Preload "Lor'themar_portrait.mdx"
      • Game - Preload "LordaeronAltar.mdx"
      • Game - Preload "LordaeronMageTower.mdx"
      • Game - Preload "LordaeronMonument.mdx"
      • Game - Preload "LordearonMarshalPaladinFaceWhite.mdx"
      • Game - Preload "LumberMillWC1.mdx"
      • Game - Preload "Magic Orb.mdx"
      • Game - Preload "MagicCircle_Devil.mdx"
      • Game - Preload "MagicShield.mdx"
      • Game - Preload "Malevolence Aura Green.mdx"
      • Game - Preload "Malthael.mdx"
      • Game - Preload "Malthael_Portrait.mdx"
      • Game - Preload "MantleOfIntelligence.mdx"
      • Game - Preload "MaskOfDeath.mdx"
      • Game - Preload "MassTeleportTo.mdx"
      • Game - Preload "Monk.mdx"
      • Game - Preload "Monk_portrait.mdx"
      • Game - Preload "Mounted Captain.mdx"
      • Game - Preload "Mounted Captain_Portrait.mdx"
      • Game - Preload "Nemesis.mdx"
      • Game - Preload "NightleTeamColor.mdx"
      • Game - Preload "NightmareSheep01.blp"
      • Game - Preload "NightmareSheep02.blp"
      • Game - Preload "NightmareSheep03.blp"
      • Game - Preload "NightmareSheep2.mdx"
      • Game - Preload "Ninja3.mdx"
      • Game - Preload "Ninja3_Portrait.mdx"
      • Game - Preload "NuclearExplosion5.mdx"
      • Game - Preload "Objects\InventoryItems\Radar\Radar.blp"
      • Game - Preload "Omni_DarkIron.blp"
      • Game - Preload "OrbFireX.mdx"
      • Game - Preload "OrbIceX.mdx"
      • Game - Preload "OrbLightX.mdx"
      • Game - Preload "OrbWaterX.mdx"
      • Game - Preload "OrcSelectionAura.mdx"
      • Game - Preload "PeasantFemale.mdx"
      • Game - Preload "PeasantFemale_Portrait.mdx"
      • Game - Preload "PeasantHouse.mdx"
      • Game - Preload "PigFarm3.mdx"
      • Game - Preload "PotionBlue.mdx"
      • Game - Preload "PotionGreen.mdx"
      • Game - Preload "PotionGreenSmall.mdx"
      • Game - Preload "Providence Aura Teal.mdx"
      • Game - Preload "PsionicGlow.blp"
      • Game - Preload "PurpleShine.blp"
      • Game - Preload "Questioner(Visored).mdx"
      • Game - Preload "Questioner.blp"
      • Game - Preload "RPGThief.blp"
      • Game - Preload "Radar.mdx"
      • Game - Preload "Radiant_SGuards.mdx"
      • Game - Preload "RagnarosHammer.blp"
      • Game - Preload "RagnarosSkin.blp"
      • Game - Preload "Renault Morgraine.mdx"
      • Game - Preload "Renault Morgraine_Portrait.mdx"
      • Game - Preload "Retribution.mdx"
      • Game - Preload "RoyalCrown.mdx"
      • Game - Preload "RoyalCrown_Portrait.mdx"
      • Game - Preload "RoyalOrb.mdx"
      • Game - Preload "RoyalOrb_black.mdx"
      • Game - Preload "RoyalOrb_blue.mdx"
      • Game - Preload "RoyalOrb_purp.mdx"
      • Game - Preload "RoyalOrb_teal.mdx"
      • Game - Preload "RoyalQueen.mdx"
      • Game - Preload "RoyalQueen_Portrait.mdx"
      • Game - Preload "RuneOrb.mdx"
      • Game - Preload "Runestone Battlestaff.mdx"
      • Game - Preload "Runestone Breastplate.mdx"
      • Game - Preload "Runestone Shield.mdx"
      • Game - Preload "Runestone Shield_Portrait.mdx"
      • Game - Preload "RunicAura.mdx"
      • Game - Preload "RupeeSkinTGA2.blp"
      • Game - Preload "SBGarrison.mdx"
      • Game - Preload "ScourgeShrine_ByxYours Trulyx.mdx"
      • Game - Preload "Scroll.mdx"
      • Game - Preload "ShadowHeart_face.mdx"
      • Game - Preload "ShadowOrbMissile v1.2.mdx"
      • Game - Preload "ShipyardDemonV2.00.mdx"
      • Game - Preload "ShuttingEye2.blp"
      • Game - Preload "SilverhandKnight.mdx"
      • Game - Preload "SlippersOfAgility.mdx"
      • Game - Preload "Soul Discharge.mdx"
      • Game - Preload "SpanishLancer.mdx"
      • Game - Preload "Spanish_Outrider.mdx"
      • Game - Preload "Spearman Lordaeron_Heavy_L.mdx"
      • Game - Preload "Spearman Lordaeron_Heavy_L_Portrait.mdx"
      • Game - Preload "SpellShieldAmulet.mdx"
      • Game - Preload "Spirit_Axe.mdx"
      • Game - Preload "Stable.mdx"
      • Game - Preload "SteamMilitia.mdx"
      • Game - Preload "SteamWorker.mdx"
      • Game - Preload "Storm_Sorcerer_Kul-Tiras_HD_TC.mdx"
      • Game - Preload "Stormbinder 08.mdx"
      • Game - Preload "StormwindArcaneVault.mdx"
      • Game - Preload "StormwindBlacksmith.mdx"
      • Game - Preload "StormwindKnight.mdx"
      • Game - Preload "StormwindLumberMill.mdx"
      • Game - Preload "StormwindMageTower.mdx"
      • Game - Preload "StormwindTower.mdx"
      • Game - Preload "StormwindTransportShip.mdx"
      • Game - Preload "Stranglehold.mdx"
      • Game - Preload "StromgardeKeep.mdx"
      • Game - Preload "StromgardeShipyard.mdx"
      • Game - Preload "StromgardeTradeHouse.mdx"
      • Game - Preload "StromgardeWizardSanctum.mdx"
      • Game - Preload "StromgardeWorkshop.mdx"
      • Game - Preload "Succorbenoth.mdx"
      • Game - Preload "Succorbenoth_Portrait.mdx"
      • Game - Preload "Sulfuras Hand Of Ragnaros.mdx"
      • Game - Preload "SuperLightningBall.mdx"
      • Game - Preload "TeamGlow00.blp"
      • Game - Preload "TemplarExemplar.mdx"
      • Game - Preload "TemplarJusticar.mdx"
      • Game - Preload "TemplarWarrior.mdx"
      • Game - Preload "Textures\ArmoredFootman.blp"
      • Game - Preload "Textures\BloodElfMage.blp"
      • Game - Preload "Textures\Kobold_shared_1.blp"
      • Game - Preload "Textures\Ninja3.blp"
      • Game - Preload "Textures\Pirates\PirateBattleShip\PirateBattleShip.blp"
      • Game - Preload "Textures\Rune1d.blp"
      • Game - Preload "Textures\ShadoFace.blp"
      • Game - Preload "The Mana Blade.mdx"
      • Game - Preload "TheAshbringer.blp"
      • Game - Preload "ThorasTrollbane.mdx"
      • Game - Preload "Tornado2.blp"
      • Game - Preload "Tornado2b.blp"
      • Game - Preload "TotemFelOrcV1.02.mdx"
      • Game - Preload "Towers.mdx"
      • Game - Preload "Treant.mdx"
      • Game - Preload "Treant_Portrait.mdx"
      • Game - Preload "Turret Fire.mdx"
      • Game - Preload "UnbrokenCultist.mdx"
      • Game - Preload "UnbrokenCultist_portrait.mdx"
      • Game - Preload "UndeadBannerFinal.mdx"
      • Game - Preload "Units\Rostrodle\Skirmisher\Skirmisher.blp"
      • Game - Preload "University.mdx"
      • Game - Preload "VFX4x4HolyFlame.blp"
      • Game - Preload "VFXsmoke_04.blp"
      • Game - Preload "VampireTracker.blp"
      • Game - Preload "VampireTracker.mdx"
      • Game - Preload "VampireTracker_bonearrow.mdx"
      • Game - Preload "VerdantGlow3.blp"
      • Game - Preload "VileKnight.mdx"
      • Game - Preload "Vuurtje.blp"
      • Game - Preload "WCIITownHall.mdx"
      • Game - Preload "Wagon.mdx"
      • Game - Preload "WarMill4.mdx"
      • Game - Preload "WightLight.mdx"
      • Game - Preload "WindCirclefaster.mdx"
      • Game - Preload "WitchOfNight.mdx"
      • Game - Preload "WitchOfNight_Portrait.mdx"
      • Game - Preload "WorgenGeneral.blp"
      • Game - Preload "WorgenHeroV2.mdx"
      • Game - Preload "WorgenHeroV2_Portrait.mdx"
      • Game - Preload "WotK Factory.mdx"
      • Game - Preload "Wraith_BlackRider.mdx"
      • Game - Preload "WyvernRed.MDX"
      • Game - Preload "WyvernRed_Portrait.MDX"
      • Game - Preload "XmasCandyStick.mdx"
      • Game - Preload "ZRupee.MDX"
      • Game - Preload "blackscull.blp"
      • Game - Preload "cold.blp"
      • Game - Preload "dalaranbirth.mdx"
      • Game - Preload "dragonpriest.blp"
      • Game - Preload "faerie.mdx"
      • Game - Preload "faerie_Portrait.mdx"
      • Game - Preload "justanotheraura.mdx"
      • Game - Preload "liz_pyro_new15noglow.mdx"
      • Game - Preload "nightle_scythe.blp"
      • Game - Preload "nightle_team_texture.blp"
      • Game - Preload "royal_orb_texture_black.blp"
      • Game - Preload "royal_orb_texture_blue.blp"
      • Game - Preload "royal_orb_texture_purp.blp"
      • Game - Preload "royal_orb_texture_teal.blp"
      • Game - Preload "s_HolymagicProjectile.mdx"
      • Game - Preload "star5tga.blp"
      • Game - Preload "stormwindfootman.mdx"
      • Game - Preload "stormwindfootman_Portrait.mdx"
      • Game - Preload "textures\CrossedSwordsBuff.blp"
      • Game - Preload "textures\Lightning1b.blp"
      • Game - Preload "textures\genie.blp"
      • Game - Preload "textures\wc1knight_helmet.blp"
      • Game - Preload "textures\webbedgrass.blp"
      • Game - Preload "treasurechestspecial.mdx"
      • Game - Preload "war3mapImported\AutumnGlow.blp"
      • Game - Preload "war3mapImported\HolyGlow.blp"
      • Game - Preload "war3mapImported\PirateBattleship.mdx"
      • Game - Preload "war3mapImported\ScHighComm 256.blp"
      • Game - Preload "war3mapImported\SwanKnight.mdx"
      • Game - Preload "war3mapImported\WaterExplosion.mdx"
      • Game - Preload "war3mapImported\dummy.mdx"
      • Game - Preload "war3mapImported\dust3.blp"
      • Game - Preload "war3mapImported\instantdummy.mdx"
      • Game - Preload "war3mapImported\largesmoke1.blp"
      • Game - Preload "war3mapImported\taiji2.blp"
      • Game - Preload "war3mapImported\taiji3.blp"
      • Game - Preload "war3mapImported\taiji5.blp"
      • Game - Preload "webbedgrass.mdx"
      • Game - Preload "wind.blp"
      • Game - Preload "yin yang aura.mdx"
      • Game - Preload "zwei_knight.mdx"
      • Game - Preload "zweihander_knight.blp"

2) What is a .pld file? How do I create one? Once I create the .pld file, do I import it to map via Asset Manager? Or do I add the text to the map script?

Does anyone know how this works?
 
Last edited:
One thing to note: the lag related to loading a unit isn't necessarily just from the asset file. The unit, as well as its abilities, sometimes need to be preloaded in the map themselves.

It might be worth taking a look at this resource and the thread for some information:

The bulk of the "logic" in that snippet is here:
JASS:
    private function DoUnitPreload takes integer id returns nothing
        static if LIBRARY_UnitRecycler then
            call RecycleUnitEx(CreateUnit(Player(PLAYER_NEUTRAL_PASSIVE), id, 0, 0, 270))
        else
            call RemoveUnit(CreateUnit(Player(PLAYER_NEUTRAL_PASSIVE), id, 0, 0, 0))
        endif
    endfunction

    private function DoItemPreload takes integer id returns nothing
        call RemoveItem(UnitAddItemById(S.dummy, id))
    endfunction

    private function DoAbilityPreload takes integer id returns boolean
        return UnitAddAbility(S.dummy, id) and UnitRemoveAbility(S.dummy, id)
    endfunction

    private function DoEffectPreload takes string path returns nothing
        call DestroyEffect(AddSpecialEffect(path, GetUnitX(S.dummy), GetUnitY(S.dummy)))
    endfunction

    private function DoSoundPreload takes string path returns nothing
        local sound s = CreateSound(path, false, false, false, 10, 10, "")
        call SetSoundVolume(s, 0)
        call StartSound(s)
        call KillSoundWhenDone(s)
        set s = null
    endfunction

Essentially, on map initialization (or after 0.00 seconds), you can spawn a unit-type on your map and then remove it. For abilities, you can add the ability to a dummy and then remove it immediately.

For things like this, I always recommend profiling with one isolated case first. First identify a unit (or model) that causes a lag spike when it is first loaded. Then try preloading that using the method above and see if it helps (it helped pretty dramatically for me a long time ago, anyway). :thumbs_up:
 
Top