Fatal Error problems.

SkyXyden

New Member
Reaction score
3
Theres someone wrong with my map. Whenever I fight this particular boss, mostly likely during the time the boss casted a trigger-based spell. It will cause a fatal error. It was fine before I added additional creep spawn to aid the boss. I also realise the fatal error happen near the area where the boss's creep spawn region but that my observation.



The error code might tell us something or two I don't know, I'm not pro in this field >.>

So.. can anyone help out? People keep getting this bug when I host the game.
 

saw792

Is known to say things. That is all.
Reaction score
280
Can you post the triggers for the boss's spells and the creep spawn trigger?
 

SkyXyden

New Member
Reaction score
3
Supposed bugged skill, the boss will disappear and creates 5 copies of him around the real one(hidden), after 3 seconds it will cast a powerful froze attack in the circle.

Code:
Frozen Lord Illusion Strike
    Events
        Time - Every 40.00 seconds of game time
    Conditions
    Actions
        Game - Display to (All players) for 3.00 seconds the text: |cff995500Frozen He...
        Special Effect - Create a special effect attached to the origin of Boss[6] using Abilities\Spells\Orc\MirrorImage\MirrorImageCaster.mdl
        Unit - Hide Boss[6]
        Unit - Pause Boss[6]
        Unit - Create 1 Frozen Hell Overlord for Player 7 (Green) at ((Position of Boss[6]) offset by 1000.00 towards 0.00 degrees) facing (Position of Boss[6])
        Unit - Turn collision for (Last created unit) Off
        Unit - Add Ice Beam (Frozen Over lord EFX) to (Last created unit)
        Unit - Order (Last created unit) to Undead Crypt Lord - Impale (Position of Boss[6])
        Unit - Change color of (Last created unit) to Light Blue
        Unit Group - Add (Last created unit) to Frozen_Lords
        Unit - Create 1 Frozen Hell Overlord for Player 7 (Green) at ((Position of Boss[6]) offset by 1000.00 towards 60.00 degrees) facing (Position of Boss[6])
        Unit - Add Ice Beam (Frozen Over lord EFX) to (Last created unit)
        Unit - Order (Last created unit) to Undead Crypt Lord - Impale (Position of Boss[6])
        Unit - Change color of (Last created unit) to Light Blue
        Unit - Turn collision for (Last created unit) Off
        Unit Group - Add (Last created unit) to Frozen_Lords
        Unit - Create 1 Frozen Hell Overlord for Player 7 (Green) at ((Position of Boss[6]) offset by 1000.00 towards 120.00 degrees) facing (Position of Boss[6])
        Unit - Turn collision for (Last created unit) Off
        Unit - Add Ice Beam (Frozen Over lord EFX) to (Last created unit)
        Unit - Order (Last created unit) to Undead Crypt Lord - Impale (Position of Boss[6])
        Unit - Change color of (Last created unit) to Light Blue
        Unit Group - Add (Last created unit) to Frozen_Lords
        Unit - Create 1 Frozen Hell Overlord for Player 7 (Green) at ((Position of Boss[6]) offset by 1000.00 towards 180.00 degrees) facing (Position of Boss[6])
        Unit - Turn collision for (Last created unit) Off
        Unit - Add Ice Beam (Frozen Over lord EFX) to (Last created unit)
        Unit - Order (Last created unit) to Undead Crypt Lord - Impale (Position of Boss[6])
        Unit - Change color of (Last created unit) to Light Blue
        Unit Group - Add (Last created unit) to Frozen_Lords
        Unit - Create 1 Frozen Hell Overlord for Player 7 (Green) at ((Position of Boss[6]) offset by 1000.00 towards 240.00 degrees) facing (Position of Boss[6])
        Unit - Turn collision for (Last created unit) Off
        Unit - Add Ice Beam (Frozen Over lord EFX) to (Last created unit)
        Unit - Order (Last created unit) to Undead Crypt Lord - Impale (Position of Boss[6])
        Unit - Change color of (Last created unit) to Light Blue
        Unit Group - Add (Last created unit) to Frozen_Lords
        Unit - Create 1 Frozen Hell Overlord for Player 7 (Green) at ((Position of Boss[6]) offset by 1000.00 towards 300.00 degrees) facing (Position of Boss[6])
        Unit - Turn collision for (Last created unit) Off
        Unit - Add Ice Beam (Frozen Over lord EFX) to (Last created unit)
        Unit - Order (Last created unit) to Undead Crypt Lord - Impale (Position of Boss[6])
        Unit - Change color of (Last created unit) to Light Blue
        Unit Group - Add (Last created unit) to Frozen_Lords
        Wait 3.00 seconds
        Game - Display to (All players) for 4.00 seconds the text: |cff995500Frozen He...
        Wait 2.00 seconds
        Unit - Unhide Boss[6]
        Unit - Unpause Boss[6]
        Unit Group - Pick every unit in Frozen_Lords and do (Unit - Remove (Picked unit) from the game)

