[Solved]Multiplayer Desyncing

Place to get help with not working mods / modding interface.
Post Reply
Veden
Filter Inserter
Filter Inserter
Posts: 294
Joined: Wed Jul 13, 2016 3:54 pm
Contact:

[Solved]Multiplayer Desyncing

Post 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.
Attachments
Rampant_0.0.5.zip
(853.3 KiB) Downloaded 41 times

Veden
Filter Inserter
Filter Inserter
Posts: 294
Joined: Wed Jul 13, 2016 3:54 pm
Contact:

Re: [Solved]Multiplayer Desyncing

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

Post Reply

Return to “Modding help”