Command Line Argument for .cfg files

Feedback on past, current, and future development.
Post Reply
User avatar
openmwfan27
Posts: 113
Joined: 23 Apr 2015, 22:11

Command Line Argument for .cfg files

Post by openmwfan27 » 20 Apr 2016, 20:18

Is there currently a command line argument that you can pass to the openmw binary and openmw-launcher binary so you can over-ride the default path they will use to look for files like the users openmw.cfg and settings.cfg?

If not would this be a difficult thing to build in?

User avatar
Capostrophic
Posts: 776
Joined: 22 Feb 2016, 20:32

Re: Command Line Argument for .cfg files

Post by Capostrophic » 20 Apr 2016, 20:27

If it were added, it would be stored in user settings.cfg. Ba-dum-tsh.

User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: Command Line Argument for .cfg files

Post by scrawl » 20 Apr 2016, 20:47

On Linux you can use the XDG_CONFIG_HOME environment variable. AFAIK no such variable exists on Windows. We could implement one though.

User avatar
openmwfan27
Posts: 113
Joined: 23 Apr 2015, 22:11

Re: Command Line Argument for .cfg files

Post by openmwfan27 » 20 Apr 2016, 21:23

I've been playing around with the idea of building some basic type of mod manager and using it as a chance to learn python and qt. It would be good if i could 'load' additional engines into it rather then just doing one.

e.g if you were doing bug-testing with a mod, you could 'load in' every version of openmw, and then run your game / mods on each engine, in theory this would also allow users to add 'forked' engines if they were working on their own projects.

The problem is when all of these binaries use the same settings.cfg and openmw.cfg as far as i can tell, so if you're using alternate engines some settings might not be backwards compatible etc... and it would be handy as a feature in general.

If you could pass in a command line argument to say "instead of the default path, look in [this folder] for the settings.cfg and openmw.cfg files"

Having platform specific flag's for this seems kinda weird, and as you said windows does not have something similar to linux so having this built into the openmw and openmw-launcher binaries would bring the feature to all platforms implemented the same way.

Tels
Posts: 21
Joined: 01 Jul 2016, 18:03
Contact:

Re: Command Line Argument for .cfg files

Post by Tels » 01 Jul 2016, 22:43

Me thinks this would be a great feature. Currently I'm testing openmw with a lot of mods, and thus have a lot of data= lines in the config.

Swapping out config files is error-prone and cumbersome and it would be cool to have a way to easily tell openmw "use this set of configs now" so you can easily test a mod on its own, without the other ones, and then quickly switch back to the full set.

User avatar
silentthief
Posts: 445
Joined: 18 Apr 2013, 01:20
Location: Currently traversing the Ascadian Isles

Re: Command Line Argument for .cfg files

Post by silentthief » 02 Jul 2016, 20:51

Tels wrote:Me thinks this would be a great feature. Currently I'm testing openmw with a lot of mods, and thus have a lot of data= lines in the config.
Could see this being very useful for testing as you mentioned, but it could come in handy for multiple setups like if you have a morrowind install to play the original game, and you are working on the example suite in another setup for example.

I hope this is a feature in the works.

ST
100% not a dev, but I know a little about Linux, MW, and scripting. I try to help. LMK if you have any questions.

Current MW quote: "I don't recall using teleportation. Yet there I was. Alone. Naked."

Post Reply