OpenMW file storage

General discussion regarding the OpenMW project.
For technical support, please use the Support subforum.
Post Reply
Darknut
Posts: 5
Joined: 01 Mar 2016, 19:57

OpenMW file storage

Post by Darknut » 01 Mar 2016, 20:04

How do I keep OpenMW from using "My Documents" to store files altogether?

I want everything in the same place. I have changes the global config to zero effect.

I have searched but found no answer.

I'm using Window obviously.

Thanks

User avatar
Atahualpa
Posts: 1128
Joined: 09 Feb 2016, 20:03

Re: OpenMW file storage

Post by Atahualpa » 01 Mar 2016, 20:41

Hello Darknut,


the only way I know is to create a symbolic link in your "My Games" folder referring to the corresponding folder you want to use instead.

Just do this:

1. Copy your "OpenMW" directory from "C:\Users\username\Documents\My Games" to the desired folder (e.g. "D:\Games\OpenMW\Settings").
2. Delete the original directory from "C:\Users\username\Documents\My Games".
3. Run your command prompt as administrator.
4. Change the directory to "C:\Users\username\Documents\My Games":

Code: Select all

cd "C:\Users\username\Documents\My Games"
5. Link the directoy to your newly generated folder (e.g.):

Code: Select all

mklink /D "OpenMW" "D:\Games\OpenMW\Settings"
You should now have a virtual directory in your "My Games" folder which links to the desired directory.
OpenMW only looks up the virtual directory but the data is going to the specified new folder.

Darknut
Posts: 5
Joined: 01 Mar 2016, 19:57

Re: OpenMW file storage

Post by Darknut » 01 Mar 2016, 22:07

Thanks ... I was afraid it would be this. How storing everything in My docs got the be the standard is beyond me ... spreading files all over is moronic IMHO

claudekennilol
Posts: 79
Joined: 01 Aug 2012, 20:48

Re: OpenMW file storage

Post by claudekennilol » 01 Mar 2016, 22:43

Because if they weren't in My Docs then they would be spread all over..

Darknut
Posts: 5
Joined: 01 Mar 2016, 19:57

Re: OpenMW file storage

Post by Darknut » 02 Mar 2016, 01:20

claudekennilol wrote:Because if they weren't in My Docs then they would be spread all over..
Why not put everything the OpenMW dir? Everything in one spot

Chris
Posts: 1583
Joined: 04 Sep 2011, 08:33

Re: OpenMW file storage

Post by Chris » 02 Mar 2016, 01:49

Darknut wrote:Why not put everything the OpenMW dir? Everything in one spot
Because the OpenMW dir may not be writable by the user running it (e.g. if it's in C:\Program Files only apps running with Administrator privileges can write to it). It also makes reinstallation a bit more difficult since you'd have to backup any settings files and screenshots and such before deleting it, whereas in My Documents those things remain safe with all your other documents.

It may be possible to add a command-line option to use the executable's dir for settings and screenshots, but that behavior's been discouraged on Windows ever since XP, with Vista really starting to enforce access privileges (and for Linux and OSX, this separation has always been enforced).

ezze
Posts: 489
Joined: 21 Nov 2013, 13:20

Re: OpenMW file storage

Post by ezze » 02 Mar 2016, 10:05

However I agree it should be a non-default option to make the application "portable," it's convenient in many cases. Even in linux if you are installing in you home folder or so for a quick test.

User avatar
psi29a
Posts: 4915
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: OpenMW file storage

Post by psi29a » 02 Mar 2016, 10:52

It can be portable, just need the 'magic'. In the directory with your openmw.exe, you can make a 'data' directory. In there you can put all your stuff. That way you can 'ship' a zip file with everything all in one place.

In linux, you can see the openmw-template here:

Code: Select all

[email protected]:~/Private/openmw-template/data$ ls -al
total 18688
drwxr-xr-x 5 bcurtis bcurtis     4096 Mar  1 11:13 .
drwxrwxr-x 4 bcurtis bcurtis     4096 Feb 12 09:24 ..
drwxr-xr-x 3 bcurtis bcurtis     4096 Feb 12 09:24 icons
drwxr-xr-x 3 bcurtis bcurtis     4096 Mar  1 13:44 meshes
-rw-r--r-- 1 bcurtis bcurtis   114286 Feb 12 09:24 openmw-template.omwgame
-rw-r--r-- 1 bcurtis bcurtis     1494 Feb 12 09:24 Skins.omwaddon
-rw-r--r-- 1 bcurtis bcurtis 14408015 Mar  1 20:03 tesannwyn.esp
-rw-r--r-- 1 bcurtis bcurtis  4522634 Mar  1 11:13 tesannwyn.orig.esp
drwxr-xr-x 3 bcurtis bcurtis    32768 Feb 12 09:24 textures
Just make sure the data dire is in the same directory as your openmw executable so that it can see it first.

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

Re: OpenMW file storage

Post by scrawl » 02 Mar 2016, 11:40

However I agree it should be a non-default option to make the application "portable," it's convenient in many cases. Even in linux if you are installing in you home folder or so for a quick test.
You can already do that on linux via the standard XDG_CONFIG_HOME and XDG_DATA_HOME environment variables.

I'd be perfectly fine with a patch to OpenMW that added similar environment variables for windows.

Post Reply