• 0

    posted a message on Help updating Grid plugins for 4.0
    Just pulled down the most recent versions of Grid and GridStatusHots

    I have one major error in what's released:
    Date: 2010-10-14 09:20:29
    ID: 10
    Error occured in: Global
    Count: 1
    Message: ..\AddOns\GridStatusHots\GridStatusHots.lua line 3:
       Cannot find a library instance of "AceLocale-3.0".
    Debug:
       [C]: ?
       [C]: error()
       !Swatter\Support\LibRevision.lua:47: LibStub()
       GridStatusHots\GridStatusHots.lua:3: in main chunk
    AddOns:
      Swatter, v5.9.4933 (WhackyWallaby)
      Grid, vr1364
      GridStatusHots, v4.010a
      BlizRuntimeLib_enUS v4.0.1.40000 <us>
      (ck=76)


    Related Error in each Locale file:
    Date: 2010-10-14 09:20:29
    ID: 2
    Error occured in: Global
    Count: 1
    Message: ...\AddOns\GridStatusHots\GridStatusHotsLocale_enUS.lua line 1:
       Cannot find a library instance of "AceLocale-3.0".
    Debug:
       [C]: ?
       [C]: error()
       !Swatter\Support\LibRevision.lua:47: LibStub()
       ...\AddOns\GridStatusHots\GridStatusHotsLocale_enUS.lua:1: in main chunk
    AddOns:
      Swatter, v5.9.4933 (WhackyWallaby)
      Grid, vr1364
      GridStatusHots, v4.010a
      BlizRuntimeLib_enUS v4.0.1.40000 <us>
      (ck=76)
    Posted in: AddOn HELP!
  • 0

    posted a message on Help updating Grid plugins for 4.0
    Quote from Eluv
    Thanks for all the hard work guys, but when I enable GridStatusHots, along with the suggested changes to the files, it doesn't show up in the status indicators, nor is there a checkbox for gridstatushots in the "debug" window.

    Would love some help!

    I'm not sure if you have done it, but I have the Alpha of Grid installed (along with alphas of my other modules).

    http://www.wowace.com/addons/grid/files/ r1362.

    Outside of that I'll attach a zip of my entire folder for you to use. Again, I've never touched lua or any ace addons before so I make no long term guarantees :)
    Posted in: AddOn HELP!
  • 0

    posted a message on Help updating Grid plugins for 4.0
    Quote from MSaint
    MrHumpty, since all you are doing is setting L[text] = text, you can go ahead and replace your locale code with:

    local L = {}
    setmetatable(L,{ __index = function(l, text) return text end})
    


    instead of having to have them all typed out individually.


    Noted MSaint. I figured as I was doing it that there was a more efficient way to do it.
    Posted in: AddOn HELP!
  • 0

    posted a message on Help updating Grid plugins for 4.0
    My Fixes to GridStatusHots

    File-GridStatusHots.lua
    --{{{ Libraries
    local L = GridStatusHotsLocale
    --}}}
    
    ...
    
    local GridStatusHots = Grid:GetModule("GridStatus"):NewModule("GridStatusHots", "AceTimer-3.0")
    
    ...
    
    function GridStatusHots:OnEnable()
    	if not GridRoster then
    		RL = AceLibrary("Roster-2.1")
    	end
    	if self.TimerSet == true then
    		self.CancelTimer(self.UpdateTimer, true)
    	end
    	self.UpdateTimer = self:ScheduleRepeatingTimer("UpdateAll", GridStatusHots.db.profile.frequency)
    	self.TimerSet = true
    --	self:ScheduleRepeatingEvent("GHS_Refresh", self.UpdateAll, GridStatusHots.db.profile.frequency, self)
    end
    
    function GridStatusHots:UpdateFrequency()
    	if self.TimerSet == true then
    		self.CancelTimer(self.UpdateTimer, true)
    	end
    	self.UpdateTimer = self:ScheduleRepeatingTimer("UpdateAll", GridStatusHots.db.profile.frequency)
    	self.TimerSet = true
    end
    


    New File - GSHLocale-enUS.lua
    local L = {}
    L["Check, if you want to see a countdown for your Flash of Light - HoT behind your Sacred Shield (i.e. 25-10)"] = "Check, if you want to see a countdown for your Flash of Light - HoT behind your Sacred Shield (i.e. 25-10)"
    L["Show Flash of Light - HoT"] = "Show Flash of Light - HoT"
    L["Check, if you want to see the total of HoTs behind the countdown of your HoT(i.e. 13-5)"]="Check, if you want to see the total of HoTs behind the countdown of your HoT(i.e. 13-5)"
    L["Show HoT-Counter"] = "Show HoT-Counter"
    L["Check, if you want each stack of Lifebloom to count as 1 HoT"]="Check, if you want each stack of Lifebloom to count as 1 HoT"
    L["Count Lifebloom as 1 HoT per stack"] = "Count Lifebloom as 1 HoT per stack"
    L["Seconds between status refreshes"] = "Seconds between status refreshes"
    L["Refresh frequency"] = "Refresh frequency"
    L["Color 6"] = "Color 6"
    L["Color 5"] = "Color 5"
    L["Color 4"] = "Color 4"
    L["Color 3"] = "Color 3"
    L["Color 2"] = "Color 2"
    L["Threshold to activate color 3"] = "Threshold to activate color 3"
    L["Threshold to activate color 2"] = "Threshold to activate color 2"
    L["Color when player has three charges of grace."] = "Color when player has three charges of grace."
    L["Color when player has two charges of grace."] = "Color when player has two charges of grace."
    L["Color when player has 5 or more charges of Earth Shield."] = "Color when player has 5 or more charges of Earth Shield."
    L["Color when player has 4 charges of Earth Shield."] = "Color when player has 4 charges of Earth Shield."
    L["Color when player has 3 charges of Earth Shield."] = "Color when player has 3 charges of Earth Shield."
    L["Color when player has 2 charges of Earth Shield."] = "Color when player has 2 charges of Earth Shield."
    L["Color when player has six charges of PoM."] = "Color when player has six charges of PoM."
    L["Color when player has five charges of PoM."] = "Color when player has five charges of PoM."
    L["Color when player has four charges of PoM."] = "Color when player has four charges of PoM."
    L["Color when player has three charges of PoM."] = "Color when player has three charges of PoM."
    L["Color when player has two charges of PoM."] = "Color when player has two charges of PoM."
    L["Hots: My Grace Duration + Stack"] = "Hots: My Grace Duration + Stack"
    L["Hots: My Grace Stack"] = "Hots: My Grace Stack"
    L["Hots: My Beacon of Light"] = "Hots: My Beacon of Light"
    L["Hots: My Prayer of Mending"] = "Hots: My Prayer of Mending"
    L["Hots: My Flash of Light"] = "Hots: My Flash of Light"
    L["Hots: My Earthliving"] = "Hots: My Earthliving"
    L["Hots: My Riptide"] = "Hots: My Riptide"
    L["Hots: My Sacred Shield"] = "Hots: My Sacred Shield"
    L["Hots: My Sheath of Light"] = "Hots: My Sheath of Light"
    L["Hots: My Wild Growth"] = "Hots: My Wild Growth"
    L["Hots: My Lifebloom Stack Colored"] = "Hots: My Lifebloom Stack Colored"
    L["Hots: My Lifebloom"] = "Hots: My Lifebloom"
    L["Hots: My Regrowth"] = "Hots: My Regrowth"
    L["Hots: My Rejuvenation"] = "Hots: My Rejuvenation"
    L["Hots: My Renew"] = "Hots: My Renew"
    L["Hots: My Gift of the Naaru"] = "Hots: My Gift of the Naaru"
    L["Hots: My Earth Shield"] = "Hots: My Earth Shield"
    L["Hots: Hot Count"] = "Hots: Hot Count"
    L["My HoTs"] = "My HoTs"
    GridStatusHotsLocale = L


    File - GridStatusHots.toc
    GSHLocale-enUS.lua --GridStatusHots_locale.lua


    Deleted File - GridStatusHots_locale.lua

    I can't access the repository from my work so if someone wants to verify my work and submit the changes go for it... it's working for me at the moment on my druid w/o any errors.
    Posted in: AddOn HELP!
  • 0

    posted a message on Help updating Grid plugins for 4.0
    I'm looking for some help getting GridStatusHots to work.

    ScheduleRepeatingEvent is no longer in ACEEvent. Can anybody advise me in getting that working again?

    I'm hacking away here trying to get stuff working but in no way am I versed in lua or any of these libraries.

    I'd like to think I need to find away to call ACE2's Event module which includes that method and functionality.

    Any direction would be appreciated.
    Posted in: AddOn HELP!
  • To post a comment, please or register a new account.