GarrisonCommander

GarrisonCommander

4M Downloads

Shipyard LUA error

Scaver opened this issue ยท 5 comments

commented

Everytime I opten naval mission table:

3x bad argument #3 to '?' (Usage: local line = self:CreateFontString([name, drawLayer, templateName]))
[string "=[C]"]: in function CreateFontString' [string "@GarrisonCommander/ShipYard.lua"]:190: in function <GarrisonCommander/ShipYard.lua:171> [string "=(tail call)"]: ? [string "=[C]"]: in function GarrisonShipyardMap_SetupBonus'
[string "@Blizzard_GarrisonUI/Blizzard_GarrisonShipyardUI.lua"]:1162: in function `GarrisonShipyardMap_UpdateMissions'
[string "@Blizzard_GarrisonUI/Blizzard_GarrisonShipyardUI.lua"]:855: in function <.../Blizzard_GarrisonUI/Blizzard_GarrisonShipyardUI.lua:851>

Locals:
(*temporary) = "bad argument #3 to '?' (Usage: local line = self:CreateFontString([name, drawLayer, templateName]))"

commented

i can confirm this error. i get it as well.

commented

Pardon my ignorance, but when do you normal squash bugs?

commented

Only 3 errors? I'm jealous!

817x bad argument #3 to '?' (Usage: local line = self:CreateFontString([name, drawLayer, templateName]))
[string "=[C]"]: in function `CreateFontString'
[string "@GarrisonCommander/ShipYard.lua"]:190: in function <GarrisonCommander/ShipYard.lua:171>
[string "=(tail call)"]: ?
[string "=[C]"]: in function `GarrisonShipyardMap_SetupBonus'
[string "@Blizzard_GarrisonUI/Blizzard_GarrisonShipyardUI.lua"]:1162: in function <.../Blizzard_GarrisonUI/Blizzard_GarrisonShipyardUI.lua:1141>
[string "=[C]"]: ?
[string "=[C]"]: in function `GarrisonShipyardMap_UpdateMissions'
[string "@Blizzard_GarrisonUI/Blizzard_GarrisonShipyardUI.lua"]:866: in function <.../Blizzard_GarrisonUI/Blizzard_GarrisonShipyardUI.lua:851>

Locals:
(*temporary) = "bad argument #3 to '?' (Usage: local line = self:CreateFontString([name, drawLayer, templateName]))"

Increases by 10 every time I click on the Naval Map, no other addons loaded.

commented

I get the same error.

commented

this can be fixed by updating line 190, changing "TOOLTIP" to "OVERLAY":

190c190
< 		addendum.chance=addendum:CreateFontString(nil,"TOOLTIP","GameFontHighlightMedium")
---
> 		addendum.chance=addendum:CreateFontString(nil,"OVERLAY","GameFontHighlightMedium")