1. #1

    Loading issues with an Addon i wrote. Care to translate this? :/

    I wrote a very simple addon (my first). All it does is provide 8 buttons in a small panel for calling out the number of enemies incoming to whatever node you're defending. (Think Arathi Basin).

    It all worked fine at first, then after a few logins/outs this error started to occur:

    Code:
    Message: [string "IncomingMainFrame:OnLoad"]:1: attempt to call global 'IncomingMainFrame_OnLoad' (a nil value)
    Time: 06/15/10 17:32:36
    Count: 1
    Stack: [string "*:OnLoad"]:1: in function <[string "*:OnLoad"]:1>
    
    Locals: self = IncomingMainFrame {
     0 = <userdata>
    }
    (*temporary) = nil
    (*temporary) = "attempt to call global 'IncomingMainFrame_OnLoad' (a nil value)"


    Can someone translate this into English so i can understand what's going on?

    Source available here: Frame.xml Frame.lua
    .

  2. #2
    Moderator Cilraaz's Avatar
    15+ Year Old Account
    Join Date
    Feb 2009
    Location
    PA, USA
    Posts
    10,139
    Your Frame.xml calls the function IncomingMainFrame_OnLoad() when it loads. Your Frame.lua does not contain a function named IncomingMainFrame_OnLoad(). Because of this, it's returning a nil value, which is causing the error.

  3. #3
    Thanks a lot!

    It was a remnant of an old way of trying something. Forgot to remove it. Doh
    .

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •