TheRotAG updated RotAG-Groups with a new update entry:
realName bug prevention added
RotAG-Groups [Unmaintained]
Discussion in 'Plugin Support' started by TheRotAG, Jan 23, 2015.
-
anyone having errors come through console when the try use a command?
Code:[Oxide] 4:26 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 234 bad argument #1 to 'concat' (table expected, got nil): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Last edited by a moderator: Feb 23, 2015 -
with latest update i been getting flooded with these error messages
Code:LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 226 attempt to index local 'pData' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 5:04 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 226 attempt to index local 'pData' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 5:05 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 310 attempt to index local 'pData' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 5:06 PM [Info] Unloaded plugin RotAG-Groups v1.7.3 by TheRotAG
-
DFeDNZ said: ↑anyone having errors come through console when the try use a command?
Code:[Oxide] 4:26 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 234 bad argument #1 to 'concat' (table expected, got nil): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Click to expand...
You create a group, the plugin saves the data, the gorup is there, you are one of the leaders, so your name is there... no way it would got nil...
Did you tested the "group" command or one of your players?
Robo2929 said: ↑with latest update i been getting flooded with these error messages
Code:LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 226 attempt to index local 'pData' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 5:04 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 226 attempt to index local 'pData' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 5:05 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 310 attempt to index local 'pData' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 5:06 PM [Info] Unloaded plugin RotAG-Groups v1.7.3 by TheRotAG
Click to expand...
I can't understand why me and other admins from other friendly servers can use the plugin without issues and you guys keeps receiving errors...
As ever, what I can recommend is that you guys DELETE your old config and data files. Remember that it can't be done with the plugin running... better yet, the best option is to delete those files with the server offline and then start it normally.
All basic structure from the data file is built when then server starts the plugin at the first time, after that when the players connects to have its first contact with the plugin (after its 'first' load), it creates the player basic data structure. I tried to record a video showing guys my tests with the plugin running, but unfortunatelly my software crashed... soon I will record it and post it here. -
TheRotAG said: ↑Gonna check that. I need some time...
About the errors. The code line in the /group list that was suposed to be called even if we have no groups in the server wasn't being read... in the last OXIDE seems like the FOR Key,Value IN PAIRS(DATA) DO from LUA won't run if we don't have any data at all in that key.
Besides that I took note that 3~4 messages were being show correctly from the other functions but wasn't possible to customize them, so I created a config key for each one.
Since I can't force you guys to join my test server to see the plugin working, I'll record a video showing the plugin in action.Click to expand...
Regarding my post before i did say it was working ok once i did a reboot of the server as it had an issue with the data file before hand but once the reboot was done with the data file deleted it re-created a new data file and everything worked fine apart from that /group list command which i believe you have now fixed
Using the mod and working great thanks. -
[Oxide] 6:58 PM [Error] LuaScriptException while calling C_Group:
File: RotAG-Groups.lua Line: 397 bad argument #1 to 'concat' (table expected, got string):
at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
why? -
Propanito said: ↑[Oxide] 6:58 PM [Error] LuaScriptException while calling C_Group:
File: RotAG-Groups.lua Line: 397 bad argument #1 to 'concat' (table expected, got string):
at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
why?Click to expand...now i always read the topic first, 70% of the time there's an answer there for my problem.
-
xShARkx said: ↑Did you read the topic ? Did you download the last version, delete your data and config while the server is stopped and then start it again and see if it will pop any errors ? Or you just saw the error in your console came here and post it ? hehe i used to do that to
now i always read the topic first, 70% of the time there's an answer there for my problem.
Click to expand... -
Code:
3:59 PM [Info] [Logger] LuksGamer21 ran chat command: /group invite Maico 3:59 PM [Info] GrpMsg - LuksGamer21: [PDO] Maico has been invited to join your group! 3:59 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 555 attempt to index field '?' (a nil value): 3:59 PM [Error] LuaScriptException while calling OnPlayerChat: File: RotAG-Groups.lua Line: 738 attempt to concatenate local 'realName' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0
Last edited by a moderator: Feb 27, 2015 -
Upperking said: ↑3:59 PM [Info] [Logger] LuksGamer21 ran chat command: /group invite Maico
3:59 PM [Info] GrpMsg - LuksGamer21: [PDO] Maico has been invited to join your group!
3:59 PM [Error] LuaScriptException while calling C_Group:
File: RotAG-Groups.lua Line: 555 attempt to index field '?' (a nil value):
3:59 PM [Error] LuaScriptException while calling OnPlayerChat:
File: RotAG-Groups.lua Line: 738 attempt to concatenate local 'realName' (a nil value):
at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0Click to expand...
Did you read the topic ? Did you download the last version, delete your data and config while the server is stopped and then start it again and see if it will pop any errors ? Or you just saw the error in your console came here and post it ? hehe i used to do that tonow i always read the topic first, 70% of the time there's an answer there for my problem.
-
yup
yup yup... -
Upperking said: ↑yup
yup yup...Click to expand... -
the group is broken I can assure you..
-
Upperking said: ↑the group is broken I can assure you..Click to expand...
[DOUBLEPOST=1424731957][/DOUBLEPOST]i can give you my entire oxide log and you see that there is no erros in the groups plugin! -
if you are not owner of group and try to leave group it seems that; you left the group(i.e. you can kill old group members) but even server restarted you will seems in group (in chat)
You need to delete data from dat file manually
Also when you type /group list you can not get list of groups in serverLast edited by a moderator: Feb 26, 2015 -
/gc "message" doest work why ?
-
Is this plugin working for anyone? It seems like everywhere there is this call:
Code:GroupData.PlayerData[pID].RealName or anything with .RealName
Here some example error messages:
Code:[2/26/2015 8:43:43 PM] [Oxide] 8:43 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 413 attempt to concatenate field 'RealName' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 [2/26/2015 8:38:34 PM] [Oxide] 8:38 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 424 attempt to index field '?' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 File: RotAG-Groups.lua Line: 402 attempt to index field '?' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Yes I got the latest code 1.7.3 and just added it to my server today for the first time to replace Friends API & Friendly Fire as it's broken.
Please HELP!
[DOUBLEPOST=1425069649,1425002201][/DOUBLEPOST]Anyone??? -
TheDoc said: ↑Is this plugin working for anyone? It seems like everywhere there is this call:
Code:GroupData.PlayerData[pID].RealName or anything with .RealName
Here some example error messages:
Code:[2/26/2015 8:43:43 PM] [Oxide] 8:43 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 413 attempt to concatenate field 'RealName' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0[2/26/2015 8:38:34 PM] [Oxide] 8:38 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 424 attempt to index field '?' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0File: RotAG-Groups.lua Line: 402 attempt to index field '?' (a nil value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Yes I got the latest code 1.7.3 and just added it to my server today for the first time to replace Friends API & Friendly Fire as it's broken.
Please HELP!
[DOUBLEPOST=1425069649,1425002201][/DOUBLEPOST]Anyone???Click to expand...
You could delete all cfg,plugins,data files and try to install again. -
Guys I already explained that, but lets go.
How the plugin works?
- Server, started, plugin automatically loaded. OK (If you load the plugin with players already connected it surely will throw errors at you...)
- Player Connects, the plugin stores his "RealName" (aka Steam Nick) to the Data File and Saves.
- Player Spawns its checks if all basic data from the player was created (Lv, Skill etc.) and create what is needed. EVEN the RealName is created that way if it already doesn't exists.
So, if all those steps happened, the player will surely have its player data created and no other function from the plugin will throw errors to the console.
I don't pay a Host company. I own my own host computers and dedicated internet connection, so I can assure you that with all steps happening in the correct order, that's no way to let the plugin throw errors. What I can think about it is that you guys have a problem on your server, something that breaks the connection with the player or breaks the plugin at somepoint so you have issues with the code.
Unfortunatelly I can't provide a 100% error safe plugin since it would cost much more from the performance of our servers...
Other detail that let me intrigued is that since my first version of this plugin I NEVER had issues with it. Actually I don't use it, just have the SAME code for groups inside my RPG Plugin. And the groups NEVER gave me errors if not when the game updated and changed some hooks, like the OnPlayerAttacked... -
I have the plugin load with the server, before players are in and we are getting this spammed to our error file, possibly crashing the server every 30 mins or so....
Code:[2/28/2015 8:05:47 PM] [Oxide] 8:05 PM [Error] LuaScriptException while calling OnEntityAttacked: File: Groups.lua Line: 662 attempt to call method 'Total' (a string value): at NLua.Lua.ThrowExceptionFromError (Int32 oldTop) [0x00000] in <filename unknown>:0 at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0