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

Things that we don't consider worth fixing at this moment.
evandy
Fast Inserter
Fast Inserter
Posts: 228
Joined: Mon Apr 15, 2019 2:54 am
Contact:

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

Post 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 125 times
factorio-current.log
Log from when config-path.cfg is in factorio.app
(50.7 KiB) Downloaded 124 times
posila
Factorio Staff
Factorio Staff
Posts: 5341
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post 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.
evandy
Fast Inserter
Fast Inserter
Posts: 228
Joined: Mon Apr 15, 2019 2:54 am
Contact:

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

Post 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?
sorahn
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Tue Mar 17, 2020 11:35 pm
Contact:

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

Post 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
Post Reply

Return to β€œWon't fix.”