Page 1 of 1

Shared save between dual boot

Posted: Fri Sep 16, 2016 7:27 pm
by realm174
Hello everybody,

I dual boot between Windows 10 and Ubunbu 16.04. Although I spend most of my time in Linux, and this is where I typically play Factorio, There are times when I am in Windows and want to continue playing the same save. Both OS see both partitions, so accessing the proper folder isn't an issue. However, I can't think of what/how to set that up under Steam so that I can play the same save under both OS. I incorrectly assumed that the "cloud" thing on Steam would allow me to share the save between both, but apparently not. I have my original save under Windows, which I later copied over to the Ubuntu partition. Played a bunch of hours there. I just booted in Windows and loaded the save, and it is in the same state as it last was under Windows, and not in the state it should under Ubuntu. And yes, I do have the "Enable Steam Cloud sync" checked on steam, both under the Windows and the Ubuntu.



Any suggestions?

thanks!

Re: Shared save between dual boot

Posted: Fri Sep 16, 2016 9:40 pm
by studmuffin
I would have to test this myself... But I run factorio servers on the same machine I play on, so this solution might work across completely different directories. The way I do this is creating a new server directory, and specifying the server/config/config.ini (among a few other things) as below (this is for example, you don't need to create a new directory)
[path]
read-data=__PATH__system-read-data__
write-data=C:\Users\StreamSRV\AppData\Roaming\Factorio\servertest
When I play the game, my own instance loads by deault write-data=__PATH__system-write-data__, which translates to write-data=C:\Users\StreamSRV\AppData\Roaming\Factorio\ from it's own config file. so my game saves are independent from my server.

you could perhaps try changing one of the config files to point the write-data to the folder your saves directory you wish to use is in. Then, in theory, it should use that path to save/load your files.

I believe the read-data path is for the factorio games files of the system, not the save files. So this should not be changed.

Re: Shared save between dual boot

Posted: Sat Sep 17, 2016 9:29 pm
by realm174
Thanks for that information, I'm sure it will come in handy. In the meantime, I have "resolved" my issue, simply by observing the behaviour. When quitting the game under Ubuntu, Steam will not (which is I think the proper behavior) quit when I try to close it, instead, there's a popup telling me it is sync'ing. And I can see the sync'ing happening as soon as I quit Factorio. Under Windows, on the other hand, there seems to be a delay between the time I quit Factorio and the time Steam starts it's sync. So I'm thinking it's a Steam issue, and not a Factorio issue. If I wait long enough (and testing shows anywhere from 15 seconds to a minute or so), then it'll start it's sync.

So I am thinking, this is due to one of two things. Either the Steam client monitors the status of the game more closely under Ubuntu than it does under Windows, or, the Factorio process takes longer to quit under Windows, which would explain that delay.

There's probably a third option, but I have no clue what it would be :)