This the trigger for the single line of beam launched by a copy. But its just added animation.

Code:
Freeze of Death EFX
    Events
        Unit - A unit Begins channeling an ability
    Conditions
        (Ability being cast) Equal to Ice Beam (Frozen Over lord EFX)
    Actions
        Set temp_point[4] = ((Position of (Triggering unit)) offset by 250.00 towards ((Facing of (Triggering unit)) - 0.00) degrees)
        Special Effect - Create a special effect at temp_point[4] using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Set temp_point[3] = ((Position of (Triggering unit)) offset by 500.00 towards (Facing of (Triggering unit)) degrees)
        Special Effect - Create a special effect at temp_point[3] using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
        Set temp_point[1] = ((Position of (Triggering unit)) offset by 800.00 towards ((Facing of (Triggering unit)) + 0.00) degrees)
        Special Effect - Create a special effect at temp_point[1] using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl

Creep spawning

Code:
Gate Spawn TD 1
    Events
        Time - Every 4.00 seconds of game time
    Conditions
        (Number of living Berdark units owned by Player 8 (Pink)) Less than 15
    Actions
        Unit - Create 3 Berdark for Player 8 (Pink) at (Center of Malice Dark Lord Throne <gen>) facing Default building facing degrees
        Unit Group - Pick every unit in (Last created unit group) and do (Unit - Change color of (Picked unit) to Black)
        Unit Group - Order (Last created unit group) to Attack-Move To (Center of Left Lane 2 <gen>)
Code:
Gate Spawn TD 2
    Events
        Time - Every 6.00 seconds of game time
    Conditions
        (Number of living Soul Taker units owned by Player 8 (Pink)) Less than 15
    Actions
        Unit - Create 3 Soul Taker for Player 8 (Pink) at (Center of Malice Dark Lord Throne <gen>) facing Default building facing degrees
        Unit Group - Order (Last created unit group) to Attack-Move To (Center of Left Lane 2 <gen>)

Theres 3 more but they are the same except the periodic timming..
 

Exide

I am amazingly focused right now!
Reaction score
448
Your triggers leak a lot.
You should clean that up! :p
-Search for a memory leak tutorial here, and you'll find what you need.
 

SkyXyden

New Member
Reaction score
3
Hmm... Okay so I tried cleaning 1 spawn trigger up.

Code:
Gate Spawn TD 1
    Events
        Time - Every 4.00 seconds of game time
    Conditions
        (Number of living Berdark units owned by Player 8 (Pink)) Less than 15
    Actions
        Set Temp_Point = (Center of Malice Dark Lord Throne <gen>)
        Unit - Create 3 Berdark for Player 8 (Pink) at Temp_Point facing Default building facing degrees
        Set Temp_Group = (Last created unit group)
        Unit Group - Pick every unit in Temp_Group and do (Unit - Change color of (Picked unit) to Black)
        Unit Group - Order Temp_Group to Attack-Move To (Center of Left Lane 2 <gen>)
        Custom script:   call DestroyGroup (udg_Temp_Group)
        Custom script:   call RemoveLocation (udg_Temp_Point)

