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

This subforum contains all the issues which we already resolved.
Post Reply
Atraps003
Long Handed Inserter
Long Handed Inserter
Posts: 85
Joined: Thu Jan 04, 2018 6:34 am
Contact:

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

Post 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.
Attachments
pathfinder-desync.zip
(4.93 MiB) Downloaded 23 times

User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 2373
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

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

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

Post Reply

Return to “Resolved Problems and Bugs”