ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   AddOn Help/Support (https://www.esoui.com/forums/forumdisplay.php?f=164)
-   -   Switch TTC Server in-game??? (https://www.esoui.com/forums/showthread.php?t=9514)

LivingSuSpence 12/17/20 06:57 PM

Switch TTC Server in-game???
 
I started an EU account to play with some over-seas friends. I know I can change the server on the website, but the addon in-game is still showing me NA price suggestions and I can't figure out how to change it anywhere in the settings or online. PLEASE HELP :(

Baertram 12/17/20 08:20 PM

Please ask the author in the addon's comments.
https://www.esoui.com/downloads/info....html#comments

Afai can see the PriceTable.lua file will be downloaded via the client.exe file and it automatically detects which server you are playing on. So this can only be answered by the dev of the client.exe file then.
Or maybe it contains both data, EU and NA.

For ingame the addon detects which server you play on via function
Code:

function TamrielTradeCentre:GetCurrentServerRegion()
        local serverRegion = nil
        local lastPlatform = GetCVar("LastPlatform")
        local lastRealm = GetCVar("LastRealm")
        if (lastPlatform == "Live") then
                serverRegion = "NA"
        elseif (lastPlatform == "Live-EU") then
                serverRegion = "EU"
        elseif (lastRealm:find("^NA") ~= nil) then
                serverRegion = "NA"
        elseif (lastRealm:find("^EU") ~= nil) then
                serverRegion = "EU"
        end

        return serverRegion
end

Perhaps the detection functions are not working properly, ask the author why he isn't simply using "GetWorldName()" ingame to detect the server.
It returns "NA Megaserver" or "EU Megaserver" and he could simply strip the " Megaserver" instead of checking for CVAR values of the last chosen realm and platform etc.
Maybe LastPlatform is not returning live-EU anymore and only returns live,a nd thus the addon thinks you are on the NA server.

But perhaps he got reasons for this code to be used instead of GetWorldName() :p


All times are GMT -6. The time now is 01:54 PM.

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