Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Bugs Reports

Bugs Reports Report any bugs or issues you come across with ShestakUI.

Advertising

 
Thread Tools
Old 21.04.2013, 15:40   #1
 Assistant User Information

Tryllemann's Avatar
Bug Armory Link Error

I always got "Unsupported realm location"

Solution atleast for me;

Changed in ArmoryLink.lua

From;
lua Code [Select]:
-- Find the Realm and Local
local realmName = string.lower(GetRealmName())
local realmLocal = string.sub(GetCVar("realmList"), 1, 2)
local link

realmName = realmName:gsub("'", "")
realmName = realmName:gsub(" ", "-")

if T.client == "ruRU" then
    link = "ru"
elseif T.client == "frFR" then
    link = "fr"
elseif T.client == "deDE" then
    link = "de"
elseif T.client == "esES" or T.client == "esMX" then
    link = "es"
elseif T.client == "ptBR" or T.client == "ptPT" then
    link = "pt"
elseif T.client == "itIT" then
    link = "it"
elseif T.client == "zhTW" then
    link = "zh"
elseif T.client == "koKR" then
    link = "kr"
else
    link = "eu"
end

To:
lua Code [Select]:
-- Find the Realm and Local
local link

if T.client == "ruRU" then
    link = "ru"
elseif T.client == "frFR" then
    link = "fr"
elseif T.client == "deDE" then
    link = "de"
elseif T.client == "esES" or T.client == "esMX" then
    link = "es"
elseif T.client == "ptBR" or T.client == "ptPT" then
    link = "pt"
elseif T.client == "itIT" then
    link = "it"
elseif T.client == "zhTW" then
    link = "zh"
elseif T.client == "koKR" then
    link = "kr"
else
    link = "eu"
end

local realmName = string.lower(GetRealmName())
local realmLocal = link

realmName = realmName:gsub("'", "")
realmName = realmName:gsub(" ", "-")
Say Thank:
Shestak (23.05.2013)
Old 21.04.2013, 15:40   #1.5 - Disable Ads

Advertise on this site

Old 23.05.2013, 10:55   #2
Wetxius
 Assistant User Information

Wetxius's Avatar
This code not work, if link ~= us, eu, tw or kr. Because only for it regions there are self battle net, like http://eu.battle.net.
Say Thank:
Shestak (23.05.2013)
Old 23.05.2013, 22:32   #3
Wetxius
 Assistant User Information

Wetxius's Avatar
Frode, from which region you?
I think, that only chinesse don't include in our list.
T.client == "zhCN"
realmLocal == "cn"
http://www.battlenet.com.cn/wow/
Old 24.05.2013, 09:28   #4
Wetxius
 Assistant User Information

Wetxius's Avatar
According to Armory QuickLink and some testing on WoWProgress, I think that:
link for enUS must be "en" proof
link for koKR must be "ko" proof
Can someone confirm my observations? Have you wrong link, if you have such a language?
P.S. Seem like armory corrects the invalid input. Even if you have not "link", still opens the appropriate page.
Example, I see russian page.
http://eu.battle.net/wow/character/l...ggoji/advanced
Old 24.05.2013, 21:15   #5
Shestak
 Junior Member User Information

Shestak's Avatar
Wetxius, maybe this? https://github.com/sakaras/ShestakUI...7f2b2f32ff3efd
Old 25.05.2013, 16:30   #6
Wetxius
 Assistant User Information

Wetxius's Avatar
Merged this fix.

Добавлено через 3 часа 13 минут
Updated ArmoryLink. Fix link, simplify realmlocal.
Say Thank:
Shestak (25.05.2013)

Tags
armory link

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Fixed] Chat whisper opens Armory window anj Bugs Reports 1 03.04.2011 14:31


Mobile Style Русский English Deutsch Italian Chinese