How to set a path to userdata?

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

Moderators: Developers, Forum Moderators

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

How to set a path to userdata?

Postby 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.
Marcgal
 
Posts: 38
Joined: January 29th, 2012, 12:06 pm

Re: How to set a path to userdata?

Postby 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
The_Gnat
 
Posts: 763
Joined: October 10th, 2016, 3:06 am

Re: How to set a path to userdata?

Postby 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
Pentarctagon
Moderator
 
Posts: 2662
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: How to set a path to userdata?

Postby 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?)
Bad Moon Rising(BfW 1.12 supported, but new work in BfW 1.13 only) | Trinity(BfW 1.12 only) | Archaic Era(BfW 1.12 & 1.13) | Tales of the Setting Sun(On Hold/Abandoned)
GitHub link for these projects
User avatar
doofus-01
Art Contributor
 
Posts: 3420
Joined: January 6th, 2008, 9:27 pm
Location: USA ...

Re: How to set a path to userdata?

Postby 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
User avatar
Pentarctagon
Moderator
 
Posts: 2662
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 1 guest