View Single Post
10-15-14, 02:55 PM   #56
Bringer
A Fallenroot Satyr
 
Bringer's Avatar
Join Date: Jul 2012
Posts: 26
Trying LibRealmInfo-5

and ran into a couple of problems

First I'm clueless.. lol I tried various ways to get results from library but keep getting nil as result..
copied LibRealmInfo as sub directory of my addon
updated my copy of Libstub from your LibRealmInfo
added LibRealmInfo into my toc
libs\LibStub\LibStub.lua
libs\CallbackHandler-1.0\CallbackHandler-1.0.lua
libs\LibWho-2.0\LibWho-2.0.lua
libs\LibRealmInfo\LibRealmInfo.lua

example logging in on US Cenarius

after event ADDON_LOADED for addon
local regionKey = GetCVar("portal") == "public-test" and "PTR" or GetCVar("portal")
print ("Regionkey ="..regionKey)
local uinID = UnitGUID("Player"); print(uinID) -- character not in world yet.. invalid

response was for me:
US
nil

after all initialization events fired and system stable character in world

local uinID = UnitGUID("Player"); print(uinID)
local realmID, name, apiName, rules, locale, battlegroup, region, timezone, connected, latinName = LibStub("LibRealmInfo"):GetRealmInfoByUnit("Player")
print (realmID) ... print(latinName) all returned nil

response for me was:
Player-1168-066A8EE3
nil


Second I found when doing x = UnidGUID("Player");print(x) that some realms have been renumbered.

US Cenarius which was 2 is now reporting as 1168
US Terokkar which was 1563 is now 1070
US Elune and Maelstrom have retained their numbers

edit: follow up .. 1168 is in the character transfer list as realm Blackmoore
1070 is the response code for both terokkar and Alexstrasza !!!

Last edited by Bringer : 10-15-14 at 05:36 PM.
  Reply With Quote