- Joined
- Feb 1, 2019
- Messages
- 400
I am currently working on this map : Island Troll Tribes
github Link : island-troll-tribes/island-troll-tribes
Since 1st december, we lost our bot and got alot of desync issue, we "fixed" some of them, blizzard update fixed others, from time to time, 1 player still desync, but recently, on the latest version I made, I got issue where half/every player in the game just desync, happens on 1 game out of 3.
Desync happens "randomly", they can happen at 5, 10, 17, 23min into the game, but it doesn't seem really consistent. I watched some replays and didn't find any leads.
Last version without much desync, is the Beta 34, it was compiled before last blizzard update, to make sure issue comes from the update or my code, I'll have to revert the current version(Beta 36) and re-compile, good thing I use git, will do that when I have the time to test with players.
I've read some Hive thread about desync, here's some information I got out of it and compared with my issues :
-Mac user can be the only one to desync.
-We got custom constant & interface, haven't tried to reset them yet.
-We got alot of items spawning randomly on the map.
-I got lot of custom models, don't know if it can cause a desync.
There are several uses of GetLocalPlayer(), I kinda trust the guy who made those, but I'll share a few just in case:
I also have 2 short replays, one desynced whole game at 4:22m, the others desynced 3 players at 4:30m, I didn't desync on the second one. I got more replays, but they're longer, like 17 or 30min.
So I am asking for clues, at this moment I am kinda lost, I need player to test and try to find a pattern, feels bad to fill a lobby just to look for crashes.
github Link : island-troll-tribes/island-troll-tribes
Since 1st december, we lost our bot and got alot of desync issue, we "fixed" some of them, blizzard update fixed others, from time to time, 1 player still desync, but recently, on the latest version I made, I got issue where half/every player in the game just desync, happens on 1 game out of 3.
Desync happens "randomly", they can happen at 5, 10, 17, 23min into the game, but it doesn't seem really consistent. I watched some replays and didn't find any leads.
Last version without much desync, is the Beta 34, it was compiled before last blizzard update, to make sure issue comes from the update or my code, I'll have to revert the current version(Beta 36) and re-compile, good thing I use git, will do that when I have the time to test with players.
I've read some Hive thread about desync, here's some information I got out of it and compared with my issues :
-Mac user can be the only one to desync.
-We got custom constant & interface, haven't tried to reset them yet.
-We got alot of items spawning randomly on the map.
-I got lot of custom models, don't know if it can cause a desync.
There are several uses of GetLocalPlayer(), I kinda trust the guy who made those, but I'll share a few just in case:
JASS:
public function ZoomSetCamera takes integer i returns nothing
if GetLocalPlayer()==Player(i) then
call SetCameraField(CAMERA_FIELD_ZOFFSET,ZOOM_DISTANCE[i],1)
call SetCameraField(CAMERA_FIELD_FARZ,5000,0)
endif
endfunction
Wurst:
package SimError
sound error
public function simError(player forPlayer, string msg)
let redMsg = "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n|cffffcc00" + msg +"|r"
if GetLocalPlayer() == forPlayer
ClearTextMessages()
DisplayTimedTextToPlayer(forPlayer, 0.52, 0.96, 5.00, redMsg)
StartSound(error)
init
error = CreateSoundFromLabel("InterfaceError", false, false, false, 10, 10)
I also have 2 short replays, one desynced whole game at 4:22m, the others desynced 3 players at 4:30m, I didn't desync on the second one. I got more replays, but they're longer, like 17 or 30min.
So I am asking for clues, at this moment I am kinda lost, I need player to test and try to find a pattern, feels bad to fill a lobby just to look for crashes.