Topic Stalker LUA Error
Ixbillyxi
Tichondrius
Ixbillyxi
90 Orc Warrior
10905
Edited by Ixbillyxi on 9/20/12 10:15 PM (PDT)
Anyone know how to fix these LUA Errors? The Author has since abandon the addon and for MoP this will be a very good addon for World PvP.

This is the version of Stalker I am using:
http://www.wowinterface.com/downloads/info19738-Stalker-FanUpdate.html

80x Stalker-4.2.03\StalkerData.lua:186: Invalid unit name (nil)
<in C code>
Stalker-4.2.03\StalkerData.lua:186: in function "AddPlayer"
Stalker\Stalker-4.2.03.lua:575: in function "ProcessHostileEvent"
Stalker\Stalker-4.2.03.lua:390: in function "?"
CallbackHandler-1.0\CallbackHandler-1.0-6.lua:147: in function <CallbackHandler-1.0\CallbackHandler-1.0.lua:147>
<string>:"safecall Dispatcher[15]":4: in function <string>:"safecall Dispatcher[15]":4
<in C code>
<string>:"safecall Dispatcher[15]":13: in function "?"
CallbackHandler-1.0\CallbackHandler-1.0-6.lua:92: in function "Fire"
Chatter-v.1.3.4-8-g85a19f8\Libs\AceEvent-3.0\AceEvent-3.0-3.lua:120: in function <Chatter\Libs\AceEvent-3.0\AceEvent-3.0.lua:119>

Locals:
nil


Also I'm having problems with one of the columns in the Stalker Viewer that keeps showing a "?". I think it has to do with the GetLocationName?

if view == VIEW_PLAYER_EVENT then
local zone = GUI.ListFrameFields[view][row]["Zone"]
local _, z = Data:GetLocationName(unit.locC, unit.locZ)
zone:SetText(z or "?")
zone:SetTextColor(r, g, b)


Also another thing I want to do with this addon is to "ADD" a column to show the realm the player I detect is on because of the newly added Cross-Realm technology. This column will just be added to the event view of the players detected which would be with the columns Source and Zone. My question I'm asking is what is the callout to determine the player's realm and set it up the way the addon has it for the above code?
Ixbillyxi
Tichondrius
Ixbillyxi
90 Orc Warrior
10905
This might actually be the cause of the zone column not working but still not too sure:

function StalkerData:LoadMapData()
local continents = {GetMapContinents()}
for index, name in ipairs(continents) do
db.map[index] = {GetMapZones(index)}
db.map[index].name = name
end
end

function StalkerData:GetLocationName(continent, zone)
local c = db.map[continent] and db.map[continent].name or nil
local z = c and (db.map[continent][zone] and db.map[continent][zone] or nil) or nil
return c, z
end
Ixbillyxi
Tichondrius
Ixbillyxi
90 Orc Warrior
10905
Anyone know how to fix this?
Unkle
Kirin Tor
Unkle
90 Draenei Shaman
12610
At the very least, the AddOn needs its libraries updated to the latest versions of Ace3. Stalker-4.2.03\StalkerData.lua:186: Invalid unit name (nil) This means that when a unit name is being handled by the code at line 186 in StalkerData.lua the name is "nil" which tells me that somewhere earlier there is an error with setting the unit name in "AddPlayer" .

I'm too busy now to take on a major rewrite or even patch of someone else's code right now, but you might consider asking the author of the fan update if they're still interested in patching it.
Ixbillyxi
Tichondrius
Ixbillyxi
90 Orc Warrior
10905
Does anyone have any knowledge on how to fix some of these errors?
Frostybolts
Destromath
Frostybolts
81 Undead Mage
7720
Hey, has anyone taken over this addon, or does anyone know of a replacement?

I could start working on it, but I really hate Lua

Please report any Code of Conduct violations, including:

Threats of violence. We take these seriously and will alert the proper authorities.

Posts containing personal information about other players. This includes physical addresses, e-mail addresses, phone numbers, and inappropriate photos and/or videos.

Harassing or discriminatory language. This will not be tolerated.

Click here to view the Forums Code of Conduct.

Report Post # written by
Reason
Explain (256 characters max)

Reported!

[Close]