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

My Map Freezes

Status
Not open for further replies.
Level 8
Joined
Jan 8, 2013
Messages
348
Hello :) im a map maker and im doing a Naruto map.
Link here:

https://www.facebook.com/NarutoShippuudenAkatsukiWar
http://www.hiveworkshop.com/forums/map-development-202/nsaw-naruto-shippuuden-akatsuki-war-246458/

i was a month inactive due to reallife and after i worked on my map again it startet to freeze ingame at around 30 minutes. its not a fatal error. it starts to freeze and your not able to close wc3. your pc is lagging too hard. and windows wont allow you to close wc3. so i cant test my map long enough. and i dont know were it came from. do anyone know something about it? or knows a reason why the game freezes? i found this here: http://www.hiveworkshop.com/forums/world-editor-help-zone-98/list-warcraft-iii-crashes-194706/

but i dont realy understand the english in it xD
i dont get it why my map freezes. ONLY INGAME after 30 MINUTES .
hope someone can discuss with me about it. thanks :)
 
Level 8
Joined
Jan 8, 2013
Messages
348
soooo it doesnt lag more over time. i always check that i delete all leaks. and i deleted all leaks. thats not the reason. the map is playing normal. no lags. no spikes. we play normal 2v2, 3v3. players buy items. heros moveing. creeps spawns. spells gets used. kills. deaths.

after around 30 mins. bäääm freeze ;/
 
Level 8
Joined
Jan 8, 2013
Messages
348
i did it. theres nothing special. but we think its becasue of hero fights.
this thing here: Triggers that keep re-triggering themselves (issuing a "stop" order after an order-event takes place, for example, will infinitely re-trigger the event)

does this mean triggers that deactivates and instantly activates himself again can cause freezes?

like

  • Susanoo Madara Damage Take
    • Ereignisse
    • Bedingungen
      • (Damage source) Gleich Me
    • Aktionen
      • Auslöser - Turn off (This trigger)
      • Custom script: call DamageDetection(udg_Caster Me,GetTriggerUnit (),udg_Damage)
      • Auslöser - Turn on (This trigger)
 
Level 8
Joined
Jan 8, 2013
Messages
348
Wrda do you think its possible thats even every 0.03 seconds the game freezes?

i did that with one spell. every 0.03 sec the hero should moving to attack someone.
is that possible? or only at 0.00 secs?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Yaaa a Naruto Spellpax! What you are too young to get it? ...

Freezes are usually caused by an infinite loop in the triggers. The game has not actually frozen but is unable to advance as something is consuming an infinite amount of resources.

An example is bouncing two units between regions with "unit enters region" or picking up an item but immediately removing it in response to the pick up just to have it be picked up again.

I recommend you disable systems until you find out the one causing it. Then we can work on solving the problem.
 
Level 8
Joined
Jan 8, 2013
Messages
348
the problem is im form germany, my english isnt the best. so i better ask 2 times instead to understand it wrong -.-'

yeah i know the problems you just told me. with the bouncing between regions etc...

the problem is every system is activatet on the first second...
and i just tested with my friend, now it freezed at 40 minute. we did NOTHING, just standing there. it just freezed. yesterday it was 30 minute.

we didnt made actions or some other things. we played till 37 min and he wantet to go. told him to wait till 40 mins. at 41 minute it freezed. we just standed there for 4 minutes.. and i dont have a afk system..

i will post in 10 minutes something new ..

EDIT: just checked my Systems with periodic triggers..

9 Systems..

every 1.00 / 1.00 / 0.03 and 1.00 secs.| Multiboard (got more periodic triggers)
every 360 secs.| Unit Upgrade
every 0.03 secs.| Creep Spawn
every 0.03 secs.| Cam
every 0.80 secs.| Gold per Second
every 1.00 secs.| Kill System
every 60.00 secs.| River Items
every 0.03 secs.| Assist
every 1.00 secs.| Antiharras

i knowww you cant say exactly shit about it becasue you dont see the triggers but just think about it.... these triggers are from the first second activated. and only afte 30-40 minutes one of them starts to freeze the game? shouldnt they freeze it from start?

especially this systems are over 1 year old. i dont made them new. i have often the thing that triggers that worked for years are suddenly fucked up for no reason. the trigger is the same but suddenly they dont work anymore and i have to remake them. Like someone is secretly fucking up my triggers xD

