WoWTools

WoWTools

75.4k Downloads

Challenges.lua一个小报错,

Se7enMuting opened this issue · 3 comments

commented

NGA的帖子好像关了,所以发这里了

104x WoWTools/WoWPlus/Challenges.lua:757: attempt to perform arithmetic on global 'h' (a nil value)
[string "@WoWTools/WoWPlus/Challenges.lua"]:757: in function <WoWTools/WoWPlus/Challenges.lua:705>
[string "=[C]"]: in function `Update'
[string "@Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua"]:136: in function <...dOns/Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua:120>
[string "=[C]"]: ?
[string "=[C]"]: in function `Show'
[string "@FrameXML/PVEFrame.lua"]:138: in function `PVEFrame_ShowFrame'
[string "@FrameXML/PVEFrame.lua"]:163: in function <FrameXML/PVEFrame.lua:161>

Locals:
self = ChallengesFrame {
 0 = <userdata>
 cur2 = Button {
 }
 WeeklyInfo = ScrollFrame {
 }
 Update = <function> defined =[C]:-1
 leadersAvailable = false
 Background = Texture {
 }
 SeasonChangeNoticeFrame = Frame {
 }
 UpdateTitle = <function> defined @Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua:271
 maps = <table> {
 }
 OnLoad = <function> defined @Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua:95
 OnHide = <function> defined @Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua:139
 sel = CheckButton {
 }
 WoWKeystones = FontString {
 }
 re = FontString {
 }
 OnShow = <function> defined @Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua:120
 OnEvent = <function> defined @Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua:107
 DungeonIcons = <table> {
 }
}
(for index) = 1
(for limit) = 8
(for step) = 1
i = 1
frame = Frame {
 0 = <userdata>
 mapID = 399
 HighestLevel = FontString {
 }
 tips = true
 sc = FontString {
 }
 nameStr = FontString {
 }
 OnEnter = <function> defined @Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua:519
 Icon = Texture {
 }
 SetUp = <function> defined @Blizzard_ChallengesUI/Blizzard_ChallengesUI.lua:488
}
name = "红玉新生法"
inTimeInfo = <table> {
 durationSec = 1386
 completionDate = <table> {
 }
 affixIDs = <table> {
 }
 level = 8
 members = <table> {
 }
 dungeonScore = 83
}
overtimeInfo = nil
affixScores = <table> {
 1 = <table> {
 }
}
overAllScore = 124
(*temporary) = <function> defined =[C]:-1
(*temporary) = FontString {
 0 = <userdata>
}
(*temporary) = "CENTER"
(*temporary) = 0
(*temporary) = nil
(*temporary) = <userdata>
(*temporary) = nil
(*temporary) = nil
(*temporary) = FontString {
 0 = <userdata>
}
(*temporary) = <function> defined =[C]:-1
(*temporary) = <function> defined =[C]:-1
(*temporary) = "attempt to perform arithmetic on global 'h' (a nil value)"
GetNum = <function> defined @WoWTools/WoWPlus/Challenges.lua:385
Save = <table> {
}
e = <table> {
 toolsFrame = Frame {
 }
 WA_GetUnitBuff = <function> defined @WoWTools/WoWTools.lua:488
 Cbtn = <function> defined @WoWTools/WoWTools.lua:390
 MK = <function> defined @WoWTools/WoWTools.lua:276
 GetItemCooldown = <function> defined @WoWTools/WoWTools.lua:609
 Race = <function> defined @WoWTools/WoWTools.lua:68
 HEX = <function> defined @WoWTools/WoWTools.lua:555
 Ccool = <function> defined @WoWTools/WoWTools.lua:419
 GetFriend = <function> defined @WoWTools/WoWTools.lua:260
 ExpansionLevel = 9
 GetShowHide = <function> defined @WoWTools/WoWTools.lua:301
 GetKeystoneScorsoColor = <function> defined @WoWTools/WoWTools.lua:739
 ToolsSetButtonPoint = <function> defined @WoWTools/WoWTools.lua:681
 GetPlayerInfo = <function> defined @WoWTools/WoWTools.lua:108
 GetPetStrongWeakHints = <function> defined @WoWTools/WoWTools.lua:566
 Cbtn2 = <function> defined @WoWTools/WoWTools.lua:637
 GetYesNo = <function> defined @WoWTools/WoWTools.lua:315
 GroupGuid = <table> {
 }
 CeditBox = <function> defined @WoWTools/WoWTools.lua:374
 CPanel = <function> defined @WoWTools/Sesource/Panel.lua:44
 GetEnabeleDisable = <function> defined @WoWTools/WoWTools.lua:308
 Class = <function> defined @WoWTools/WoWTools.lua:94
 GetItemCollected = <function> defined @WoWTools/WoWTools.lua:771
 UnitItemLevel = <table> {
 }
 WA_Utf8Sub = <function> defined @WoWTools/WoWTools.lua:513
 RightButtonDown = "RightButtonUp"
 GetExpansionText = <function> defined @WoWTools/WoWTools.lua:835
 GetUnitMapName = <function> defined @WoWTools/WoWTools.lua:152
 GetMountCollected = <function> defined @WoWTools/WoWTools.lua:826
 L = <table> {
 }
 Icon = <
commented

我慢慢找, 看看下版本能否解决bug
所有功能都有开关
199989902-7175878e-ffe6-411b-adbc-15d87446a7b3
只是没写注解, 因为语言使用wow内置,不好处理

有三个是最初写的, 刚开始没有统一

(以后有空慢慢改, 修改工程太大, 相当于从写一次,
如有问,你发图片,我好修改)

只能在界面里隐藏, 如果不知关哪里,在这里间一下,

commented

另外再提个小建议,希望每个模块在设置里都可以彻底关掉,不留痕迹,有些小地方会有禁止标记的留存。
比如角色面板里面,ALT换装里面的装备等级会一直显示,关不掉,会和我的插件显示重叠显示,不得不去.toc里注释掉,但是现在又用CurseForge更新你的插件,更新会再覆盖.toc里注释掉的内容。。。

commented

我只用这两个功能,其他设置里全关了
image
但是比如像下图中的禁止符还是会有,还是能开启/关闭功能,只有去.toc里注释掉才能完全没有
image
image
image
image
image
如果工作量太大那就算了,我自己注释掉吧。。。。