Hows it? Is there any leaks?
 

Artificial

Without Intelligence
Reaction score
326
Code:
Unit Group - Order Temp_Group to Attack-Move To (Center of Left Lane 2 <gen>)
->
Code:
Set Temp_Point2 = (Center of Left Lane 2 <gen>)
Unit Group - Order Temp_Group to Attack-Move To Temp_Point2
Custom script:   call RemoveLocation(udg_Temp_Point2)

Edit: Oh, btw. Just realized that you shouldn't destroy any group set to Last created unit group (it's kinda like with All players).

> You should 'set Temp_Group' to a value, not (Last created unit group).
What's wrong with setting it to Last created group? o_O Last created group is the only way to refer to the 3 created Berdarks. And you save one function call that way. \,,/
 

Exide

I am amazingly focused right now!
Reaction score
448
Code:
Gate Spawn TD 1
    Events
        Time - Every 4.00 seconds of game time
    Conditions
        (Number of living Berdark units owned by Player 8 (Pink)) Less than 15
    Actions
        Set Temp_Point = (Center of Malice Dark Lord Throne <gen>)
        Unit - Create 3 Berdark for Player 8 (Pink) at Temp_Point facing Default building facing degrees
        [COLOR="Red"]Set Temp_Group = (Last created unit group)
        Unit Group - Pick every unit in Temp_Group and do (Unit - Change color of (Picked unit) to Black)[/COLOR]
        Unit Group - Order Temp_Group to [COLOR="Red"]Attack-Move To (Center of Left Lane 2 <gen>)[/COLOR]
        Custom script:   call DestroyGroup (udg_Temp_Group)
        Custom script:   call RemoveLocation (udg_Temp_Point)

Leaks and error colored in red.
You should 'set Temp_Group' to a value, not (Last created unit group).
For example:

Code:
Set Temp_Group = (All units in (Playable Map))
 

SkyXyden

New Member
Reaction score
3
Hey thanks for the info about the leaks, but does this really helps my fatal error problem?
 

Exide

I am amazingly focused right now!
Reaction score
448
It might.
Usually leaks only lag the game, but they might cause server splits as well.
Usually faulty JASS codes are the cause of crashes..
 

SkyXyden

New Member
Reaction score
3
It might.
Usually leaks only lag the game, but they might cause server splits as well.
Usually faulty JASS codes are the cause of crashes..

A question here. I tried setting variable unit to (entering unit), but it seems theres an error. Can anyone help?

Code:
Gate of TD Creep Push
    Events
        Unit - A unit enters Left Lane Malice <gen>
        Unit - A unit enters Right Lane Malice <gen>
        Unit - A unit enters Left Lane 2 <gen>
        Unit - A unit enters Right Lane 2 <gen>
        Unit - A unit enters Mid Path Region <gen>
        Unit - A unit enters Fort Left <gen>
        Unit - A unit enters Btm Right Entrance <gen>
        Unit - A unit enters BR Check Point <gen>
        Unit - A unit enters BL Check Point <gen>
        Unit - A unit enters Main Fort Entrance <gen>
        Unit - A unit enters Main Fort Check Point <gen>
        Unit - A unit enters Middle Portal <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 8 (Pink)
        ((Entering unit) is A Hero) Not equal to True
    Actions
        Set Temp_Point = (Center of Heroic Ground <gen>)
        Set Temp_Unit = (Entering unit)
        Unit - Order (Entering unit) to Attack-Move To Temp_Point
        Custom script:   call RemoveLocation (udg_Temp_Point)
        Custom script:   call RemoveLocation (udg_Temp_Unit)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top