Page 1 of 1

[1.1.100] Differences in config path between Windows and Linux

Posted: Fri Dec 15, 2023 6:23 pm
by Diakon454
This isn't an issue that will affect many players, but it has happened to me, so I want to at least write it down.

I have a "Portable" copy of Factorio on my external SSD, for some on-the-go factory thinking. I also have two computers with two operational systems: Windows and Linux. I have downloaded both the Windows ZIP version and Linux version and unpacked them into the same folder. End result is that there are two executables in the /bin/x64 folder. I first ran the game on Windows, which generated the config.ini file in its defined location(Factorio root folder). Next, I tried to run it on Linux, however I get an error about the config path not being found.
Here's the relevant snippet from the config.ini file

Code: Select all

read-data=__PATH__executable__\..\..\data
write-data=__PATH__executable__\..\..
On Windows, the path is created with backslashes
\
, whereas on Linux, this path is generated with normal slashes

Code: Select all

/
. Indeed, modifying the above to be slashes fixed the issue, and I could play Factorio from a single install on both OS systems. Funnily enough, the "fixed" path with slashes works on Windows just fine.

Re: [1.1.100] Differences in config path between Windows and Linux

Posted: Fri Dec 15, 2023 6:32 pm
by Loewchen
This is not a bug.