Gatherer AddOn Busted in Winterspring

Post Reply
User avatar
Gifted
Posts: 118

Gatherer AddOn Busted in Winterspring

Post by Gifted » Sun Mar 29, 2020 3:39 pm

It seems to be working in all other zones and worked prior to the patch. Here's the message from gatherer...

ERROR: Interface\AddOns\Gatherer\Gatherer.lua:1321: attempt to index a local 'r' (a nil value)

~Gifted

User avatar
Gifted
Posts: 118

Re: Gatherer AddOn Busted in Winterspring

Post by Gifted » Sun Mar 29, 2020 4:09 pm

Sorry, I'm helping with testing the new patch, so most players will be unaffected by this bug. I've posted on the Turtle WoW discord under 'patch qa'.

~Gifted

Comak
Posts: 1

Re: Gatherer AddOn Busted in Winterspring

Post by Comak » Sat Jul 30, 2022 11:06 am

I had a similar error in line 1401.
Solved the problem by adding a check for nil.
Here is the code and the fix

function Gatherer_AbsCoord(continent, zone, x, y)
if ((continent == 0) or (zone == 0)) then return x, y; end
local r = GatherRegionData[continent][zone];
if (r == nil) then return 0,0; end -- fix
local absX = x * r.scale + r.xoffset;
local absY = y * r.scale + r.yoffset;
return absX, absY;
end

Caniko
Posts: 1

Re: Gatherer AddOn Busted in Winterspring

Post by Caniko » Sat Aug 06, 2022 1:30 pm

Hey folks,

I made a TurtleWoW specific Gatherer with the fix, find it here:
https://github.com/caniko/TurtleWoW-Gatherer

Kind regards

User avatar
Faustorgo
Posts: 42
Location: Lima - Perú
Contact:

Re: Gatherer AddOn Busted in Winterspring

Post by Faustorgo » Sun Aug 07, 2022 1:55 am

Caniko wrote:
Sat Aug 06, 2022 1:30 pm
Hey folks,

I made a TurtleWoW specific Gatherer with the fix, find it here:
https://github.com/caniko/TurtleWoW-Gatherer

Kind regards
Man amazing thanks turtle_in_love_head turtle_in_love_head turtle_in_love_head

Post Reply