[0.9.8] Save folder cannot be behind a junction point

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
Post Reply
Warfire
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Apr 26, 2014 4:30 pm
Contact:

[0.9.8] Save folder cannot be behind a junction point

Post by Warfire »

Moving the Factorio save folder to somewhere else then using a junction point back to the normal folder causes an error when trying to load a save.

Junction like:

junction "D:\apps\Factorio_0.9.8.9400\saves" "D:\Dropbox\Games\Factorio\saves"

Causes error:

---------------------------
Error
---------------------------
boost::filesystem::create_directory: Cannot create a file when that file already exists: "D:/apps\Factorio_0.9.8.9400\saves"
---------------------------
OK
---------------------------

Win64 zip edition.

Works fine if I junction the other way (and make the real folder inside the Factorio folder) but that defeats the point.

muzzy
Fast Inserter
Fast Inserter
Posts: 187
Joined: Sat Nov 23, 2013 7:17 am
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by muzzy »

You shouldn't use junction points for this anyway, use ntfs symlinks instead (see mklink /d)

Warfire
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Apr 26, 2014 4:30 pm
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by Warfire »

There isn't a huge difference between junctions and symlinks for local volumes on a single machine, they are different yes but I can't see why this is a bad use of junctions since the folders are both local?

muzzy
Fast Inserter
Fast Inserter
Posts: 187
Joined: Sat Nov 23, 2013 7:17 am
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by muzzy »

I haven't used windows for years, but I was under impression that the new symlink mechanism was preferred over the junctions unless you really needed lowlevel junctions. I don't have any documentation to back this up though (and I stopped using windows before symlinks were implemented) so you can take it with a grain of salt... :)

Anyway, boost's filesystem library doesn't recognize junction points as directories. The symbolic links should work more transparently in this regard I believe.

Warfire
Manual Inserter
Manual Inserter
Posts: 4
Joined: Sat Apr 26, 2014 4:30 pm
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by Warfire »

I will give it a try as a symlink - thanks!

sfrazer
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed May 07, 2014 12:54 am
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by sfrazer »

I can confirm that you need a symlink. I tried it both says before writing this up: https://forums.factorio.com/wiki/inde ... _directory

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by kovarex »

Ok, so it isn't a Factorio bug (I guess), so I'm moving it to not a bug.

User avatar
cube
Former Staff
Former Staff
Posts: 1111
Joined: Tue Mar 05, 2013 8:14 pm
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by cube »

It IS a bug ... it just has a very low priority and a complicated solution :-)
Known issues.
I have no idea what I'm talking about.

muzzy
Fast Inserter
Fast Inserter
Posts: 187
Joined: Sat Nov 23, 2013 7:17 am
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by muzzy »

cube wrote:It IS a bug ... it just has a very low priority and a complicated solution :-)
Known issues.
The actual issue is that save directory isn't configurable, which forces the player to tweak with the filesystem. Make it configurable in config.ini and nobody cares about the junction issue anymore.

kovarex
Factorio Staff
Factorio Staff
Posts: 8078
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by kovarex »

muzzy wrote:
cube wrote:It IS a bug ... it just has a very low priority and a complicated solution :-)
Known issues.
The actual issue is that save directory isn't configurable, which forces the player to tweak with the filesystem. Make it configurable in config.ini and nobody cares about the junction issue anymore.
You can configure the write-folder in the ini

muzzy
Fast Inserter
Fast Inserter
Posts: 187
Joined: Sat Nov 23, 2013 7:17 am
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by muzzy »

kovarex wrote:You can configure the write-folder in the ini
You mean the "write-data"? The name is confusing so I have no idea what it does exactly, but I read it also affects mods, scenarios and some other things. Not an ideal solution for changing just the savegame folder.

tomzx
Manual Inserter
Manual Inserter
Posts: 1
Joined: Sun Jun 14, 2015 5:18 pm
Contact:

Re: [0.9.8] Save folder cannot be behind a junction point

Post by tomzx »

It appears, as of 0.11.22, that save data is properly saved in a folder behind a junction point. In my particular case, I have C:\Users pointing to E:\Users.

Autosave works perfectly, I can also load the autosaves without issue. However, if I open the save menu (while in game), it crashes with the following:

Error Util.cpp:43: boost::filesystem::read_symlink: The process cannot access the file because it is being used by another process: "C:/Users

Note how the error message is truncated.

Post Reply

Return to “Minor issues”