I realy dont know why its freezing. i made a new terrain. then it startet to freeze. but all doodads are fine .... >.<
 
Last edited:
Level 8
Joined
Jan 8, 2013
Messages
348
@Solu9: like DR Super Good said:"Freezes are usually caused by an infinite loop in the trigger" So why should the fininite Loop freeze the game after 30-40 mins. the infinite loops like bouncing a unit between 2 regions will cause the freeze instantly. like the pickup item thing.

@polardude: the only triggers with the same event are for Heros and are with a unit gets damage or every 0.03(for loops, moving, dashing, dots, duration). so you want to tell me i should make 1 trigger with every 0.03 sec and put every loop for heros in there? so i dont have to much triggers with the loop event btw unit gets damage event?

or "A Unit starts the effect of an ability" i have for every hero atleast 4 of the events. sometimes even more and i have currently 21 heros. that means over 100 events with a unit starts the effect of an abillity. and i should make it all in one trigger with 10000000000000 booleans?
 
Level 12
Joined
Nov 13, 2010
Messages
254
if your skills go something like this Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
Findex Equal to (==) 1
Then - Actions
Trigger - Turn on Loop <gen>

then ofc the loob is enabled and anitially on is not

Else - Actions
Time - Every 0.03 seconds of game time
etc etc

then is find

and all skills this use A Unit starts the effect of an ability can be made in one trigger the same with other event like a unit dies, Unit - A unit Begins casting an ability , Unit - A unit Is attacked , Map initialization, Unit - A unit Finishes training a unit, Unit - A unit Finishes research, etc etc etc if you have many of the same event in can be done in 1 or 2 triggers
 
Level 8
Joined
Jan 8, 2013
Messages
348
i know that all triggers which use A unit starts the effect of an abillity etc. can make in one trigger.... but i dont think thats the reason.... or it is fact that this causes after xxx minutes a freeze?
 
The problem is as said above by Waterknight. It most likely has to do with an infinite loop. Check all of your triggers for a chance of this.

@Polardude.
No trigger ever runs the same time as another. They run one after the other.

It takes a lot more triggers than a few dozen to cause lag due to to many triggers running.

You can actually have a few 100 to a few 1000 before a problem may arise. (depending on the speed of these triggers)

@TO
If this lag occurs at 30 to 40 minutes it must be something dealing with that time period. It may be an area trigger that is first being run at that time. Or a bad model for a creature / effect. Isolate the triggers that happen at and around that time and post them here. Otherwise you should post your map.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Does it only affect multiplayer? Can you recreate it in singleplayer? If so then just remove all triggers (in a copy of the map) and check if it still occurs. If not then it must be something trigger related. Then selectively disable triggers until you find which one is causing it. Post that trigger here so we can spot any errors.
 
Level 8
Joined
Jan 8, 2013
Messages
348
could t be that its becasue of sfx? Too much sprite can consume tmporary memory...

soooo i have that on every lane creep hit, there will spawn a blood sfx on it. could that be?
i looke dover my systems and all otehr trigger. i didnt found an infinite loop...
 
Level 8
Joined
Jan 8, 2013
Messages
348
Important information!
Its appearing in singlepalyer too! i just tested it. i just standed there.... did nothing. so it have notghin todo with heros. looks like something just appears to often and the bottle is to full....

im going to deactivate the sfx per hits. perhaps thats the reason... im goign to edit this post in about 50 mins :D

EDIT!: Still freezes..... im goign to deactivate some triggers now and wait 50 mins if its freezing or not...
 
Last edited:
Level 8
Joined
Jan 8, 2013
Messages
348
yeah i know i didnt checked if i was the last comment haha sry ^^

at the moment im disabling all systems one after another..... its still freezing....
it takes so long to tets becasue i have to wait 50 mins ingame....
 

Wrda

Spell Reviewer
Level 28
Joined
Nov 18, 2012
Messages
1,993
Wrda do you think its possible thats even every 0.03 seconds the game freezes?

i did that with one spell. every 0.03 sec the hero should moving to attack someone.
is that possible? or only at 0.00 secs?
I was taling about the fact you should check if you had a trigger running every 0.00 secs with a moving action.
And obviously, the best way to know where the problem comes from is to isolate triggers, as difm said.
 
