Vasil 71 Report post Posted October 16, 2016 Hi,it's urgent!!! My players has just discovered a bug into forging.The message given while forging is "Unable to operate,request rejected" I checked the forge scripts in forge.lua and changed them , but nothing happened. BUMP , PLEASE ANSWER ASAP Vasil! Quote Share this post Link to post Share on other sites
Shako 97 Report post Posted October 16, 2016 24 minutes ago, Vasil said: Hi,it's urgent!!! My players has just discovered a bug into forging.The message given while forging is "Unable to operate,request rejected" I checked the forge scripts in forge.lua and changed them , but nothing happened. BUMP , PLEASE ANSWER ASAP Vasil! It seems like a broken script somewhere in ur forging. Any lua_err? Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 16, 2016 As @Shako said, mind sharing an image of console and lua_err.txt ? Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 1 minute ago, Angelix said: As @Shako said, mind sharing an image of console and lua_err.txt ? Console show no error, lua err [10-16 08:38:56]./resource/script\calculate\forge.lua:1047: attempt to index field `?' (a nil value) Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 Scripts: function Check_StoneItemType ( Item , Stone1 , Stone2 ) -- Notice ("Check_StoneItemType") local Stone1Type = GetItemType ( Stone1 ) local Stone2Type = GetItemType ( Stone2 ) local Baoshi = 0 local ItemType = GetItemType ( Item ) if Stone1Type == 49 then Baoshi = Stone1 elseif Stone2Type == 49 then Baoshi = Stone2 end local Baoshi_ID = GetItemID ( Baoshi ) local i = 0 local Baoshi_TypeID = 0 for i = 1 , StoneAttrType_Num , 1 do if Baoshi_ID == StoneTpye_ID then Baoshi_TypeID = i end end for i = 0 , 15 , 1 do if ItemType == StoneItemType[Baoshi_TypeID] then return 1 end if StoneItemType[Baoshi_TypeID] == 0 then -- Notice ("Return failed") return 0 end end -- Notice ("Return failed") return 0 end Quote Share this post Link to post Share on other sites
Shako 97 Report post Posted October 16, 2016 one of those variables/values aren't defined Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 Just now, Shako said: one of those variables/values aren't defined Explain? Quote Share this post Link to post Share on other sites
Shako 97 Report post Posted October 16, 2016 @Vasil find forge.lua line 1047 and see what variable it is Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 bump Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 16, 2016 (edited) 7 minutes ago, Vasil said: Mind posting the whole function from where you got this? Edited October 16, 2016 by Angelix Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 Just now, Angelix said: Mind the whole scripts from where you got this? Sacred PKO. Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 shared the whole script. Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 16, 2016 Just now, Vasil said: Sacred PKO. My bad, typo. I meant the whole function where the line with error belongs to. Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 https://mega.nz/#!v89C2ZQQ!Xh-meGHP8hjb-hRmu3N4u6uZvaVGUM4RGhWX0Kgvim0 whole forge Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 16, 2016 (edited) 5 minutes ago, Vasil said: shared the whole script. You didn't because this: 13 minutes ago, Vasil said: Doesn't appear in the function. Something similar is in it, yet it is missing the "[ i ]" Edited October 16, 2016 by Angelix Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 1 minute ago, Angelix said: You didn't because this: Doesn't appear in the function. Something similar is in it, yet it is missing the "[ i ]" so i should be local i = math.random(2,3) ? or whut Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 16, 2016 (edited) Are you completely using cloak? Might as well remove that for the time being till you know how to modify scripts and add it without problems. Edited October 16, 2016 by Angelix Quote Share this post Link to post Share on other sites
Vasil 71 Report post Posted October 16, 2016 2 minutes ago, Angelix said: Are you completely using cloak? Might as well remove that for the time being till you know how to modify scripts and add it without problems. You got FB? Can add me. "Komuro Dev", can help a bit faster and see if we can get to a solution. Added. Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 16, 2016 Problem seems to be fixed already. @Vasil said he had place a variable's name twice which caused an undefined variable. Not sure if that's true though. Quote Share this post Link to post Share on other sites
Shako 97 Report post Posted October 16, 2016 (edited) I figure "StoneItemType[Baoshi_TypeID][ i ]" is broken, because its calling an array + another value. edit: nvm, that works. something else is broken. The script he posted works 100%, it was something else outside the function. Edited October 16, 2016 by Shako Quote Sunny Go! Online pko.host Share this post Link to post Share on other sites
Angelix 374 Report post Posted October 16, 2016 4 minutes ago, Shako said: I figure "StoneItemType[Baoshi_TypeID][ i ]" is broken, because its calling an array + another value. edit: nvm, that works. something else is broken. The script he posted works 100%, it was something else outside the function. Yes, I kept telling him that the error lines he gave us/me were all pointing either to commented lines or "end". Then he just told me he had place a variable's name twice somewhere else which caused an undefined variable and that he fixed it. Quote Share this post Link to post Share on other sites