Thread Tools Display Modes
11-02-14, 09:43 PM   #81
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Thanks. I'd already added those but listed them as "hidden" realms like the "internal record" ones. I've now switched those realms over to use those IDs, and listed the old ID as "hidden" just in case. Hidden realms are included for region detection, but won't return any information if you look them up by ID.

I've gone ahead and tagged a new release, which is not backwards-compatible.
  • GetRealmInfo now takes a name (and optionally a region) rather than an ID, since this is the primary lookup you should be using with data collected from game APIs.
  • GetRealmInfoByName has been removed.
  • A new GetRealmInfoByID method has been added, but you should only use it on IDs previously obtained from GetRealmInfo, or on IDs from your addon's internal data, since the IDs provided by game APIs are often incorrect.
  • All realm info methods now return the same list of values for consistency; see GitHub for updated documentation.
  • Russian realms can now be queried with either the Cyrillic-alphabet or Latin-alphabet version of their names, instead of only with the Cyrillic version.

I think we can almost remove the "beta" label at this point, and I don't plan to make any more changes that break compatibility unless some major flaw in the design comes up.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.
  Reply With Quote
07-22-15, 08:29 AM   #82
Resike
A Pyroguard Emberseer
AddOn Author - Click to view addons
Join Date: Mar 2010
Posts: 1,290
I'm kinda confused now about all the mentioned methods. I basically just want to differentiate the same character-realm profile keys for each regions. So can i safely use the
Lua Code:
  1. local guid = UnitGUID("player")
  2. local realmid = string.match(guid, "^Player%-(%d+)")
method, and store the keys in character-realm-realmid format?
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » Detect Current Region

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off