Closed KubaP closed 3 years ago
It seems that hard links cannot bypass this; factorio must be just straight up deleting the blueprint-storage.dat
file and writing a brand new one from memory to disk. The only way to therefore share blueprints seems to be to require a separate cmdlet which will manually copy the file to all places it is shared at.
Fixed in c4ce89b34d1e022af4f4923b8d0a380ebf6219de
Expected result
When sharing blueprints with a profile, the
blueprint-storage.dat
file should remain linked.Actual result
If factorio modifies (writes to?) the blueprint storage, it seems to replace the
.symlink
with an owned file.dat
file, effectively breaking the sharing of the blueprints.Possible solution
Rather than creating a symbolic link for the blueprint data file, create a hard link instead. This however will bring in a few limitations, see Hard Links and Junctions. The main one being that hard links cannot span multiple volumes, which means it may be necessary to force all profile folders to be located together, and only give the option to move the entire module appdata folder instead.