91 | | An out of sync error is caused by the AI if it sends different commands to the simulation on different clients or even on the same client when running the game multiple times. You can add some debugging code to binaries/data/mods/public/simulation/helpers/Commands.js in the function ProcessCommand to check if this is happening. When using a replay you know which player number is the AI player and can filter the output like that: |
| 91 | An out of sync error is caused by the AI if the following conditions are both true: |
| 92 | 1. The AI sends different commands to the simulation on different clients or even on the same client when running the game multiple times. |
| 93 | 1. The simulation state does not differ before and the AI gets the same input data. |
| 94 | |
| 95 | You can add some debugging code to binaries/data/mods/public/simulation/helpers/Commands.js in the function ProcessCommand to print all the commands comming from the AI. When using a replay you know which player number is the AI player and can filter the output like that: |