Wesnoth portable
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:
Wesnoth portable
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.]
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.]
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Wesnoth portable
It sounds like you'd want to use:
which can be seen(along with a bunch of other options) by running
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.
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
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Wesnoth portable
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!
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!
- Pentarctagon
- Project Manager
- Posts: 5564
- Joined: March 22nd, 2009, 10:50 pm
- Location: Earth (occasionally)
Re: Wesnoth portable
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
take one down, patch it around
-2,147,483,648 little bugs in the code
Re: Wesnoth portable
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.