How to set a path to userdata?
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
How to set a path to userdata?
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.
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.
Re: How to set a path to userdata?
Unfortunately i believe you only can set the path to save games and other user data on the install of the game.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.
Creator of: The Reign of The Lords Era,The Gnats Franken Dungeon.
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to set a path to userdata?
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
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: How to set a path to userdata?
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 alwaysPentarctagon wrote:There are a couple options you could use. From wesnoth --help:
/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
| Abandoned: Tales of the Setting Sun
GitHub link for these projects
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: How to set a path to userdata?
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.
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
take one down, patch it around
-2,147,483,648 little bugs in the code