1. RedNinja1337 submitted a new resource:

    StartupItems - Let you select the startup items when a player respawn from dead.

    Read more about this resource...
     
  2. Feature requests:

    1. Can you add a dummy field to the config file for the item name. I know the plugin doesn't need the item name. Adding this would just be so we admins can glance at the file and know what the items are.

    2. Add an option for different groups of players to have different startup items. ( will pay some $$ for this feature )
     
  3. Sorry I got back to you so late. This will be done by tomorrow. I am changing the itemID for the item shortname so is easy to see what items you are giving to players by just looking at the config file. I am adding some groups like Admin, Moderators, Players, and VIP so you can give items to players base on groups. I am also adding an optional message so you can send a message to the player after they wake up from dead. Thanks for the new ideas to help me improve the plug-in.
     
    Last edited by a moderator: Sep 5, 2015
  4. That's cool ! I like that idea. :)
     
  5. Auto kits already existed?
     
  6. RedNinja1337 updated StartupItems with a new update entry:

    1.0.0.1


    [DOUBLEPOST=1441486264][/DOUBLEPOST]
    Sorry, I didn't read everything on the Kits plug-in page and I was reading everything last night and yes it does exists. I think is late to go back but for next time I will try not to create something that is already there.
     
  7. I love this plugin. But it doesn't work with the latest Oxide anymore. Could you please update it? :)
     
  8. Wulf

    Wulf Community Admin

    Are you getting any errors? Nothing has changed in the Rust update that would affect this, only Rust itself.
     
  9. I found the error back in my logs:
    Code:
    [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.1'
    Traceback (most recent call last):
      File "StartupItems.py", line 40, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (KeyNotFoundException: The given key was not present in the dictionary.)
    at System.Collections.Generic.Dictionary`2<string, object>.get_Item (string) <0x001c5>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <0x000c4>
    at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, object, object> (System.Runtime.CompilerServices.CallSite,object,object) <0x0030a>
    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) <0x000c8>
    This was given to me both by using the default config and the one used on my server before that particular update.
     
    Last edited by a moderator: Sep 18, 2015
  10. I cant get this to work.
    Code:
    [Oxide] 10:33 AM [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.1'
    Traceback (most recent call last):
      File "StartupItems.py", line 40, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (KeyNotFoundException: The given key was not present in the dictionary.)
    at System.Collections.Generic.Dictionary`2<string, object>.get_Item (string) <0x001c5>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServices.Closure,System.Runtime.CompilerServices.CallSite,object,object) <0x000c4>
    at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, object, object> (System.Runtime.CompilerServices.CallSite,object,object) <0x0030a>
    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) <0x000c8>
     
    Last edited by a moderator: Sep 20, 2015
  11. I am not new to rust, but am new to Oxide and installing plugins.

    Problem: I installed your plugin (StartupItems) and it was actually working fine with the default items which I believe was a bow and some arrows. I edited the StartupItems.json file to include some new items and when I uploaded that file back to the server your plugin is not working. I have removed your plugin and installed it over again and it still defaults back to the modified json that I uploaded.

    Can you help with this? Below is my modified json.
    Code:
    {
      "Admin": [
      {}
      ],
      "Containers": "Main, Belt, Wear",
      "Moderator": [
      {}
      ],
      "Players": [
      {
      "Amount": 1,
      "Container": "Wear",
      "item_shortname": "attire.hide.boots"
      },
      {
      "Amount": 1,
      "Container": "Wear",
      "item_shortname": "attire.hide.vest"
      },
      {
      "Amount": 1,
      "Container": "Wear",
      "item_shortname": "hat.wolf"
      },
      {
      "Amount": 1,
      "Container": "Belt",
      "item_shortname": "pistol.revolver"
      },
      {
      "Amount": 1,
      "Container": "Belt",
      "item_shortname": "crossbow"
      },
      {
      "Amount": 1,
      "Container": "Belt",
      "item_shortname": "stonehatchet"
      },
      {
      "Amount": 1,
      "Container": "Belt",
      "item_shortname": "stone.pickaxe"
      },
      {
      "Amount": 3,
      "Container": "Belt",
      "item_shortname": "bandage"
      },
      {
      "Amount": 1,
      "Container": "Belt",
      "item_shortname": "spear.wooden"
      },
      {
      "Amount": 25,
      "Container": "Main",
      "item_shortname": "arrow.hv"
      },
      {
      "Amount": 50,
      "Container": "Main",
      "item_shortname": "ammo.pistol"
      },
      {
      "Amount": 10,
      "Container": "Main",
      "item_shortname": "wolfmeat.cooked"
      },
      {
      "Amount": 200,
      "Container": "Main",
      "item_shortname": "wood"
      },
      {
      "Amount": 1,
      "Container": "Main",
      "item_shortname": "sleepingbag"
      }
      ],
      "VIP_Group": [
      {}
      ],
      "VIP_Players": {
      "RedNinja1337": "76561198114805056"
      },
      "WakeupMessage": "Here is some free stuff to help you get started."
    }
     
    Last edited by a moderator: Oct 24, 2015
  12. Code:
    Traceback (most recent call last):
      File "StartupItems.py", line 50, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (KeyNotFoundException: The given
    key was not present in the dictionary.)
    at System.Collections.Generic.Dictionary`2<string, object>.get_Item (string) <0x
    001c5>
    at (wrapper dynamic-method) object.CallSite.Target (System.Runtime.CompilerServi
    ces.Closure,System.Runtime.CompilerServices.CallSite,object,object) <0x000c4>
    at System.Dynamic.UpdateDelegates.UpdateAndExecute2<object, object, object> (Sys
    tem.Runtime.CompilerServices.CallSite,object,object) <0x005bf>
    at Microsoft.Scripting.Interpreter.DynamicInstruction`3<object, object, object>.
    Run (Microsoft.Scripting.Interpreter.InterpretedFrame) <0x00113>
    at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpre
    ter.InterpretedFrame) <0x000c8>
     
  13. Is it possible yo add players to the mode group and how so
     
  14. does not give not one item after weekup, even stone
     
  15. I get same thing as Beefy. "[Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.1'"
     
  16. . . . . . . . .
     
    Last edited by a moderator: Jan 22, 2016
  17. I get the message I set but no items.
     
  18. Code:
    [Oxide] 2:05 AM [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'Start
    upItems v1.0.0'
    Traceback (most recent call last):
      File "StartupItems.py", line 33, in OnPlayerRespawned
    RuntimeError: Failed to call OnPlayerRespawned (ArgumentTypeException: GiveItem(
    ) takes at most 2 arguments (3 given))
      at Microsoft.Scripting.Interpreter.ThrowInstruction.Run (Microsoft.Scripting.I
    nterpreter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
      at Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interp
    reter.InterpretedFrame frame) [0x00000] in <filename unknown>:0
    line 33
    Code:
    inv.GiveItem(item['itemID'], item['Amount'], False)
     
  19. Does not work, please repair.