Grid-42967\GridLayout.lua:927: attempt to perform arithmetic on a nil value
AceAddon-2.0-42430 (AceAddon-2.0):927: in function <Interface\AddOns\AceAddon-2.0\AceAddon-2.0.lua:920>
<in C code>: ?
AceEvent-2.0-40601 (AceEvent-2.0):232: in function `TriggerEvent'
AceEvent-2.0-40601 (AceEvent-2.0):910: in function <Interface\AddOns\AceEvent-2.0\AceEvent-2.0.lua:903>
Requests:
Can you add to the GridLayoutLayouts.lua By Group 15 w/Pets with just three rows/columns. I like to have my dying classes nearby in a 10-man raid.
My pet frames are always green (the health bar). Is there a problem with some enabled frame options? If not, perhaps the pets could be colored like hunter or warlock class, respectively.
Here is the german localization file GridLocale-deDE.lua (reordered some entries to reflect the order in enUS, one "low mana" entry deleted):
local L = AceLibrary("AceLocale-2.2"):new("Grid")
local strings_deDE = {
--{{{ GridCore
["Debugging"] = "Debuggen",
["Module debugging menu."] = "Debug-Men\195\188",
["Debug"] = "Debug",
["Toggle debugging for %s."] = "Aktiviere das Debuggen f\195\188r %s.",
["Configure"] = "Konfigurieren"
["Configure Grid"] = "Grid konfigurieren",
--}}}
--{{{ GridFrame
["Frame"] = "Rahmen",
["Options for GridFrame."] = "Einstellungen f\195\188r den Grid Rahmen",
["Show Tooltip"] = "Zeige Tooltip",
["Show unit tooltip. Choose 'Always', 'Never', or 'OOC'."] = "Anzeige des Tooltips. W\195\164hle 'Immer', 'Nie', oder 'au?erhalb des Kampfes'.",
["Always"] = "Immer",
["Never"] = "Nie",
["OOC"] = "au\195\159erhalb des Kampfes",
["Center Text Length"] = "L\195\164nge des mittleren Textes",
["Number of characters to show on Center Text indicator."] = "Anzahl des Buchstaben die im mittleren Text angezeigt werden",
["Invert Bar Color"] = "Invertiere die Leistenfarbe",
["Swap foreground/background colors on bars."] = "Tausche die Vordergrund-/Hintergrundfarbe der Leisten",
["Indicators"] = "Indikatoren",
["Border"] = "Rand",
["Health Bar"] = "Gesundheitsleiste",
["Health Bar Color"] = "Gesundheitsleistenfarbe",
["Center Text"] = "Text im der Mitte",
["Center Text 2"] = "2. Text in der Mitte",
["Center Icon"] = "Icon im Zentrum",
["Top Left Corner"] = "Obere linke Ecke",
["Top Right Corner"] = "Obere rechte Ecke",
["Bottom Left Corner"] = "Untere linke Ecke",
["Bottom Right Corner"] = "Untere rechte Ecke",
["Frame Alpha"] = "Rahmentransparenz",
["Options for %s indicator."] = "Optionen f\195\188r den %s Indikator",
["Statuses"] = "Zust\195\164nde",
["Toggle status display."] = "Aktiviere die Anzeige des Zustands",
-- Advanced options
["Advanced"] = "Erweitert",
["Advanced options."] = "Erweiterte Einstellungen",
["Enable %s indicator"] = "Indikator f\195\188r %s ",
["Toggle the %s indicator."] = "Aktiviere den %s Indikator",
["Frame Width"] = "Rahmenbreite",
["Adjust the width of each unit's frame."] = "Die Breite von jedem Einheitenfenster anpassen",
["Frame Height"] = "Rahmenh\195\182he",
["Adjust the height of each unit's frame."] = "Die H\195\182he von jedem Einheitenfenster anpassen",
["Frame Texture"] = "Rahmentextur",
["Adjust the texture of each unit's frame."] = "Die Textur von jedem Einheitenfenster anpassen",
["Corner Size"] = "Eckengr\195\182\195\159e",
["Adjust the size of the corner indicators."] = "Die Gr\195\182\195\159e der Eckenindikatoren anpassen",
["Font"] = "Schriftart",
["Adjust the font settings"] = "Die Schriftart anpassen",
["Font Size"] = "Schriftgr\195\182\195\159e",
["Adjust the font size."] = "Die Schriftg\195\182\195\159e anpassen",
["Orientation of Frame"] = "Ausrichtung der Statusleiste",
["Set frame orientation."] = "Ausrichtung der Statusleiste festlegen",
["Orientation of Text"] = "Ausrichtung des Texts",
["Set frame text orientation."] = "Text Ausrichtung festlegen",
["Icon Size"] = "Icongr\195\182\195\159e",
["Adjust the size of the center icon."] = "Die Gr\195\182\195\159e des Icons im Zentrum anpassen",
--}}}
--{{{ GridLayout
["Layout"] = "Anordnung",
["Options for GridLayout."] = "Optionen f\195\188r die Anordnung von Grid.",
-- Layout options
["Show Frame"] = "Zeige den Rahmen",
["Sets when the Grid is visible: Choose 'Always', 'Grouped', or 'Raid'."] = "Setzt die Sichtbarkeit von Grid: W\195\164hle 'immer', 'in Gruppe', oder 'in Schlachtzug'.",
["Always"] = "immer",
["Grouped"] = "in Gruppe",
["Raid"] = "in Schlachtzug",
["Raid Layout"] = "Schlachtzug-Anordnung",
["Select which raid layout to use."] = "W\195\164hle welche Schlachtzug-Anordnung benutzt wird",
["Show Party in Raid"] = "Zeige Gruppe im Schlachtzug",
["Show party/self as an extra group."] = "Zeigen Gruppe/sich selbst als extra Gruppe an.",
["Horizontal groups"] = "Horizontal gruppieren",
["Switch between horzontal/vertical groups."] = "Wechselt zwischen horizontaler/verikaler Gruppierung",
["Clamped to screen"] = "Im Bildschirm lassen",
["Toggle whether to permit movement out of screen."] = "Legt fest ob der Rahmen im Bildschirm bleiben soll",
["Frame lock"] = "Rahmen sperren",
["Locks/unlocks the grid for movement."] = "Sperrt/entsperrt den Rahmen zum Bewegen",
-- Display options
["Padding"] = "Zwischenabstand",
["Adjust frame padding."] = "Den Zwischenabstand anpassen",
["Spacing"] = "Abstand",
["Adjust frame spacing."] = "Den Abstand anpassen.",
["Scale"] = "Skalierung",
["Adjust Grid scale."] = "Skalierung anpassen.",
["Border"] = "Rand",
["Adjust border color and alpha."] = "Anpassen der Rahmenfarbe und Transparenz.",
["Background"] = "Hintergrund",
["Adjust background color and alpha."] = "Anpassen der Hintergrundfarbe und Transparenz.",
-- Advanced options
["Advanced"] = "Erweitert",
["Advanced options."] = "Erweiterte Einstellungen",
["Layout Anchor"] = "Ankerpunkt des Layouts",
["Sets where Grid is anchored relative to the screen."] = "Setzt den Ankerpunkt von Grid, realtive zum Bildschirm",
["Group Anchor"] = "Ankerpunkt der Gruppe",
["Sets where groups are anchored relative to the layout frame."] = "Setzt den Ankerpunkt der Gruppe, realtive zum Layoutrahmen",
["Reset Position"] = "Position zur\195\188cksetzen",
["Resets the layout frame's position and anchor."] = "Setzt den Ankerpunkt und die Position des Layoutrahmens zur\195\188ck",
--}}}
--{{{ GridLayoutLayouts
["None"] = "Keine",
["By Group 40"] = "40er Gruppe",
["By Group 25"] = "25er Gruppe",
["By Group 25 w/Pets"] = "25er Gruppe mit Begleitern",
["By Group 20"] = "20er Gruppe",
["By Group 15"] = "15er Gruppe",
["By Group 10"] = "10er Gruppe",
["By Class"] = "Nach Klasse",
["Onyxia"] = "Onyxia",
["By Group 25 w/tanks"] = "25er Gruppe mit Tanks",
--}}}
--{{{ GridRange
-- used for getting spell range from tooltip
["(%d+) yd range"] = "(%d+) m Reichweite",
--}}}
--{{{ GridStatus
["Status"] = "Status",
["Options for %s."] = "Optionen f\195\188r %s.",
-- module prototype
["Status: %s"] = "Status: %s",
["Color"] = "Farbe",
["Color for %s"] = "Farbe f\195\188r %s",
["Priority"] = "Priorit\195\164t",
["Priority for %s"] = "Priorit\195\164t f\195\188r %s",
["Range filter"] = "Entfernungsfilter",
["Range filter for %s"] = "Entfernungsfilter f\195\188r %s",
["Enable"] = "Aktivieren",
["Enable %s"] = "Aktiviere %s",
--}}}
--{{{ GridStatusAggro
["Aggro"] = "Aggro",
["Aggro alert"] = "Aggro-Alarm",
--}}}
--{{{ GridStatusAuras
["Auras"] = "Auren",
["Debuff type: %s"] = "Schw\195\164chungszaubertyp: %s",
["Poison"] = "Gift",
["Disease"] = "Krankheit",
["Magic"] = "Magie",
["Curse"] = "Fluch",
["Ghost"] = "Geist",
["Add new Buff"] = "Neuen St\195\164rkungszauber hinzuf\195\188gen",
["Adds a new buff to the status module"] = "F\195\188gt einen neuen St\195\164rkungszauber zum Status Modul hinzu",
["Add new Debuff"] = "Neuen Schw\195\164chungszauber hinzuf\195\188gen",
["Adds a new debuff to the status module"] = "F\195\188gt einen neuen Schw\195\164chungszauber zum Status Modul hinzu",
["Delete (De)buff"] = "L\195\182sche Schw\195\164chungs-/St\195\164rkungszauber",
["Deletes an existing debuff from the status module"] = "L\195\182scht einen Schw\195\164chungszauber vom Status Modul",
["Remove %s from the menu"] = "Entfernt %s vom Men\195\188",
["Debuff: %s"] = "Schw\195\164chungszauber: %s",
["Buff: %s"] = "St\195\164rkungszauber: %s",
["Class Filter"] = "Klassenfilter",
["Show status for the selected classes."] = "Zeige den Status f\195\188r die ausgw\195\164hlte Klasse",
["Show on %s."] = "Zeige %s.",
["Show if missing"] = "Zeige wenn es fehlt",
["Display status only if the buff is not active."] = "Zeige nur den Status wenn der St\195\164rkungszaube nicht aktiv ist",
--["[^%a]"] = "[^%a]",
--}}}
--{{{ GridStatusName
["Unit Name"] = "Namen",
["Color by class"] = "In Klassenfarbe",
--}}}
--{{{ GridStatusMana
["Mana"] = "Mana",
["Mana threshold"] = "Mana Grenzwert",
["Set the percentage for the low mana warning."] = "Setzt den % Grenzwert f\195\188r die Wenig-Mana Warnung",
["Low Mana warning"] = "Wenig-Mana Warnung",
["Low Mana"] = "Wenig Mana",
--}}}
--{{{ GridStatusHeals
["Heals"] = "Heilungen",
["Incoming heals"] = "eingehende Heilung",
["Ignore Self"] = "Sich selbst ignorieren",
["Ignore heals cast by you."] = "Ignoriere Heilungen die von dir gezaubert werden",
["(.+) begins to cast (.+)."] = "(.+) beginnt (.+) zu wirken.",
["(.+) gains (.+) Mana from (.+)'s Life Tap."] = "(.+) bekommt (.+) Mana durch (.+)'s Lebensentzug.",
["^Corpse of (.+)$"] = "^Corpse of (.+)$",
--}}}
--{{{ GridStatusHealth
["Low HP"] = "Wenig HP",
["DEAD"] = "TOT",
["FD"] = "TG",
["Offline"] = "Offline",
["Unit health"] = "Gesundheit",
["Health deficit"] = "Gesundheitsdefizit",
["Low HP warning"] = "Wenig-HP Warnung",
["Feign Death warning"] = "Warnung wenn totgestellt",
["Death warning"] = "Todeswarnung",
["Offline warning"] = "Offlinewarnung",
["Health"] = "Gesundheit",
["Show dead as full health"] = "Zeige Tote mit voller Gesundheit an",
["Treat dead units as being full health."] = "Behandele Tote als h\195\164tten sie volle Gesundheit",
["Use class color"] = "Benutze Klassenfarbe",
["Color health based on class."] = "F\195\164rbe den Gesundheitsbalken in Klassenfarbe",
["Health threshold"] = "Gesundheitsgrenzwert",
["Only show deficit above % damage."] = "Zeige Defizit bei mehr als % Schaden",
["Color deficit based on class."] = "F\195\164rbe das Defizit nach Klassenfarbe",
["Low HP threshold"] = "Wenig HP Grenzwert",
["Set the HP % for the low HP warning."] = "Setzt den % Grenzwert f\195\188r die Wenig-Gesundheit Warnung",
--}}}
--{{{ GridStatusRange
["Range"] = "Entfernung",
["Range check frequency"] = "H\195\164ufigkeit der Reichweitensmessung",
["Seconds between range checks"] = "Sekunden zwischen der Reichweitensmessung",
["Out of Range"] = "Au\195\159er Reichweite",
--}}}
--{{{ GridStatusTarget
["Target"] = "Ziel",
["Your Target"] = "Dein Ziel",
--}}}
}
L:RegisterTranslations("deDE", function() return strings_deDE end)
Bug:
When not in raid, only the grey border Grid frame shows, no square for the player. I have to enable the option "Show party in raid" to see
the player square (when not in raid).
My pet frames are always green (the health bar). Is there a problem with some enabled frame options? If not, perhaps the pets could be colored like hunter or warlock class, respectively.
Providing options for pet color is on my to do list. Right now, it's just a very ugly (but easily distinguishable) green, yes.
Quote from Elbereth »
When not in raid, only the grey border Grid frame shows, no square for the player. I have to enable the option "Show party in raid" to see the player square (when not in raid).
Grid-42967\GridLayout.lua:459: attempt to index global 'self' (a nil value)
Dewdrop-2.0-42392 (DewdropLib):630: in function `func'
<string>:"*:OnColorSelect":3: in function <[string "*:OnColorSelect"]:1>
<in C code>: in function `SetColorRGB'
Dewdrop-2.0-42392 (DewdropLib):640: in function <...erface\AddOns\DewdropLib\Dewdrop-2.0\Dewdrop-2.0.lua:604>
The (hunter) pet square is now black (healthbar) and lights up to a dark brown when hovering over it.
My petsquares are black, i think it has something to do with GridLayout.db.profile.PetColor not properly initialized. If i use (your old) PETCOLOR instead of GridLayout.db.profile.PetColor it works like before, so i tryed something similar. I replaced in GridStatusHealth:UnitClassColor(name)
return (u and RAID_CLASS_COLORS[u.class]) or GridLayout.db.profile.PetColor
with
return (u and RAID_CLASS_COLORS[u.class]) or (RAID_CLASS_COLORS["HUNTER"])
and in GridStatusName:UpdateUnit(name, unitid)
color = RAID_CLASS_COLORS[u.class] or GridLayout.db.profile.PetColor
with
color = RAID_CLASS_COLORS[u.class] or (u.class=="PET" and RAID_CLASS_COLORS["HUNTER"])
So now my pets look like hunters. Thats what i want (in half of the cases). How can i diffrentiate between hunter and warlockpets, so that warlockpets look like warlocks?
Yesterday i noticed, also mindcontrolled units are added to Grid. Can we diffrentiate this units too?
Thanks,
Elbereth.
So now my pets look like hunters. Thats what i want (in half of the cases). How can i diffrentiate between hunter and warlockpets, so that warlockpets look like warlocks?
I don't think this is easily possible, since there's no way to retrieve a pet's owner from the pet unit. You'd have to hardcode some pet types - e.g. if it's an imp, succubus, etc. then use lock color, else use hunter color.
I have just committed a new option to allow different strategies for pet coloring (Owner's class, Creature Type or Pet Color).
Please test each one of them. I might add options to change the creature type colors, but I'd love to get interesting default values. So if anyone has good colors for "Beast", "Demon" and "Humanoid", please share :-)
Grid-42967\GridLayout.lua:1110: Roster-2.1: Bad argument #2 to `GetUnitObjectFromUnit'. "raidt12" is not a legitimate UnitID.
<in C code>: ?
AceEvent-2.0-40601 (AceEvent-2.0):269: in function `TriggerEvent'
Roster-2.1-39966 (RosterLib):386: in function `CreateOrUpdateUnit'
Roster-2.1-39966 (RosterLib):204: in function `?'
AceEvent-2.0-40601 (AceEvent-2.0):684: in function <Interface\AddOns\AceEvent-2.0\AceEvent-2.0.lua:671>
<in C code>: ?
AceEvent-2.0-40601 (AceEvent-2.0):329: in function <Interface\AddOns\AceEvent-2.0\AceEvent-2.0.lua:310>
Any bug occuring with this version of Grid should be posted here.
Also, any suggestions concerning pet support should be posted here.
Keep in mind that this version is unstable, a work in progress. You'll know when it is deemed stable when it's merged into trunk.
Grid-42967\GridLayout.lua:927: attempt to perform arithmetic on a nil value
AceAddon-2.0-42430 (AceAddon-2.0):927: in function <Interface\AddOns\AceAddon-2.0\AceAddon-2.0.lua:920>
<in C code>: ?
AceEvent-2.0-40601 (AceEvent-2.0):232: in function `TriggerEvent'
AceEvent-2.0-40601 (AceEvent-2.0):910: in function <Interface\AddOns\AceEvent-2.0\AceEvent-2.0.lua:903>
Elbereth.
This is now fixed.
Thanks for the report.
http://svn.wowace.com/wowace/branches/Grid/jerry/Grid/
There is no zipped version (yet). Just grab the files and you are good to go.
Have fun,
Elbereth.
Can you add to the GridLayoutLayouts.lua By Group 15 w/Pets with just three rows/columns. I like to have my dying classes nearby in a 10-man raid.
My pet frames are always green (the health bar). Is there a problem with some enabled frame options? If not, perhaps the pets could be colored like hunter or warlock class, respectively.
Here is the german localization file GridLocale-deDE.lua (reordered some entries to reflect the order in enUS, one "low mana" entry deleted):
Bug:
When not in raid, only the grey border Grid frame shows, no square for the player. I have to enable the option "Show party in raid" to see
the player square (when not in raid).
Thanks,
Elbereth.
Providing options for pet color is on my to do list. Right now, it's just a very ugly (but easily distinguishable) green, yes.
I'll look into it.
I missed a comma after
New translations:
The entry
is missing in GridLocale-enUS.lua, but is still required.
Unitsquare is now showing when alone. Pet support in group is still in work or am i missing a switch?
Elbereth.
I have it on my copy.
There is no pet support in group for now, yes.
The (hunter) pet square is now black (healthbar) and lights up to a dark brown when hovering over it.
Elbereth.
Changing color works now, but i cannot test it at the moment. There is never a hunter, if you need one.
If i am in healing range, the square is now totaly black.
Elbereth.
The petsquare is still black.
Elbereth.
with
and in GridStatusName:UpdateUnit(name, unitid)
with
So now my pets look like hunters. Thats what i want (in half of the cases). How can i diffrentiate between hunter and warlockpets, so that warlockpets look like warlocks?
Yesterday i noticed, also mindcontrolled units are added to Grid. Can we diffrentiate this units too?
Thanks,
Elbereth.
I don't think this is easily possible, since there's no way to retrieve a pet's owner from the pet unit. You'd have to hardcode some pet types - e.g. if it's an imp, succubus, etc. then use lock color, else use hunter color.
Elbereth.
I have just committed a new option to allow different strategies for pet coloring (Owner's class, Creature Type or Pet Color).
Please test each one of them. I might add options to change the creature type colors, but I'd love to get interesting default values. So if anyone has good colors for "Beast", "Demon" and "Humanoid", please share :-)
Elbereth.
With the two other options i get the same coloring.
Elbereth.