ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Saved Variables Folder (registry or ini?) (https://www.esoui.com/forums/showthread.php?t=2343)

dopiate 10/22/14 12:06 PM

Saved Variables Folder (registry or ini?)
 
Hi in my addon I look for the saved variables folder in the most common spot

%homedrive%%homepath% & "\Documents\Elder Scrolls Online\live\SavedVariables\

but I'm finding some people don't have them there.

I use the registry to make sure the game is installed by querying "LauncherPath" in
"SOFTWARE\\Wow6432Node\\Zenimax_Online" and "SOFTWARE\\Zenimax_Online"

is there also a key for saved variables location or is there an entry for it in the game ini file - I can't remember the name of it but someone showed me it's where you can give LUA more memory.

I would rather find it then have to show a file-browse dialog box for the user to point it out.

If I can get a registry value to query or parse an ini or any text file, that is what i would prefer.

Thanks,
-d

merlight 10/22/14 12:14 PM

Quote:

Originally Posted by dopiate (Post 12727)
is there also a key for saved variables location or is there an entry for it in the game ini file - I can't remember the name of it but someone showed me it's where you can give LUA more memory.
-d

There's no such key in UserSettings.txt, wouldn't be of much use since that file is located in the same directory as SavedVariables.

EU client saves settings under "liveeu" instead of "live".

Garkin 10/22/14 12:47 PM

It would be best if you add some kind of selector for region.
NA megaserver: \Documents\Elder Scrolls Online\live\SavedVariables\
EU megaserver: \Documents\Elder Scrolls Online\liveeu\SavedVariables\
PTS: \Documents\Elder Scrolls Online\pts\SavedVariables\

If you want to select region automatically, you will need to read it from "launcher.settings" (json file).

dopiate 10/22/14 01:03 PM

Quote:

Originally Posted by Garkin (Post 12729)
It would be best if you add some kind of selector for region.
NA megaserver: \Documents\Elder Scrolls Online\live\SavedVariables\
EU megaserver: \Documents\Elder Scrolls Online\liveeu\SavedVariables\
PTS: \Documents\Elder Scrolls Online\pts\SavedVariables\

If you want to select region automatically, you will need to read it from "launcher.settings" (json file).

Ok no worries - I'm coding the FolderDialogBrowser interface now.

Just wasn't sure.

The paths to the different region are a big help I can test them all first before I prompt to find it.

It completely makes sense now - the person I was helping is on the EU server.

Thanks for the assistance.

-d


All times are GMT -6. The time now is 06:28 PM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI