Thread: Update 2.5
View Single Post
08/01/16, 02:40 PM   #42
Weolo
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 79
I just got in to the game and my addon is broken.
Something has changed with GetCharacterInfo(). It is not working the same way it was on PTS.

Lua Code:
  1. local found = false
  2. d("DEBUG currentId: "..GetCurrentCharacterId())
  3. d("DEBUG num characters: "..tostring(GetNumCharacters()))
  4. for i = 1, GetNumCharacters() do
  5.   local name, gender, level, championRank, classId, raceId, alliance, id, locationId = GetCharacterInfo(i)
  6.   d("DEBUG id="..tostring(id).." name="..zo_strformat("<<1>>",name))
  7.   if id == GetCurrentCharacterId() then
  8.     found = true
  9.   end
  10. end
  11. d("DEBUG Found id="..tostring(found))

The above code is generating this. The ids are way too short and some of the ids are duplicated

Screenshot

I am investigating to see if I can fix it myself
  Reply With Quote