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

Desync problem

Status
Not open for further replies.
Level 5
Joined
Jan 6, 2006
Messages
106
I have a problem here which some people complained of minor server splits at the initialization of the game in my map. I've run through the whole script myself and found no hint of anything that might cause desyncs. Well, maybe except the lines below in my initialization trigger.

JASS:
    call SetPlayerController(Player(12),MAP_CONTROL_USER)
    call SetPlayerController(Player(13),MAP_CONTROL_USER)
    call SetPlayerController(Player(14),MAP_CONTROL_USER)
    call SetPlayerController(Player(15),MAP_CONTROL_USER)
    call SetPlayerTeam(Player(12),0)
    call SetPlayerTeam(Player(0),0)
    call SetPlayerTeam(Player(4),0)
    call SetPlayerTeam(Player(8),0)
    call SetPlayerTeam(Player(13),1)
    call SetPlayerTeam(Player(1),1)
    call SetPlayerTeam(Player(5),1)
    call SetPlayerTeam(Player(9),1)
    call SetPlayerTeam(Player(14),2)
    call SetPlayerTeam(Player(2),2)
    call SetPlayerTeam(Player(6),2)
    call SetPlayerTeam(Player(10),2)
    call SetPlayerTeam(Player(15),3)
    call SetPlayerTeam(Player(3),3)
    call SetPlayerTeam(Player(7),3)
    call SetPlayerTeam(Player(11),3)

Is it probable for those lines to result in desyncs and hence cause others to be forced to disconnect from the game?

Thanks in advance.
 
Level 6
Joined
Sep 5, 2007
Messages
264
It may cause problems with the players 12-15. By memory, the "neutral" slots can't be assigned MAP_CONTROL_USER. I could be wrong.

Also, you should set the teams in the "forces" tab in scenario options (except players 12-15 if I'm wrong in the above statement).

There may be other things in there, but that's all I can see. As far as I can tell, this shouldn't desync anyways. There may be issues, but not in the network traffic side of things.
 
Status
Not open for further replies.
Top