View Single Post
05/07/15, 06:28 AM   #4
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 5,011
Ok. it looks for me that @game: is used internally the elder scrolls online as a "constant" for the correct game path.
Aren't you able to just use this @game: value too in your addon then?

Other question:
What do you need the path for? As far as I know the ESO lua codes do not support any I/O part of normal lua so I don't think there is any possibility to get the correct file path.

I'm not at my gaming pc at the moment so I cannot check this:
Maybe the path is saved somewhere in the C:\Users\<<User Name>>\Documents\Elder Scrolls Online\live<eu>\UserSettings.txt" file as a full string? Did you look into this file already?
There you would be able to read the settings information then to parse the string.

Check this thread how to read the settings:
http://www.esoui.com/forums/showthre...light=settings

EDIT:

Just found an example of usersettings.txt online and it seems it is using the same game:/ value there....
Code:
SET LanguageDirectory.2 "game:/EsoUI"
So parsing this won't help, too bad.
But I still think you could just use the same constant "game:/" in your addon too then.



Question:
What do you want to achieve? Maybe there is a nother way to do this by using your addons base path and using ../../ to go up some folders etc. ?

Last edited by Baertram : 05/07/15 at 06:33 AM.
  Reply With Quote