Level 8
Joined
Jan 8, 2013
Messages
348
Update: I deactivatet every system... after 60 mins it freezd.. fuck this shit.. -.-'
 
Level 8
Joined
Jan 8, 2013
Messages
348
theres no ability thats used.
there sust creeps thats getting spawned. multiboard gets upgraded. creeps gets upgraded. plyers getting gold....
im just standing there for fukcing 60 minutes and it still freezes
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
theres no ability thats used.
there sust creeps thats getting spawned. multiboard gets upgraded. creeps gets upgraded. plyers getting gold....
im just standing there for fukcing 60 minutes and it still freezes
Disable ALL TRIGGERS. If the crash/freeze still occurs it is not trigger related. If it stops then it is trigger related and you will need to find out what trigger is causing it.

Even if you do not think any trigger is causing it, they still can as some bugs are very obscure to find.

Until you have tested your map for the crash with absolutely no triggers in the map script (delete all triggers, use a copy of the map for this to prevent data loss) we cannot help you as we are not even sure where to look for it.
 
Level 8
Joined
Jan 8, 2013
Messages
348
i test it tomorrow with NO TRIGGERS ACTIVATET!
just asking some things here....
im using this map since.... let me guess.. 2008-2009
could this be the reason? that its kind of ... too old?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
that its kind of ... too old?
Data does not age, it will be the same if it was freshly created or at the end of time as long as it is still correct. WC3 is also not prone to any kind of year 2014 bug as far as I know of.

It may be possible that bugs have been introduced by "legacy" features. By this I mean features (triggers/objects) that were created long ago to implement a design that has since been removed and such feature either left in by mistake or adapted to suit the new design. Features that were left in my mistake could conflict with existing features while adapted features may have errors (not fully adapted/parts of old feature left in by mistake).

No computer is too old to run Warcraft 3 if thats what you ask :)
I seem to be having problems running WC3 on my Pentium 1 with no dedicated GPU... It is only >15 years old!

There are a lot of computers in-compatible or too old to run WC3.
Specifically any computer that does not support DirectX 8, the appropriate versions of Mac/Windows, the appropriate processor architecture etc. I am ignoring requirements such as RAM and HDD space but old computers would also lack that due to allocation limits.
 
I seem to be having problems running WC3 on my Pentium 1 with no dedicated GPU... It is only >15 years old!

There are a lot of computers in-compatible or too old to run WC3.
Specifically any computer that does not support DirectX 8, the appropriate versions of Mac/Windows, the appropriate processor architecture etc. I am ignoring requirements such as RAM and HDD space but old computers would also lack that due to allocation limits.

I just knew you were going to nitpick about this ;)
 
Level 8
Joined
Jan 8, 2013
Messages
348
okay i tested 73 minutes.... and no freeze!!!! i looked and thought which triggers could be causing the freeze..

i deactivated Unit Upgrade, Unit Spawn, Gold per second and the sfx per hit. becasue these were the only one that would doing something if im just standing there.

soooo becasue the freeze is randomly between 30 and 60 minutes. it have to do with something thats always not the same. so i would say the creeps spawn is falling out. becasue it would freeze with every x spawned wave. not not a random wave.

i dont think its the gold per second. becasue that would be fuckgin bullshit. this triggers is out too.

soo the unit upgrade is like the unit spawn. if its fucked up it would be every x unit upgrade and not random upgrades or not?

so the only trigger thats left is the sfx per hit. could be the trigger OR the model?
im activating every trigger again except sfx per hit....

see ya in 80 mins xD
 
Level 8
Joined
Jan 8, 2013
Messages
348
New update: after 92 mins no freeze.... thanks god :D
so its the sfx per hit...

but i dont know why its freezing....

