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

Constant lag and custom script error >.<

Status
Not open for further replies.
Level 23
Joined
Nov 29, 2006
Messages
2,482
Hi folks. As the topic says im having difficulties with my defense map. It appears it has a constant lag about every 2:rd second, not too big though, but enough to be noticed.

It maybe is an issue from computer to computer, since I tried with my other computer and that one was almost lag free...

Is there any way to remove or "reduce" this lag. I've checked all my triggers with "leak check" and there are no leaks.

If you need too see triggers, any kind who could possibly be the main cause of the lag Im willing to post it.

One more thing though. The only leak I could think of is "Local variable not removed." (that cant be the lag issue can it?)
Anyway, its strange that my world editor is denying my custom scripts. I only get error when trying to save the map.

Two questions to answer. Is that too much?
Regards Eccho
 
Level 23
Joined
Nov 29, 2006
Messages
2,482
I don't have any events of that type...

But I do have triggered spells which is run almost like that.

Example:
Weather Command Update
Events
Conditions
A_wc_stop Equal to False
Actions
Set A_wc_effect_integer = (A_wc_effect_integer + 1)
Set A_wc_point = (Position of A_wc_caster)
Set A_wc_point = (A_wc_point offset by (400.00, -400.00))
Set A_wc_region = (Region centered at A_wc_point with size (400.00, 400.00))
Environment - Create at A_wc_region the weather effect Northrend Blizzard
Set A_wc_effect_snow[A_wc_effect_integer] = (Last created weather effect)
Environment - Create at A_wc_region the weather effect Wind (Heavy)
Set A_wc_effect_wind[A_wc_effect_integer] = (Last created weather effect)
Environment - Turn A_wc_effect_snow[A_wc_effect_integer] On
Environment - Turn A_wc_effect_wind[A_wc_effect_integer] On
Wait 0.50 seconds
Environment - Remove A_wc_effect_snow[(A_wc_effect_integer - 1)]
Environment - Remove A_wc_effect_wind[(A_wc_effect_integer - 1)]
Trigger - Run (This trigger) (checking conditions)

But these are not enabled unless u cast the spell.
The minor lag are still there no matter the hero cast spells or not.

(btw who do show my triggers as you did??)
 
Status
Not open for further replies.
Top