Unable to symlink blueprint-storage-2.dat

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
folk
Fast Inserter
Fast Inserter
Posts: 104
Joined: Fri Mar 03, 2017 5:00 pm
Contact:

Unable to symlink blueprint-storage-2.dat

Post by folk »

Hi

This is somewhat related to viewtopic.php?p=492532&hilit=symlink#p492532 I guess.

My issue is quite simple; I symlink (or wanted to) both blueprint-storage-2.dat and the saves/ folder to my cloud sync folder, so that I can run the game on multiple clients easily.

I play on linux and used `ln -s` to create these.

The saves/ folder works fine. The contents of that folder is synced perfectly, and I can easily swap between my clients.

blueprint-storage-2.dat, however, is overwritten by factorio directly without following the symlink. That is to say loading the game with blueprint-storage-2.dat being a symlink works perfectly, but then when factorio wants to write to the file, it doesn't follow the link but replaces it with a normal file.

Thanks for reading!
folk
Fast Inserter
Fast Inserter
Posts: 104
Joined: Fri Mar 03, 2017 5:00 pm
Contact:

Re: Unable to symlink blueprint-storage-2.dat

Post by folk »

I realise in that thread rseding says you guys don't want to support symlinks. But it works fine for the saves folder now, so I figured I could just submit the ticket.
adam_bise
Filter Inserter
Filter Inserter
Posts: 580
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Re: Unable to symlink blueprint-storage-2.dat

Post by adam_bise »

I would just use an rsync or copy script cron job and have it run the same as your autosave interval. rsync for sync to another system, and copy script for copy to another volume or mount point on the same system. May as well sync the whole thing so your updates, saves, and everything else moves as well.
adam_bise
Filter Inserter
Filter Inserter
Posts: 580
Joined: Fri Jun 08, 2018 10:42 pm
Contact:

Re: Unable to symlink blueprint-storage-2.dat

Post by adam_bise »

Assuming your cloud storage folder is in the same partition as factorio, you could try a hard link:
ln /factorio/blueprint-storage.dat /cloud/blueprint-storage.dat

It basically creates 2 links to the same inode or actual data

I would not try reversing the symlinks. Cloud providers sometimes behave wonky when symlinks are in the sync folder.
Post Reply

Return to “Technical Help”