Changing User Data storage location

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
Cen7
Posts: 15
Joined: February 2nd, 2020, 11:16 pm

Changing User Data storage location

Post by Cen7 »

I’m running version 1.14.7 on a Windows 10 machine (a Lenovo Yoga 730-13, to be very, very specific). Back in the olden days, there was an option when installing BfW to have the user data stored in the same location as the game, itself, but that seems not to be available anymore. I’m wondering if there’s a way to do this manually?


More background, because context often matters:

To make my BfW available regardless of what machine I’m using, I’ve installed it in my DropBox. (And yes, Yay!, that works!) I really want to store my saved games and downloads there, as well. Windows 10, however (curse those Redmond Trolls!) insists on storing the information at c:\users\[username]\documents\mygames\wesnoth1.14.
User avatar
Iris
Site Administrator
Posts: 6724
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: Changing User Data storage location

Post by Iris »

You can edit or create a new shortcut for wesnoth.exe with additional options like so:

Code: Select all

"C:\Users\YourUsername\Dropbox\Wesnoth 1.14\wesnoth.exe" --userdata-dir .\userdata --userconfig-dir .\userdata
The quotes surrounding the full path to wesnoth.exe are not optional if there are spaces in any folder names.
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+).
Cen7
Posts: 15
Joined: February 2nd, 2020, 11:16 pm

Re: Changing User Data storage location

Post by Cen7 »

Thanks! I will try that.
Cen7
Posts: 15
Joined: February 2nd, 2020, 11:16 pm

Re: Changing User Data storage location

Post by Cen7 »

Okay, one thing to know about me is that I’m really slooooooooow (perhaps in more ways than one?), so I’m just now getting around to implementing this.

Problem: I’ve added the suggested language, but it’s not working. Specifically, the shortcut isn’t working at all with that addition. (I.e., it doesn’t open BfW.) Obviously, I’m doing something wrong.

Here’s what I did:

(A) I created a shortcut (you know, right-click on the app wesnoth.exe and choose the option “Create shortcut.”
(B) Opening up the shortcut (right-click, then choose “Properties”), I get a box with multiple tabs and multiple entries, but the default tab is “Shortcut,” which has what I think we’re looking for.
(C) In that tab, there were two specific fields that might be where the information goes. The first, “Target,” is pre-filled with “C:\Users\[my name]\Dropbox\Games\Battle for Wesnoth\wesnoth.exe”. (Quotation marks already included.) The second, “Start in,” is profiled with “C:\Users\[my name]\Dropbox\Games\Battle for Wesnoth”. (Again, already with the quotation marks.) As only “Target” includes the full path, all the way to wesnoth.exe, I thought that’s where it should go, so it now reads:

“C:\Users\[my name]\Dropbox\Games\Battle for Wesnoth\wesnoth.exe” --userdata-dir .\userdata --userconfig-dir .\userdata

(Punctuation and spacing exactly as written.)

Have I missed something that’s obvious to real coders?

EDIT: :shock: So . . . a little Google search, and it looks like I needed to add an “=” and take out the space before “.\userdata” — and now it seems to be functioning!
Post Reply