Page 1 of 1

[Solved]Multiplayer Desyncing

Posted: Thu Aug 25, 2016 5:03 pm
by Veden
I'm looking for some assistance at understanding and fixing the desync issue that seems to keep happening when issuing commands to entities or unit groups.

in the attached file the two following commands:
aiAttack.squadAttackLocation,
aiBuilding.formSquads

consistently desync when the command is issued. However, aiAttack.squadAttackPlayer seems to work just fine.

Re: [Solved]Multiplayer Desyncing

Posted: Thu Aug 25, 2016 10:16 pm
by Veden
It turns out that I had a local reference declared at the top of the module to math.random (i.e.)

local mRandom = math.random

This was causing different values to be generated between the clients and the changes didn't manifest until the command was issued which resulted in a desync.