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.
[Solved]Multiplayer Desyncing
[Solved]Multiplayer Desyncing
- Attachments
-
- Rampant_0.0.5.zip
- (853.3 KiB) Downloaded 41 times
Re: [Solved]Multiplayer Desyncing
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.
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.