• 🏆 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!

Out of sync in lan

Status
Not open for further replies.
Level 19
Joined
Jul 2, 2011
Messages
2,162
Hows it everyone :goblin_boom: BOOOOM!

I've been having trouble with this set of code for a while now. It makes the heroes dance and get powered up, which works fine on single player, but on lan it causes an out of sync error in which every player is now playing an entirely different game.

:goblin_sleep: I've slept of this code and I've meditated over it:ogre_icwydt: but I've not been able to figure out what's causing the out of sync. Currently it's deactivated in my map because of this error which makes it unplayable

207680-albums8143-picture103630.bmp


I've added comments to the for/if loops that are too big and frankly unlikely to be causing problems.

Thanks for the help in advance:ogre_hurrhurr:
 
Ok, I can't be sure this is it but its a start.
1. Waits = bad. Use set timer instead.
2. You destroy a special effect twice ... not sure that does anything, but just don't. do it.
3. You should not create a region larger than the map. Just use (playable map) instead of (999999.0, 999999.0).

What is the event? Are there other triggers that might be effected by this trigger that cause the desync? This doesn't look like it should do that on its own.
 
Level 24
Joined
Aug 1, 2013
Messages
4,657
You destroy... last created lightning...
There was some lightning problems when they are destroyed and you try to do something on them again.

But in any case, can you upload the trigger in trigger tags?
You can copy the trigger as text ([ctrl] + [shift] + [c]) and then place them between TRIGGER tags in here.
 
Waits in multiplayer are impractical due to their exaggerated inaccuracy and can cause desyncs because waits aren't synced between computers. You also can't expect that TempPoint will be the same handle after a 4 second wait, so you need to move that before the wait. As Wietlol said, (Last created lightning) could being you much grievance. You'll want to use indexing or hashtables.

http://www.hiveworkshop.com/forums/spells-569/gui-dynamic-indexing-template-144325/

http://www.hiveworkshop.com/forums/...9/complete-beginners-guide-hashtables-197381/

http://www.hiveworkshop.com/forums/miscellaneous-tutorials-456/how-easily-post-triggers-163285/
 
Status
Not open for further replies.
Top