Wesnoth portable

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
User avatar
Wyrade
Posts: 9
Joined: February 3rd, 2013, 10:55 pm

Wesnoth portable

Post by Wyrade »

Hi!

How do I redirect the userdata directory from "[...]\Documents\My Games\Wesnoth1.14" to the installdir?
Is it possible without rebuilding from the source?
I know there was a portable version for 1.12.x and 1.10.x as I have one of each still installed with the userdata directory inside the installdir, but I couldn't find a setting for it in obvious config files nor in the registry.
I think I remember reading maybe a year or two ago something about it being "forced" to be not portable from 1.13.x an onwards as it caused issues (?), but I really am not sure, and I thought it'd be better to ask.
I did try searching for it on the forums and google, but didn't find anything easily.

Thanks for the info in advance!

[Win7 x64]
[The main point would be to not use SSD storage for wesnoth addon files, which can take a somewhat significant space.]
User avatar
Pentarctagon
Project Manager
Posts: 4518
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Wesnoth portable

Post by Pentarctagon »

It sounds like you'd want to use:

Code: Select all

  --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.
which can be seen(along with a bunch of other options) by running wesnoth.exe --help from the command prompt on Windows.
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
Wyrade
Posts: 9
Joined: February 3rd, 2013, 10:55 pm

Re: Wesnoth portable

Post by Wyrade »

Thank you, it's perfect for my purpose. :)
The $HOME argument just created a folder named "$HOME" in the My Games folder, but the absolute path works as intended, so whatever.

Have a nice day! :)
User avatar
Pentarctagon
Project Manager
Posts: 4518
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Wesnoth portable

Post by Pentarctagon »

Yeah, $HOME is a Mac/Linux environment variable, it doesn't mean anything on Windows.
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
Iris
Site Administrator
Posts: 6723
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: Wesnoth portable

Post by Iris »

Unless you intend your settings to be saved to the default location, you'll need to either use --userconfig-dir as well or use --config-dir instead (yes, that's a misleading name since it affects the user data path as well).
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm (now available for Wesnoth 1.14.x and 1.15.4+).
Post Reply