Page 1 of 1

[0.18.8] Processing of config-path.cfg on OS X incorrectly

Posted: Sun Feb 23, 2020 4:40 pm
by evandy
I tried to follow the instructions on the Wiki https://wiki.factorio.com/index.php?tit ... _directory, but they are not working...

If I put config-path.cfg in factorio.app/Contents - no effect, it does not appear to be read.
If I put config-path.cfg in factorio.app/ - No matter what values I put, I get the following error:

Code: Select all

Error Util.cpp:83: Error configuring paths: There is no package core in /Users/evandy/Applications/factorio.app/data. Deduced executable directory: /Users/evandy/Applications/factorio.app/Contents/MacOS, read data: __PATH__executable__/../../data, write data: __PATH__executable__/../..
I'm guessing this is an OS-x specific error, as if I symlink factorio.app/Contents/data to factorio.app/data then it appears to work. Albeit, it makes its mods/ saves/ & etc. folders directly inside factorio.app instead of factorio.app/Contents.

Apparent issue - on OS X it is looking for config-path.cfg in factorio.app/ instead of factorio.app/Contents

Attaching log files from both working and "correct but not working"
factorio-current-2.log
Log from when config-path.cfg is in factorio.app/Content
(55.84 KiB) Downloaded 106 times
factorio-current.log
Log from when config-path.cfg is in factorio.app
(50.7 KiB) Downloaded 106 times

Re: [0.18.8] Processing of config-path.cfg on OS X incorrectly

Posted: Sun Oct 25, 2020 8:36 am
by posila
Thanks for the report.
I gave it some thought and came to the conclusion we don't really want to support config-path.cfg on macOS due to how macOS applications are bundled. I don't think the game should be storing user files anywhere to factorio.app subfolder.

Re: [0.18.8] Processing of config-path.cfg on OS X incorrectly

Posted: Wed Nov 04, 2020 5:42 pm
by evandy
I can understand that analysis... but that leaves the following problem:
- How can you have a local copy of factorio (say, a different version from steam), with its own set of user data (mods/etc.)?

By default, on os x, all of that data goes to ~/Library/Application Support/factorio (which is great, and 100% fine).
When I want to fork that data for a separate, standalone install, how can I achieve that? The config-path.cfg was the way to do that... so if that's not the solution, what is?

Re: [0.18.8] Processing of config-path.cfg on OS X incorrectly

Posted: Thu Nov 26, 2020 8:27 am
by sorahn
As far as I can tell my standalone installs on macOS are working fine.

Code: Select all

sorahn@hyperion:/A/f/F/factorio.app
$ pwd
/Applications/factorios/Factorio_Dev/factorio.app
sorahn@hyperion:/A/f/F/factorio.app
$ cat config-path.cfg
config-path=__PATH__executable__/../../../config
use-system-read-write-data-directories=false⏎
sorahn@hyperion:/A/f/F/factorio.app
$ 
And it's worth noting that all the files/folders that factorio uses will be come siblings to the factorio.app container.

Code: Select all

sorahn@hyperion:/A/f/Factorio_Dev
$ tree --dirsfirst -ChFupDaLg 1
.
├── [drwxr-xr-x sorahn    admin      96 Mar 31  2020]  archive/
├── [drwxr-xr-x sorahn    admin      96 Nov 25 15:53]  config/
├── [drwxr-xr-x sorahn    admin     128 Nov  6 00:15]  factorio.app/
├── [drwxr-xr-x sorahn    admin     256 Nov 25 16:35]  mods/
├── [drwxr-xr-x sorahn    admin     128 Nov 19 14:02]  saves/
├── [drwxr-xr-x sorahn    admin      96 Nov 19 13:42]  scenarios/
├── [drwxr-xr-x sorahn    admin      96 Mar 31  2020]  script-output/
├── [drwxr-xr-x sorahn    admin      64 Nov 25 16:35]  temp/
├── [-rw-r--r-- sorahn    admin     12K Nov  9 12:50]  .DS_Store
├── [-rw-r--r-- sorahn    admin    2.9K Nov 25 16:35]  achievements-modded.dat
├── [-rw-r--r-- sorahn    admin    1.5K Mar 31  2020]  achievements.dat
├── [-rw-r--r-- sorahn    admin     23K Nov 25 16:35]  blueprint-storage-version-0.18-backup.dat
├── [-rw-r--r-- sorahn    admin     23K Mar 31  2020]  blueprint-storage.dat
├── [-rw-r--r-- sorahn    admin    1.8M Nov 25 16:35]  crop-cache.dat
├── [-rw-r--r-- sorahn    admin     19M Nov 25 15:51]  data-cache.dat
├── [-rw-r--r-- sorahn    admin    4.7K Nov 25 16:35]  factorio-current.log
├── [-rw-r--r-- sorahn    admin    5.8K Nov 25 15:53]  factorio-previous.log
├── [-rw-r--r-- sorahn    admin    6.3K Nov 25 16:35]  player-data.json
└── [-rw-r--r-- sorahn    admin      16 Mar 31  2020]  server-adminlist.json

8 directories, 11 files