Properly handle map resizes in Atlas, fixes #4800.
Reviewed By: vladislavbelov
Differential Revision: https://code.wildfiregames.com/D946
Properly handle map resizes in Atlas, fixes #4800.
Description
Details
Event TimelineComment Actions Damnit. I cannot look into fixing this in the immediate future. Based on the things this commit changes, there is a very small chance that the wrong simulation state is the one of the rejoining player, i.e. fixing/reverting this would not change the sim state, and people with the bug and people without would not go OOS. If that is the case re-releasing with the fix would be less of a problem. Else I am still against re-releasing a simulation-incompatible version (regardless of whether this is fixed or reverted). If after the meeting discussion I am in the minority, I cannot work on a fix myself soon... I am as puzzled as temple regarding the square vs. circular difference. That usually comes from passability differences at the border of the map, which are masked by the circular blocker that is added. But here the whole terrain is touched, so I'd assume inconsistencies, if any, should happen on all kinds of maps. ? Comment Actions Without fixing people won't be able to rejoin on square maps (also territory is wrong, since it ignores hills and water, but original players can still play it), but there's only a few square maps: random/latium.json: "CircularMap" : false random/corsica.json: "CircularMap" : false random/phoenician_levant.json: "CircularMap" : false random/wall_demo.json: "CircularMap" : false, scenarios/Arcadia.xml: "CircularMap": false, scenarios/Campaign Test Map.xml: "CircularMap": false, skirmishes/Watering Holes (4).xml: "CircularMap": false, So I don't know if we necessarily need to include in an A23 rerelease. The weirder thing is the Kunst replay on mainland (in #5162), which had similar territory problems but reversed: trees were gaia meaning probably hills were there (can only guess since the territory grid isn't serialized), except they weren't. So maybe he somehow generated the wrong terrain even though everything else was the same. Dunno.
Comment Actions If our assumptions are correct, the square map bug can be fixed for alpha 23 without bumping the version number, because it can only change the simstate on square maps and rejoin is already entirely broken there. About the KunstRaucher replay, dunno,
Comment Actions Really? I thought Itms wrote it, no? Clockwork-Muse wrote an other resize patch AFAIK.
Comment Actions rP21835 for the hotfix. The possibly better proposed fix is to delete the grid and have it recomputed automatically. Comment Actions The concern is addressed, I have not enough knowledge about the code to substantiate a concern about code-cleanliness. |