Frame error from Artifact
1x FrameXML\MainMenuBar.lua:125: Usage: local cost = C_ArtifactUI.GetCostForPointAtRank(rank, tier)
[C]: in function `GetCostForPointAtRank' FrameXML\MainMenuBar.lua:125: in function `MainMenuBar_GetNumArtifactTraitsPurchasableFromXP' _Deranjata\modules\xpbar\artxp.lua:34: in function <_Deranjata\modules\xpbar\artxp.lua:29> Locals: (*temporary) = 38 (*temporary) = nil Here is the function in its entirety, im really struggling to figure out what is broken i can find no documentation that any of these were changed or discontinued Lua Code:
|
Your best bet is checking the most recent Blizzard Interface files.
Also, pasting to what events the frame derArtifactBar is registered, would be beneficial. |
I don't see C_ArtifactUI.GetCostForPointAtRank in your posted code. Perhaps posting all of your code would shed some light.
Because I don't see it, I am thinking you have tainted the global table with a leaking variable. In which case I highly suggest running your Lua files through this tool. |
i think i may have found a way around this
Lua Code:
|
According to gamepedia, C_ArtifactUI.GetCostForPointAtRank is WoW API function.
Edit. Did you take a break, for, like 6 months from WoW? |
Quote:
|
Lua Code:
You might want to add a check for artifactXP/xpForNextPoint being less than 0 or greater than 1. |
Quote:
|
Quote:
Lua Code:
|
Quote:
|
All times are GMT -6. The time now is 09:31 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI