How to fix random desync problem?

Status
Not open for further replies.
Level 1
Joined
Jan 26, 2019
Messages
3
So i am creating map called Upgright completely in GUI. Desync is happening sometimes, but not always, close to 10 minute mark.

Outside of isolation, wich will take long time, what can you do to know what causing a desync? Is there some type of debug scripts that will print messeges about every trigger running at that time, so i can know what was executing before desync occured?

Causes of desync occurances that i know about:

  • GetLocalPlayer() - I dont have anything with this function.
  • Calling UnitName to make any action with unit. For example i had Trigger like this: Pick units with name different from "ChosenUnits" and kill them. This disconnects players, because names of units varies with client localization. Example would be: Murloc != Мурлок .
  • Too many Tiles. Not the issue, i have minimum tiles.
  • Corrupted imported files.
 
Level 1
Joined
Jan 26, 2019
Messages
3
I've solved this by removing Flying texts with ability names when they are cast. Seems like different localizations from player to player caused this one.
 
Level 1
Joined
Jan 26, 2019
Messages
3
Can you post the implementation you used for the texts?
I've deleted that already. I was showing chat message containing name of the unit died(which differs from client to client) to ALL players. What i've done to fix this, is picking each player and shoving the message individually for each player picked.

Dont mess up with localizations, kids! Make sure you have exactly same names as everybody else in the game, or if you want to just display those names, pick each player individually.
 
Status
Not open for further replies.
Top