+ Reply to Thread
Results 1 to 8 of 8

Thread: Issues with trying to test first addon

  1. #1
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default Issues with trying to test first addon

    In a nutshell this is my first time working with lua and making an addon. I'm trying to test it on the PTS but it won't show up under the Addons option on the Character screen.

    I have the RiftAddon.toc file and my lua file in a folder that are in the Addons folder for the PTS, but no beans.
    Even free cost too much now

  2. #2
    Telaran
    Join Date
    Oct 2011
    Posts
    86

    Default

    make sure the folder name is the same as the name you set in the toc file.

    You may also want to post what you have in your toc file. You may be missing some required variables.
    Last edited by TinnerKB; 01-15-2012 at 07:15 AM.

  3. #3
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Identifier = "WhatAmIDoing"

    Name = "WhatAmIDoing"

    Description = "Tracks Achievements"

    Author = "Montage"
    Website = "none"
    Email = "****@hotmail.com"

    Version = "1.0 Beta"

    Environment = "1.0"

    RunOnStartup = {
    "whatamidoing.lua",
    }

    SavedVariables = {
    WAID_Config = "account",

    }
    Last edited by Credo; 01-15-2012 at 02:42 PM.
    Even free cost too much now

  4. #4
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Okay finally got it to show up, but nothing is there. I tried even making just a blue bar show up and nothing. Any tips?
    Even free cost too much now

  5. #5
    Champion
    Join Date
    Jun 2011
    Posts
    561

    Default

    • Environment has to be "1.6"
    • You should include shortname = "addonshortname" if you intend to print anything to the chat
    • Did you create a context to parent your frame to?
    • please post the code of your lua file cause otherwise any help will just be guess work

    Cheers
    N.

  6. #6
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    -- Testing

    Test_Placement = {x=0,y=0}
    local context = UI.CreateContext("GUI")
    local tester = {}

    local function test()
    local bar = table.remove(tester)
    if not bar then
    bar.text = UI.CreateFrame("Text", "Text", bar)
    bar.solid = UI.CreateFrame("Frame", "Solid", bar)
    bar.solid:SetLayer(-1)
    bar.text:SetText("test")
    bar.text:SetHeight(bar.text:GetFullHeight())
    bar.text:SetPoint("TOPLEFT", bar, "TOPLEFT")
    bar.text:SetPoint("BOTTOM", bar, "BOTTOM")
    bar:SetPoint("BOTTOM", bar.text, "BOTTOM")
    bar.solid:SetPoint("TOPLEFT", bar, "TOPLEFT")
    bar.solid:SetPoint("BOTTOMRIGHT", bar, "BOTTOMRIGHT")
    bar:SetWidth(320)
    bar:SetHeight(320)
    bar:SetBackgroundColor(0.2,0.2,0.6,0.3)

    end
    bar:SetVisible(true
    local function tick()
    if resynch then
    refresh(Inspect.Time.Frame())
    resynch = false
    else
    local time = Inspect.Time.Frame()
    for _, v in ipairs(tester) do
    v:Tick(time)
    end
    end
    end
    test()
    table.insert(Event.System.Update.Begin, {tick, "Test", "refresh"})
    end
    Even free cost too much now

  7. #7
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    Wish I could edit these posts. Okay so now I can get a window to appear for ~1 frame and then it disappears. Basically that's what I want to know. How do I keep the stupid window showing.

    function test()
    test = {}
    test = UI.CreateContext("TEST")
    gui = UI.CreateFrame("RiftWindow","TEST",test)
    gui:SetVisible(true)
    gui:SetLayer(1)
    gui:SetPoint("CENTERLEFT",UIParent,"CENTERRIGHT",0 ,0)
    gui:SetHeight(500)
    gui:SetWidth(500)
    end
    test()
    Last edited by Credo; 01-17-2012 at 04:17 PM.
    Even free cost too much now

  8. #8
    Ascendant Credo's Avatar
    Join Date
    Jan 2011
    Posts
    4,172

    Default

    I finally got it to show up and stay! I notice it leaks memory like crazy though, is there a way to deal with the constantly increasing addon memory build up?
    Even free cost too much now

+ Reply to Thread

Bookmarks

Posting Permissions

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