1. Awesome ninja! This plugin is gonna be awesome now, thanks a lot :)

    Edit:

    Tested it a bit now, added a VIP kit, for group "vip", works like a charm. The problem is that i want the default group "player" to give a "standard" kit for normal players. If i kick myself out of vip group so that i would be part of the normal "player" group this message shows up:


    Code:
    [Oxide] 8:28 PM [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.3'
    Traceback (most recent call last):
      File "StartupItems.py", line 54, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (IndexOutOfRangeException: index out of range: -1)
    at IronPython.Runtime.Operations.PythonOps.FixIndex (int,int) <0x000f1>
    at IronPython.Runtime.Operations.ArrayOps.GetItem (System.Array,int) <0x00031>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <0x000e4>
    at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, object, object> (System.Runtime.CompilerServices.CallSite,object,object) <0x002fe>
    at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, object, object>.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113>
    at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x000d0>
    And no kit is redeemed. So how would i do to make the "player" group receive kits upon respawn? With the "player" group i mean any player connecting to the server.
     
    Last edited by a moderator: Mar 2, 2016
  2. ((((( New version((
     

    Attached Files:

  3. Guys, can you upload the configuration files so I can do some testing and replicate the errors using the same config file you are using? If you are using the default config file please let me know.
     
  4. I use only default config
     

    Attached Files:

  5. That config file you uploaded is for an older version of the plug-in and does not work anymore. Please delete that config file, and restart the plug-in so you can get the latest version of the config file.
     
  6. Here's my config file. So you mean the "player" group is supposed to give a kit to anyone connecting to the server?
     

    Attached Files:

  7. I'm downloading the new version get version 1.0.3 , you can upload the plugin to be put ( 1.0.4 ) as I downloaded an older version of your page
     
  8. Everytime I try re downloading the plugin from here it keeps saying in my console that it loaded 1.03 :(
     
  9. I will fix this in the next 20 minutes from now. I am updating the server to fix the plug-in. Thanks guys.
     
  10. Oh aye thats wassup, but accept my Skype contact request. I got a few questions
     
  11. RedNinja1337 updated StartupItems with a new update entry:

    1.0.4


    [DOUBLEPOST=1457053977][/DOUBLEPOST]Ok
    Brobsk, I was able to finally replicate the error. I am working on getting this fix. Thanks.
     
  12. RedNinja1337 updated StartupItems with a new update entry:

    1.0.4

     
  13. RedNinja1337 updated StartupItems with a new update entry:

    1.0.5


    [DOUBLEPOST=1457055843][/DOUBLEPOST]Guys, I fixed the errors but just make sure you delete the old plug-in and old configuration file. When you create a group and add the player to that group, the group must exists on the config file for it to work.
     
  14. Hi again ninja!

    I tried the newest vesrion of the plugin, i get the following error as i respawn using DEFAULT cfg (I did remove plugin&cfg before updating, twice):


    Code:
    [Oxide] 4:47 PM [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.5'
    Traceback (most recent call last):
      File "StartupItems.py", line 57, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (IndexOutOfRangeException: index out of range: -1)
    at IronPython.Runtime.Operations.PythonOps.FixIndex (int,int) <0x000f1>
    at IronPython.Runtime.Operations.ArrayOps.GetItem (System.Array,int) <0x00031>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <0x000e4>
    at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, object, object>.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113>
    at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x000d0>
    Isn't the group "player" supposed to give items to anyone connecting to the server, without having to add them to the player group? As of how the oxide permissions work as well i want this to work, like "oxide.grant group player *****", isnt that group player really existing then as it don't automatically give no kit to whoever connects? Maybe i must use this together with the other Kit plugin and use autokit + this in order to give kits to all, but also be able to do VIP autokits?

    edit: the error above only shows up if im NOT in any group.
     
    Last edited by a moderator: Mar 4, 2016
  15. I will check this again. By default all players are on the group "player" but I will look at this to find out what is going on.
    [DOUBLEPOST=1457196796,1457137060][/DOUBLEPOST]
    I just fixed this error by checking if the user belongs to any groups. I am planning on adding more stuff to this plug-in so I will upload an update later today.
     
  16. Code:
    [Oxide] 5:58 PM [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.5'
    Traceback (most recent call last):
      File "StartupItems.py", line 48, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (KeyNotFoundException: GroupItems)
    at IronPython.Runtime.PythonDictionary.GetItem (object) <0x0006c>
    at IronPython.Runtime.PythonDictionary.get_Item (object) <0x00024>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,string) <0x00097>
    at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, string, object> (System.Runtime.CompilerServices.CallSite,object,string) <0x002fe>
    at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, string, object>.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113>
    at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x000d0>
     
    Last edited by a moderator: Mar 5, 2016
  17. I was able to fix that but I am updating the plug-in to upload the new version with one more feature added and that error fix.
     
  18. Alright, awesome! :)
     
  19. How is this plugin different from autokits Kits plugin?
     
  20. Code:
      File "StartupItems.py", line 48, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (KeyNotFoundException: GroupItems
    )
    at IronPython.Runtime.PythonDictionary.GetItem (object) <0x0006c>
    at IronPython.Runtime.PythonDictionary.get_Item (object) <0x00024>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServi
    ces.Closure,System.Runtime.CompilerServices.CallSite,object,string) <0x00097>
    at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, string, object> (Sys
    tem.Runtime.CompilerServices.CallSite,object,string) <0x002fe>
    at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, string, object>.
    Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113>
    at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpre
    ter.InterpretedFrame) <0x000d0>
    Never mine i update and remove the config its all good here now sorry on that
     
    Last edited by a moderator: Mar 13, 2016