Changes between Initial Version and Version 7 of Ticket #3647
- Timestamp:
- Nov 30, 2015, 10:21:36 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #3647
- Property Status new → reopened
- Property Summary [PATCH] Serializationtest error when placing walls → Some commands get modified by a simulation update
- Property Priority Must Have → Should Have
- Property Keywords patch removed
-
Ticket #3647 – Description
initial v7 1 In #3637 we found out that `TryConstructWall()` in `Commands.js` changes the command object.1 Some actions in Commands.js modify the commands. This is usually not an issue, but can cause false positives OOS in serializationtest and might fail oddly somewhere down the line. 2 2 3 This means when doing a serializationtest, the command executed in the primary simulation is different from the one in the secondary simulation, resulting in a serializationtesterror.3 r17324 was a fix for one such case. There are possibly others. 4 4 5 To reproduce it, replay this commands.txt in serializationtest-mode: attachment:commands_reproduce_palisade_oos.txt:ticket:36376 5 7 In a multiplayergame, the commands are first sent to the server, then they are executed on all machines identically. So it's basically a '''false positive for OOS'''. 8 9 To fix it, we just need to clone the commands for the secondary simulation before the primary simulation changes them. 10 11 [[Image(http://trac.wildfiregames.com/raw-attachment/ticket/3637/fort_builders_palisade.jpg, 300px, center)]] 6 A fix would be making sure we detect those problems (at least when running serializationtest), and fixing the cases where it happens.