Why do players drop?

Status
Not open for further replies.
Level 4
Joined
Aug 12, 2004
Messages
76
I've had this working for quite a while now, so I don't personally think it's the same trigger but I thought I may as well get some opinions.

So probably the problem starts with either Gate Destroy in Waves folder

Or

Attack Spawn with special effects


Or

It has to do with the for-loop which was working fine just until recently. It drops as soon as one of the following triggers (i think) runs.

Edit: It also has some problems in other wave sections as well.
I'm not sure whether it's the sheer amount of trigger actions or it's something else.


Edit 2: I don't know, sometimes it drops even when the wait timer is taken out. Sometimes it drops with wait timer in. Sometimes it drops for no reason. Is it overloading the players or what?
 

Attachments

  • Crusade 0.1.5.w3x
    687.4 KB · Views: 41
Last edited:
Level 11
Joined
Mar 31, 2009
Messages
732
  • Actions
    • -------- Void Walkers-------
    • Set tempSpawn = (Center of Spawn_Undead_Weak[(Random integer number between 0 and 2)])
    • Unit - Create 1 Greater Voidwalker for Player 10 (Light Blue) at tempSpawn facing Default building facing degrees
    • Set Reward_Unit[0] = (Last created unit)
    • Trigger - Add to Reward <gen> the event (Unit - (Last created unit) Dies)
    • Wait 2.00 seconds
After this wait you continue to reference udg_tempSpawn without resetting it. Change it to a local.
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
blah900 said:
but I thought I may as well get some opinions.

The World Editor doesn't operate on opinions.

blah900 said:
Sometimes it drops for no reason

I don't remember the last time something happened without any explanation behind it.

Dude you have a massive abuse of Waits. I'm not even going to look at this because you use waits religiously. It would take forever to properly debug this.
 
Level 9
Joined
Aug 21, 2008
Messages
533
I don't remember the last time something happened without any explanation behind it.

13,75 billion years ago, its called "big bang".



Seriously , check out the tutorial section and learn propper coding. Then such bugs wont happen again. And you will be even able to make everything faster, so the investment in reading tutorials is always a great idea:thumbs_up:
 
Level 4
Joined
Aug 12, 2004
Messages
76
13,75 billion years ago, its called "big bang".



Seriously , check out the tutorial section and learn propper coding. Then such bugs wont happen again. And you will be even able to make everything faster, so the investment in reading tutorials is always a great idea:thumbs_up:

Well actually, I've read through every single tutorial available on GuI and most of Jass tutorials, probably just didn't retain enough information. Anyhow,

thanks Teelo, let me try resetting the tempSpawn every time. I thought it would work since tempSpawn isn't used in any other trigger and therefore technically wouldn't be reset for any other reason then after the tempSpawn being removed.

Also I guess I should fix the wait timer to countdown timer using Jass to see if it fixes up anything.

Thanks for the advice.
 
Level 4
Joined
Aug 12, 2004
Messages
76
okay so with people's advice, I made a major overhaul of my map using mostly jass to get rid of many things.

However I still have some wait functions in there but not as intensely as before.

However there are still instances where players drop. This happens mostly in Wave 3 in Waves folder.

Is there a reason for this?
 

Attachments

  • Crusade 0.2.0.w3x
    709.4 KB · Views: 42
Level 11
Joined
Mar 31, 2009
Messages
732
Haven't looked at it, but it is most likely still the waits.
You should instead use
JASS:
function function_name takes nothing returns nothing
   //Continue it here
endfunction

TimerStart(CreateTimer(), 1.00, false, function function_name)

Waits are unreliable.
 
Status
Not open for further replies.
Top