RimWorld

RimWorld

Preemptive Strike 1.6
Raids broken on linux
Mod trying to write log at any raid, but with wrong path separators: https://gist.github.com/disarmer/bc5decb491159d4882966cb0d8bb8649

On linux, valid path separator is slash(/), not backslash(\). Mod trying write "/home/user\Mods\PES.log", unable to do it and raid fails.
Anyway, home dir isn't valid place for log. It would be nice to be able disable log completely
< >
Showing 1-2 of 2 comments
Just  [developer] 24 Sep @ 9:14pm 
Originally posted by disarmer:
Mod trying to write log at any raid, but with wrong path separators: https://gist.github.com/disarmer/bc5decb491159d4882966cb0d8bb8649

On linux, valid path separator is slash(/), not backslash(\). Mod trying write "/home/user\Mods\PES.log", unable to do it and raid fails.
Anyway, home dir isn't valid place for log. It would be nice to be able disable log completely
I replaced the separator by system-dependent one.

The location I use is the following:
static readonly string logFile = Path.Combine(@Environment.CurrentDirectory, "Mods", "PES.log");

So, the "@Environment.CurrentDirectory" is evaluated as "/home/user" for linux users? hmm...

Do I understand you correctly, that even with disabled "debug" option in the settings your get this error?
Last edited by Just; 24 Sep @ 9:30pm
disarmer 28 Sep @ 2:42am 
Seems is was fixed, thanks.

> So, the "@Environment.CurrentDirectory" is evaluated as "/home/user" for linux users?

yes, one can run app from any directory, /home/user is default working directory

> that even with disabled "debug" option in the settings your get this error?

yes. It still writing regardless this option
< >
Showing 1-2 of 2 comments
Per page: 1530 50