• 0

    posted a message on SavedVariable value won't stick.
    Would it be better then to do all the table definitions and such in OnEnable? Sounds like OnInitialize (based on what Torhal said) could cause code to run before the player is completely loaded...
    Posted in: Need Help?
  • 0

    posted a message on What Does GetZoneText() Give for Capitals?
    @Farmbuyer

    Ah ha! Can't believe I didn't think of that myself... especially the Space Goat part...

    @Torhal - Thanks, but I'm not printing the city names; I'm checking that the player is in a capital city...
    Posted in: Need Help?
  • 0

    posted a message on Trying to Print to Other Than Default Window
    After a lot of trial and error, I got it working. Thanks..


    Tek: Question--could it be possible to modify your debugger that it allows me to drag and scale the window, and copy/paste and scroll through text?

    Thanks!
    Posted in: Need Help?
  • 0

    posted a message on SavedVariable value won't stick.
    Thanks, that solved it...

    So, if OnInit is what I need in this case, what would I ever use OnEnable for?
    Posted in: Need Help?
  • 0

    posted a message on SavedVariable value won't stick.
    Neither...it's not inside OnInit or OnEnable...I'm not even using OnEnable so far (Should I be?)

    I register the addon with Ace3, setup my debugging stuff, define my default saved variable options table, connect to the AceDB immediately after that with the table, and then move on to the configurations table....All of this is outside the OnInit.
    Posted in: Need Help?
  • 0

    posted a message on SavedVariable value won't stick.
     
    if SK.db.char.FIRST_RUN == true then --If this is the first time the addon is run for this character, we need to ask the user if he/she wants to configure the addon.
         
         SK.db.char.FIRST_RUN = false --Set the FIRST_RUN flag to false since the next time this code is run, it won't be the first time for this character.


    The above code always evaluates to true and the code to turn the value to false doesn't seem to stick on the next load. It remains false until the UI is reloaded; after that, it's back to true again.

    How do I get it to stick?
    Posted in: Need Help?
  • 0

    posted a message on What Does GetZoneText() Give for Capitals?
    Yeah, so I could probably create an Alliance character on a Normal server and take her to all of the ally cities, but man...that would be a lot of travelling...

    Maybe I could get a mage to port me pro bono...new character = 0 money.
    Posted in: Need Help?
  • 0

    posted a message on Making a zip file for Curseforge
    You might want to check this out: http://kb.wowace.com/projects/packaging-an-addon-for-curse/

    It's a guide I wrote based on the information contained in http://forums.curseforge.com/showthread.php?t=17375

    Its targeted at Windows, but everything can be translated to Mac with the right Subversion client.
    Posted in: Need Help?
  • 0

    posted a message on Packaging an Addon for Curse
    I noticed that the KB article is only visable at WoWAce.com. Can it get a link at CurseForge?
    Posted in: Need Help?
  • 0

    posted a message on What Does GetZoneText() Give for Capitals?
    Well, going to the city myself is all fine an dandy with my Horde character, but marching my happy @$$ into Stormwind is akin to to going to the state prison and getting to know "Big Bubba" a little better than you would ever like to. Not smart...

    Was kind of hoping someone might have an addon that already pulls this info and might be able to tell me.
    Posted in: Need Help?
  • 0

    posted a message on Trying to Print to Other Than Default Window
    Trying to use your tekDebug...

    ---------------------------------------------
    --                  Debug                  --
    ---------------------------------------------
    local SK_DEBUG_FRAME = tekDebug and tekDebug:GetFrame("SK")
    local DEBUG = true --Master debug variable. If true, debug messages that follow will print.
    local function D(s) --Function that will be called when printing debug messages.
     if DEBUG then --If debugging, format the string and call tekDebug's AddMessage() method, passing it the debug string.
      local s = string.join(", ", tostringall(s) )
      s = s:gsub("([=:]),", "%1")
      local s  = "|cFFff6633SK Debug:|cFFE6E82B",s
      SK_DEBUG_FRAME:AddMessage(s)
     end
     return s
    end --End Debug Function.


    All I get is "SK Debug:" written to the frame. None of the actual messages I'm passing are working.

    Messages are being passed like this:

    D("Declaring AceConfig config table.")
    Posted in: Need Help?
  • 0

    posted a message on Registering Chat Command Not Working
    Your first bit of code that registers the chat command and mine are exactly the same...Why won't mine register a chat command? Typing "/sk" does nothing but get the autoreponse from WoW saying "type /help for more information" or whatever it says.

    What I want do is open the options frame IF no arguements are passed. Else, process the arguments. Doesn't Ace have a built in ability to handle arguments?
    Posted in: Need Help?
  • 0

    posted a message on What Does GetZoneText() Give for Capitals?
    Can someone please tell me what GetZoneText() will give for capital cities?

    I'm not sure if the zones have "City" or "The" in the name (i.e. "The Undercity" or "Shattrath City").

    Thanks!
    Posted in: Need Help?
  • 0

    posted a message on Trying to Print to Other Than Default Window
    Ah. Well, that explains why I'm having trouble. So, the question is then, how do I go about printing to my own chat frame like Auctioneer does with its scan results?
    Posted in: Need Help?
  • 0

    posted a message on Registering Chat Command Not Working
    Trying to register my addon's config/options and the chat command using the code below. It doesn't throw an error, but /sk doesn't do anything. WoW acts like the chat command was never registered.

     
    local SK_CONFIG = LibStub("AceConfig-3.0")
        SK_CONFIG:RegisterOptionsTable("SK", CONFIG_TABLE, {"/sk"})
       self.optionsFrame = LibStub("AceConfigDialog-3.0"):AddToBlizOptions("SK", "SK")
    Posted in: Need Help?
  • To post a comment, please or register a new account.