How to set a path to userdata?

Having trouble with the game? Report issues and get help here. Read this first!

Moderators: Forum Moderators, Developers

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Marcgal
Posts: 44
Joined: January 29th, 2012, 12:06 pm

How to set a path to userdata?

Post by Marcgal » December 23rd, 2016, 7:16 pm

Linux here.

Preferences/general/Paths allows me to *view* paths to configuration, user data, saved games, etc.

Though, is it anyhow possible to *set* them?

I’m asking ’cuz I’d like to allow saved games to be shared by different user accounts.

User avatar
The_Gnat
Posts: 1506
Joined: October 10th, 2016, 3:06 am
Contact:

Re: How to set a path to userdata?

Post by The_Gnat » December 23rd, 2016, 10:54 pm

Marcgal wrote:Linux here.

Preferences/general/Paths allows me to *view* paths to configuration, user data, saved games, etc.

Though, is it anyhow possible to *set* them?

I’m asking ’cuz I’d like to allow saved games to be shared by different user accounts.
Unfortunately i believe you only can set the path to save games and other user data on the install of the game.

User avatar
Pentarctagon
Forum Administrator
Posts: 3375
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to set a path to userdata?

Post by Pentarctagon » December 23rd, 2016, 11:21 pm

There are a couple options you could use. From wesnoth --help:

Code: Select all

  --userconfig-dir arg            sets the path of the user config directory to
                                  $HOME/<arg> or My Documents\My Games\<arg> 
                                  for Windows. You can specify also an absolute
                                  path outside the $HOME or My Documents\My 
                                  Games directory. Defaults to 
                                  $HOME/.config/wesnoth on X11 and to the 
                                  userdata-dir on other systems.
  --userconfig-path               prints the path of the user config directory 
                                  and exits.
  --userdata-dir arg              sets the path of the userdata directory to 
                                  $HOME/<arg> or My Documents\My Games\<arg> 
                                  for Windows. You can specify also an absolute
                                  path outside the $HOME or My Documents\My 
                                  Games directory.
  --userdata-path                 prints the path of the userdata directory and
                                  exits.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code

User avatar
doofus-01
Art Contributor
Posts: 3658
Joined: January 6th, 2008, 9:27 pm
Location: USA, the civilized part.

Re: How to set a path to userdata?

Post by doofus-01 » January 4th, 2017, 3:16 am

Pentarctagon wrote:There are a couple options you could use. From wesnoth --help:
That's cool, and works fine if you call it with those arguments, but is there a way to set it permanently? Compiling with scons changed within the last month or so, so that userdata is always /home/username/.local/share/wesnoth/1.13, ignoring $version_suffix. (It used to be /home/username/.wesnoth$version_suffix)

(And I must say that it's obnoxious to sprinkle all these files in different hidden directories. What was so wrong with putting everything in one directory?)
BfW 1.12 supported, but active development only for BfW 1.13/1.14: Bad Moon Rising | Trinity | Archaic Era |
| Abandoned: Tales of the Setting Sun
GitHub link for these projects

User avatar
Pentarctagon
Forum Administrator
Posts: 3375
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to set a path to userdata?

Post by Pentarctagon » January 4th, 2017, 8:27 am

For me it's always been /home/username/.local/share/wesnoth/1.13 (since at least August), but regardless, $version_suffix no longer working may actually be my fault. I'll look at it in the next day or two - if the problem is what I think it is, then it should be an easy fix.

edit - Fix submitted.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code

Post Reply