Shestak UI
Go Back   Shestak UI > Interface Forums > Other Community > Technical Support

Technical Support Ask for help or find solutions about ShestakUI.

Advertising

 
Thread Tools
Old 20.07.2011, 09:55   #1
 Member User Information

thesnake's Avatar
3.2.2在4.2台服客戶端下報錯

每當我殺死一個怪以後,就報如下錯誤
Code [Select]:
Message: ...erface\AddOns\ShestakUI\Libs\LiteStats\LiteStats.lua:1231: attempt to perform arithmetic on upvalue 'lastkill' (a string value)
 Time: 07/19/11 20:30:33
 Count: 1
 Stack: ...erface\AddOns\ShestakUI\Libs\LiteStats\LiteStats.lua:1231: in function <...erface\AddOns\ShestakUI\Libs\LiteStats\LiteStats.lua:1226>

 Locals: self = LP_Experience {
 0 = <userdata>
 elapsed = 0
 RegisterEvent = <function> defined =[C]:-1
 height = 0
 text = <unnamed> {
 }
 bg = <unnamed> {
 }
 width = 0
 }
 event = "CHAT_MSG_COMBAT_XP_GAIN"
 msg = "腐爛的泥漿怪死亡,你獲得了278點經驗值。(+139點經驗值的充分休息獎勵)"
 (*temporary) = 0
 (*temporary) = "了278"
 (*temporary) = "(.*)死亡,你獲得(.*)點經驗值。"
 (*temporary) = "腐爛的泥漿怪"
 (*temporary) = "了278"
 (*temporary) = "腐爛的泥漿怪"
 (*temporary) = "了278"
 (*temporary) = nil
 (*temporary) = "attempt to perform arithmetic on upvalue 'lastkill' (a string value)"
 mobxp = "(.*)死亡,你獲得(.*)點經驗值。"
 lastkill = "了278"
 strmatch = <function> defined =[C]:-1
 gained = 0
 questxp = "你獲得了(.*)點經驗值。"
 lastquest = nil
 playedlevel = 983
 playedmsg = 4610.579
 playedtotal = 40190
 conf = <table> {
 ExpMode = "xp"
 AutoSell = true
 Gold = 1013098
 AutoRepair = true
 Played = 40190
 }
 repname = nil
 minrep = nil
 maxrep = nil
 currep = nil
 standingname = nil
 format = <function> defined =[C]:-1
 P = "player"
 repcolor = nil
 gsub = <function> defined =[C]:-1
 experience = <table> {
 million = "m"
 tip_x = 21
 tip_frame = "UIParent"
 faction_subs = <table> {
 }
 xp_normal_fmt = "[curxp]([cur%]%)XP"
 enabled = true
 anchor_to = "left"
 y_off = 0
 short = true
 anchor_frame = "Durability"
 xp_rested_fmt = "[curxp]([cur%]%)XP [restxp]([rest%]%)R"
 tip_y = 20
 tip_anchor = "BOTTOMLEFT"
 x_off = 3
 thousand = "k"
 anchor_from = "right"
 faction_fmt = "[repname]: [repcolor][currep]/[maxrep]"
 played_fmt = "Online: [playedsession]"
 }
 tags = <function> defined @Interface\AddOns\ShestakUI\Libs\LiteStats\LiteStats.lua:1172
 floor = <function> defined =[C]:-1
我已經禁用了所有其他插件,而且刪除了wtf文件夾

我同一個通行證下的兩個號都有此問題。求解~
Old 20.07.2011, 09:55   #1.5 - Disable Ads

Advertise on this site

Old 22.07.2011, 07:22   #2
thesnake
 Member User Information

thesnake's Avatar
剛才逛了一下以往的帖子
發現之前也有個人有同樣問題。。。。
這個問題只針對殺怪有經驗的號才回出現,根據那個帖子的鏈接,找到解決方法如下(未測試,回家才可以測試,先發到這裡)

Interface\AddOns\ShestakUI\Libs\LiteStats\LiteStats.lua
找到第1229行
Code [Select]:
if msg:find(mobxp) then
	_, lastkill = strmatch(msg,mobxp)
	gained = gained + lastkill
elseif msg:find(questxp) then
	lastquest = strmatch(msg,questxp)
	gained = gained + lastquest
end
改為

Code [Select]:
if msg:find(mobxp) then
	_, lastkill = strmatch(msg,mobxp)
	lastkill = strmatch(lastkill,"%d+")
	gained = gained + lastkill
elseif msg:find(questxp) then
	lastquest = strmatch(msg,questxp)
	lastquest = strmatch(lastquest,"%d+")
	gained = gained + lastquest
end
我晚上上測試結果

张贴在 45 小时 12 分钟
此修改测试有效,杀怪以后不再报错了。。。
Say Thank:
Shestak (26.07.2011)

Tags
台服 報錯

Thread Tools



Mobile Style Русский English Deutsch Italian Chinese