Page 1 of 1

[boskid][1.1.104] Desync after setting pathfinder cache size while pathfinder is in use

Posted: Wed Apr 17, 2024 7:25 am
by Atraps003
Steps to reproduce-

Download map
/c game.map_settings.path_finder.short_cache_size = 7
/toggle-heavy-mode

Toggle heavy mode fails. Changing the long_cache_size will also cause a desync.

Re: [boskid][1.1.104] Desync after setting pathfinder cache size while pathfinder is in use

Posted: Wed Apr 17, 2024 9:38 am
by boskid
Thanks for the report. Issue is now fixed for 2.0.

Root cause is that a/ writing to map_settings does not trigger cache resize, and b/ cache is resized on load. Desync would not happen if any of those 2 would not happen. Main fix for 2.0 is that writing to map_settings will immediately resize those caches to new size.