How to set a path to userdata?

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

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
Marcgal

How to set a path to userdata?

Post by Marcgal »

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: 2217
Joined: October 10th, 2016, 3:06 am
Contact:

Re: How to set a path to userdata?

Post by The_Gnat »

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
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to set a path to userdata?

Post by Pentarctagon »

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 Director
Posts: 4128
Joined: January 6th, 2008, 9:27 pm
Location: USA

Re: How to set a path to userdata?

Post by doofus-01 »

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
Project Manager
Posts: 5564
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to set a path to userdata?

Post by Pentarctagon »

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