Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shipyard LUA error #59

Open
Scaver opened this issue Dec 18, 2022 · 5 comments
Open

Shipyard LUA error #59

Scaver opened this issue Dec 18, 2022 · 5 comments

Comments

@Scaver
Copy link

Scaver commented Dec 18, 2022

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]))"

@beltic
Copy link

beltic commented Jan 9, 2023

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

@beltic
Copy link

beltic commented Jan 13, 2023

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

@eTzmNcbkrng
Copy link

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.

@SargonStarblade
Copy link

I get the same error.

@patixa
Copy link

patixa commented Feb 13, 2023

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")

patixa added a commit to patixa/GarrisonCommander that referenced this issue Feb 16, 2023
According to [Wowpedia](https://wowpedia.fandom.com/wiki/API_Frame_CreateFontString), the Blizzard API validates the `drawLayer` parameter, and "TOOLTIP" isn't a valid layer.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants