View Bug Report
Not compatible with last WoW patch (2.0.1)
Bug #: 2703
File: Yatlas
Date: 12-14-06 10:46 AM
By: FireFly
Status: Fixed
Yep, that is it. Not really a bug, just that we can't use it if it isn't (partly) rewritten.
(No, just changing Toc info don't work)

This is the major error:
When you open Yatlas window from the Mini-map button, you get this error message:
Interface/AddOns/Yatlas/Yatlas.lua:999:
attempt to perform arithmetic on field 'update_time' (a nil value)
The "OK" button can't be clicked, or, nothing happens. I'd guess the error window simply pops up again, instantly after closing the first one.

You can actually move around the map in the background, but as soon as you drag it, it turns all black.

----------

On startup, you also get an error message:
Interface/AddOns/Yatlas/Points.lua:18:
attempt to index global 'arg' (a nil value)
This is nothing really that serious, just click "OK"; it appears only once per session.

----------

Here's the rows and nearby rows in the code:

Row 998-1018 in Yatlas.lua:
Code:
function YatlasFrameTemplate:OnUpdate(elapsed)
    self.update_time = self.update_time + elapsed;


    if(self.update_time > 0.5) then
        YAPoints_OnUpdate(self, self.update_time);

        if(GetMapInfo() ~= self.opt.Map) then
            self.resetmapzoom = 1;
            SetMapZoom(Yatlas_WorldMapIds[self.opt.Map]);
        else
            self:OnWorldMapUpdate()
        end
        self.update_time = 0;

        if(self.resetmapzoom) then
            self.resetmapzoom = nil;
            SetMapToCurrentZone()
        end
   end
end
Row 17-19 in Points.lua:
Code:
function YAPoints_RegisterFrame(...)
    frames[arg[1]] = 0;
end

RSS 2.0 Feed for Bug CommentsNotes Sort Options
By: snuttis68 - 12-26-06 08:54 AM
I got almost the same error too.
As can be seen here: http://home.malmo2.net/still/bilder/wow/yatlas-error.gif there is something not quite right yet.