Can fix this error??
Thanks.Code:[Oxide] 3:34 PM [Error] LuaScriptException while calling OnRunCommand: File: RotAG-Groups.lua Line: 575 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
RotAG-Groups [Unmaintained]
Discussion in 'Plugin Support' started by TheRotAG, Jan 23, 2015.
-
Another error to the collection:
Code:[2/19/2015 7:15:00 PM] [Oxide] 7:15 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 288 attempt to call global 'SendMessage' (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
Last edited by a moderator: Feb 23, 2015 -
File: RotAG-Groups.lua Line: 521 attempt to index local 'vpData' (a nil value):
-
I'm back. Lets check what is happening...
-
TheRotAG updated RotAG-Groups with a new update entry:
Bug fixes and new features
[DOUBLEPOST=1424484195][/DOUBLEPOST]I'll be online for the next 8h, so feel free to notify me in case of issues.
I don't think its mandatory, but I suggest that everyone comes to delete your Config and Data files if errors start to popup. I tested in a wiped server without issues. -
TheRotAG said: ↑TheRotAG updated RotAG-Groups with a new update entry:
Bug fixes and new features
[DOUBLEPOST=1424484195][/DOUBLEPOST]I'll be online for the next 8h, so feel free to notify me in case of issues.
I don't think its mandatory, but I suggest that everyone comes to delete your Config and Data files if errors start to popup. I tested in a wiped server without issues.Click to expand... -
Code:
9:13 PM [Error] LuaScriptException while calling OnEntityAttacked: File: RotAG-Groups.lua Line: 619 attempt to index local 'vpData' (a nil value):
Last edited by a moderator: Feb 23, 2015 -
Sorry but i installed the last version and /group list throws:
Code:[Oxide] 3:22 AM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 470 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 -
when to create a group
Code:[Oxide] 12:41 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 284 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
-
Upperking said: ↑9:13 PM [Error] LuaScriptException while calling OnEntityAttacked:
File: RotAG-Groups.lua Line: 619 attempt to index local 'vpData' (a nil value):Click to expand...
That looks like you run the plugin with players already connected, so it couldn't record the players data on connection/spawn.
rom3ox said: ↑Sorry but i installed the last version and /group list throws:
[Oxide] 3:22 AM [Error] LuaScriptException while calling C_Group:
File: RotAG-Groups.lua Line: 470 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>:0Click to expand...
Cerber0s said: ↑when to create a group
Code:[Oxide] 12:41 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 284 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
Click to expand...
To get rid of these errors that happens with user data when users are already connected, I've inserted new codes to check if the player has data and if not, create a blank one to work with. -
TheRotAG updated RotAG-Groups with a new update entry:
Minor fix and player data bug prevention added
CHANGELOG said:Ver. 1.7.1
- Fixed a bug regarding the kick command, that wasn't working well with the new data file structure
- Added new code lines to support player data and creates its basic info if needed before comparison checks.
Ver. 1.6.0
- Fixed various bugs since the last version. Like the /group list bug.
- Added the command /group leader, that lets you give the rank of leader to other members of the group.
- /group list now will show the name of all leaders to...Click to expand...Click to expand...
[DOUBLEPOST=1424492057][/DOUBLEPOST]With this new update I expect to eliminate all errors! -
Tried this on latest version of oxide and it does work, BUT
I also had problems and errors showing in the console and when i investigated it was because of not recognising the data file properly, even deleting it and doing oxide.reload didn't recreate.
So i did a restart of the server after deleting the data file and all works fine now.
Apart from
the /group list command doesn't work.
I had a quick look at the mod itself and noticed the
self.Config.Messages.GroupLeaderList = self.Config.Messages.GroupLeaderList
line wasn't there although adding this in got rid of the error in console as it now had something to call in the function but something else must be wrong with the list function as it still doesn't work.
I'm no programmer (only tinkered over the years) so i could be wrong about all this lol but thought i had better post anyway. I will look at it a bit more tomorrow as i'm tired now unless you read this before hand. -
Well, everytime I upload I make some tests on a wiped Dev Server. Everything they reported as errors were fixed, even group list. If you wish to see it happening, connect to my server
-
TheRotAG said: ↑I'm going to addapt the name changet to the groups, so admins can turn on and off the possibility of using a group tag or not.Click to expand...
-
Code:
[Oxide] 4:06 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 227 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)
Last edited by a moderator: Feb 23, 2015 -
Code:
[Oxide] 7:03 PM [Error] LuaScriptException while calling OnPlayerChat: File: RotAG-Groups.lua Line: 713 attempt to concatenate local 'realName' (a nil value):
Last edited by a moderator: Feb 23, 2015 -
taNaToS said: ↑TheRotAG can add this option please?? Thanks.Click to expand...
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. -
TheRotAG updated RotAG-Groups with a new update entry:
Bug fixes and changes to adapt to the last OXIDE2
CHANGELOG said:Ver. 1.7.2
- Fixed the group list bug that wasn't showing the proper messages
- Added support to customization of 4 messages that weren't being saved in the Config File. Now it will...
Ver. 1.7.1
- Fixed a bug regarding the kick command, that wasn't working well with the new data file structure
- Added new code lines to support player data and creates its basic info if needed before comparison checks.
Ver. 1.6.0
- Fixed various bugs since the last...Click to expand...Click to expand...
[DOUBLEPOST=1424655278][/DOUBLEPOST]I'm currently converting the plugin to C#, so errors in Oxide update will be less likely to happen. -
Code:
[Oxide] 8:35 PM [Info] [Logger] Ryan2 ran chat command: /group invite TonyElTigre [Oxide] 8:35 PM [Error] LuaScriptException while calling OnPlayerChat: File: RotAG-Groups.lua Line: 731 attempt to concatenate local 'realName' (a nil value): [Oxide] 8:35 PM [Error] LuaScriptException while calling C_Group: Fil 8:38 PM [Info] [Logger] Ryan2 ran chat command: /group 8:38 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 402 attempt to index field '?' (a nil value): 8:38 PM [Info] [Logger] Ryan2 ran chat command: /group Leave 8:38 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 346 attempt to index field '?' (a nil value): 8:38 PM [Info] [Logger] Juice ran chat command: /group invite Chang 8:38 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 310 attempt to index local 'pData' (a nil value):
Last edited by a moderator: Feb 23, 2015 -
Upperking said: ↑Code:
[Oxide] 8:35 PM [Info] [Logger] Ryan2 ran chat command: /group invite TonyElTigre [Oxide] 8:35 PM [Error] LuaScriptException while calling OnPlayerChat: File: RotAG-Groups.lua Line: 731 attempt to concatenate local 'realName' (a nil value): [Oxide] 8:35 PM [Error] LuaScriptException while calling C_Group: Fil 8:38 PM [Info] [Logger] Ryan2 ran chat command: /group 8:38 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 402 attempt to index field '?' (a nil value): 8:38 PM [Info] [Logger] Ryan2 ran chat command: /group Leave 8:38 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 346 attempt to index field '?' (a nil value): 8:38 PM [Info] [Logger] Juice ran chat command: /group invite Chang 8:38 PM [Error] LuaScriptException while calling C_Group: File: RotAG-Groups.lua Line: 310 attempt to index local 'pData' (a nil value):
Click to expand...
[DOUBLEPOST=1424657429][/DOUBLEPOST]For the time being, you will receive notes in your console with a message like:
"The player SteamID uses the name of SteamName"
That will let you know that the player realName was recorded without any issue. What I can't understand is why on my 2 servers I don't receive errors like that...