• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] Loading initialization

Status
Not open for further replies.
Level 10
Joined
Feb 20, 2008
Messages
448
my problem when game start its lag cuz i preload lot effect and do alot things at initialization i wonder if there anyway i could remove control of evry1 and stopping the game while the int finish

I played a game 3 month ago, when the game int, evry1 cant do none and u see loading in middle of screen o_O

im not very familar with this i wonder if its possible o_O
if i pause all unit the game time continuing >.> and it seems noobly made maybe some1 already got a loading system for int ?

my int code
i dont think my int lag, maybe the preload causing most lag

  • Normal Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Hashtable - Create a hashtable
      • Set Ameratsu_Hash = (Last created hashtable)
      • Sound - Play war3mapImported_Herecomeback3 <gen>
      • -------- vvvvvvvvvvSPECIAL EFFECT INITIALIZATIONVVVVVV --------
      • Custom script: call Preload( "Abilities\\Weapons\\AncientProtectorMissile\\AncientProtectorMissile.mdl")
      • Custom script: call Preload("Abilities\\Spells\\Human\\FlakCannons\\FlakTarget.mdl")
      • Custom script: call Preload("Objects\\Spawnmodels\\Other\\NeutralBuildingExplosion\\NeutralBuildingExplosion.mdl")
      • Custom script: call Preload( "Abilities\\Spells\\Human\\Thunderclap\\ThunderClapCaster.mdl")
      • Custom script: call Preload( "Abilities\\Spells\\Undead\\FreezingBreath\\FreezingBreathMissile.mdl")
      • Custom script: call Preload("Abilities\\Weapons\\ZigguratFrostMissile\\ZigguratFrostMissile.mdl")
      • -------- ----------------------------------------------------------------------------------- --------
      • Custom script: call Preload( "NuclearExplosion.mdl")
      • Custom script: call Preload("NuclearExplosionBlue2.mdl")
      • Custom script: call Preload("NewMassiveEX.mdl")
      • Custom script: call Preload( "!Amaterasu.mdl")
      • Custom script: call Preload("Units\\NightElf\\Wisp\\WispExplode.mdl")
      • Custom script: call Preload("KatonItachi.mdl")
      • Custom script: call Preload("Abilities\\Spells\\Items\\AIlb\\AIlbSpecialArt.mdl")
      • Custom script: call Preload("Abilities\\Weapons\\Bolt\\BoltImpact.mdl")
      • Custom script: call Preload("ApocalypseCowStomp.mdl")
      • -------- NARUTO INT STATSVVVVVVVVVVVVVVVV --------
      • Set unit31 = Naruto 0019 <gen>
      • Set reals01[1] = 1.00
      • Set reals01[2] = 1.00
      • Set reals02[1] = 1.00
      • -------- NARUTO INT STATS^^^^^^^^^^^^^^ --------
      • -------- HEAL INT VALUE OF SAKURAvvvvvvvvvvvvv --------
      • Set SAKR[1] = 1.00
      • -------- HEAL INT VALUE OF SAKURA^^^^^^^^^^^^^^ --------
      • Quest - Create a Required quest titled Credits with the description |cc6A5ACDDTerrain C..., using icon path ReplaceableTextures\CommandButtons\BTNNarutoKyubi.blp
      • Quest - Create a Optional quest titled Prologue with the description Welcome in the worl..., using icon path ReplaceableTextures\CommandButtons\BTNNarutoKyubi.blp
      • Quest - Create a Optional quest titled HELP? COME HERE with the description What you need 2 kno..., using icon path ReplaceableTextures\CommandButtons\BTNNarutoKyubi.blp
      • Game - Turn the day/night cycle On
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Set LeakPoint[(Integer A)] = ((Player((Integer A))) start location)
      • Melee Game - Use melee time of day (for all players)
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Camera - Set (Player((Integer A)))'s camera Height Offset to 800.00 over 0.00 seconds
      • For each (Integer A) from 1 to 12, do (Actions)
        • Loop - Actions
          • Camera - Pan camera for (Player((Integer A))) to LeakPoint[(Integer A)] over 0.00 seconds
          • Custom script: call RemoveLocation(udg_LeakPoint[GetForLoopIndexA( )])
      • Wait 20.00 seconds
      • Game - Display to (All players) the text: CAMERA SYSTEM Exemp...
      • Custom script: call DestroyTrigger(GetTriggeringTrigger())
 
Last edited:
Level 10
Joined
Feb 20, 2008
Messages
448
The cinematic is a good idea!!if i could make a little cinematic maybe it would help!!.....but my cinematic fail O_O lol any suggestion code of cinematic ? never had time to learn cinematic o_O... sorry for my sentences my grammar fail lol...

Edit 2 : thats what i made O_O i think it suck.... any way to make it better ?


  • Loading Helper
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Unit - Pause all units
      • Cinematic - Disable user control for (All players)
      • Sound - Set music volume to 100.00%
      • Cinematic - Turn cinematic mode On for (All players)
      • Cinematic - Send transmission to (All players) from HostUnit named Jinchuriki_God: Play Hint <gen> and display LOADING HELPER 5 S.... Modify duration: Add 5.00 seconds and Don't wait
      • Wait 5.00 seconds
      • Cinematic - Enable user control for (All players)
      • Unit - Unpause all units
      • Cinematic - Turn cinematic mode Off for (All players)
 
Last edited:
Status
Not open for further replies.
Top