heres the trigger:

  • Akatsuki Attack
    • Ereignisse
    • Bedingungen
    • Aktionen
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • 'IF'-Bedingungen
          • (Unit-type of (Damage source)) Gleich |cff4D2903Akatsuki Alliance|r
        • 'THEN'-Aktionen
          • Set Point_10 = (Position of (Triggering unit))
          • Set Point_11 = (Point_10 offset by 50.00 towards (Facing of (Triggering unit)) degrees)
          • Einheit - Create 1 Akatsuki Root for (Owner of (Damage source)) at Point_11 facing Kampagne - Quest-Verzögerung degrees
          • Animation - Play (Last created unit)'s birth animation
          • Einheit - Make (Last created unit) face Point_10 over 0.00 seconds
          • Einheit - Add a 1.00 second Standard expiration timer to (Last created unit)
          • Custom script: call RemoveLocation(udg_Point_10)
          • Custom script: call RemoveLocation(udg_Point_11)
        • 'ELSE'-Aktionen
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • 'IF'-Bedingungen
              • (Unit-type of (Damage source)) Gleich |cff4D2903Akatsuki Alliance|r [Super Creep]
            • 'THEN'-Aktionen
              • Set Point_10 = (Position of (Triggering unit))
              • Set Point_11 = (Point_10 offset by 50.00 towards (Facing of (Triggering unit)) degrees)
              • Einheit - Create 1 Akatsuki Root [super creep] for (Owner of (Damage source)) at Point_11 facing Kampagne - Quest-Verzögerung degrees
              • Animation - Play (Last created unit)'s birth animation
              • Einheit - Make (Last created unit) face Point_10 over 0.00 seconds
              • Einheit - Add a 1.00 second Standard expiration timer to (Last created unit)
              • Custom script: call RemoveLocation(udg_Point_10)
              • Custom script: call RemoveLocation(udg_Point_11)
            • 'ELSE'-Aktionen
nothing wrong with the code. so the problem i caused by the model or?


oh i just thought, it would be better if i trigger it in MUI.... just for sure....
and no points for the super creeps. not the same...
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Set Point_11 = (Point_10 offset by 50.00 towards (Facing of (Triggering unit)) degrees)
Einheit - Create 1 Akatsuki Root for (Owner of (Damage source)) at Point_11 facing Kampagne - Quest-Verzögerung degrees
Can cause a fatal error if performed near the field edge as it will try and make a unit outside the map bounds. Make sure your map has a suitably large borders around the field as if any unit touches the field edge there can be a crash under certain conditions (specifically fyling units are known to cause this).

You need to make sure that sufficient boarders around the field (map borders) exist and that any trigger that uses an offset cannot offset outside the field edges. This is normally done by testing if the point is inside the entire map rect.
 
Level 8
Joined
Jan 8, 2013
Messages
348
... theres no way the attacking sfx will go outide the map. thats not the reason it freezes..
becasue that will causing a fatal error... but my map is freezing...

my map is an AOS .. like dota.. the lane rangecreep from the dark side have only this effect. so the root will always appear when its attacking.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
That is not true as another trigger is needed to attach the events to that trigger or to execute that trigger. That trigger has no events and references damage response natives so it must be executed by something like a damage detection trigger or itself have events attached to it.

If events are attached without ever destroying the triggers involved there is a chance that the freeze is related to finite resource depletion or the game slows down so much that it appears frozen. It could also be an infinite loop where by a damage response triggers the damage detection system to create another damage response, etc.
 
Level 8
Joined
Jan 8, 2013
Messages
348
well let me tell you whats the event for the trigger....

Trigger 1:
  • Add New units
    • Ereignisse
      • Einheit - A unit enters (Playable map area)
    • Bedingungen
    • Aktionen
      • Auslöser - Add to Akatsuki Attack <gen> the event (Einheit - (Triggering unit) Nimmt Schaden)
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Won't those events stack and reach the maximum number of events for a trigger at some point?
Or at very least leak 1 event (and its handle index) per unit created.

Perhaps so many leaks occur that the freezing you experience is the result of page thrashing from the virtual memory system? This would explain why it happens at pretty random times but always after a while.
 
Level 8
Joined
Jan 8, 2013
Messages
348
oh shit.... i did this with 30 triggers..... from spells and items effects etc.
ow to fix it? i mean i have todo it..... can i take the died units out of the events? :eek:
in gui theres no way... is there a costum script to delete events from a trigger?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
You should only use 1 damage detection trigger and get that to run all the others. This instantly makes the problem a lot better as instead of N copies of events per unit leaking you have only 1 copy.

Good pre-made damage detection systems often come with periodic flushing to remove the events. The only way to remove the events is to destroy the trigger and rebuild it with only the in-use events. There is some crash related to doing this so best to use a ready made system.
 
Status
Not open for further replies.
Top