1. it possible to change item_shortname for something like item_id so we can give the given stuff a skin?
     
  2. Works Like a Charm, Keep up the good work!
     
    Last edited by a moderator: Feb 16, 2016
  3. Great Plugin. All we need is a Website for Item_shortname. Thank you :)
     
  4. Here you got it

    Rust
     
  5. RedNinja1337 updated StartupItems with a new update entry:

    1.0.2


    [DOUBLEPOST=1456624393][/DOUBLEPOST]Hi everyone,

    I apologize that I was out of Rust for a while. I have updated the plug-in and everything works now. I will be always around playing and active on here too in case anyone need assistant with the plug-in.

    Thanks
     
  6. Hi, great plugin as it allows us to give different kits to different player "ranks". Is it possible to add oxide groups rather than manually add each and every VIP steamid to the startup item?

    Also i get this every time i respawn now:
    Code:
    [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'StartupItems v1.0.2'
    Traceback (most recent call last):
      File "StartupItems.py", line 47, 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) <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>
    
     
  7. I am going to look at the groups. About the error, can you upload your config file?
     
    Last edited by a moderator: Feb 28, 2016
  8. There you go, i think it's default tho. The plugin seemed to work anyway even tho i got the error on every respawn.
     

    Attached Files:

  9. Thanks for finding this error. I forgot to check if a group have items on it. I will fix this tonight as I have to drive now. I am also going to be working on the groups you requested. Thanks.
     
    Last edited by a moderator: Feb 28, 2016
  10. I tried player & vip, but the plugin still work even tho the error. I got latest oxide version as well 2.0.1795.

    I'm really curious if you make it work with the groups this will be a really useful plugin for all server owners who got a VIP group i'm sure as you can't make different "autokits" with the other "kit" plugin as far as i'm concerned.
    Thanks a lot for your time ninja!
     
  11. RedNinja1337 updated StartupItems with a new update entry:

    1.0.3

     
  12. Great to finally see another Python developer around, I felt a little alone around this community. Though I'm already moving to C# anyway. :)
     
  13. I been following you for a while, I love all your work man :).
     
  14. No problem, actually if you don't mind me doing a little tip here:
    Code:
    if int(len(self.Config['Players'][0])) > 0:
    You can simplify a lot lines like this one, len() already returns an int so you don't really need to convert it to an integer, also, since you're checking whether or not the value is an integer greater than 0 then you can simplify this line like this:

    Code:
    if len(self.Config['Players'][0]):
    If the value is 0 then it returns as False, otherwise any other value is True. This is one of the reasons Python is beautiful. :)

    And also for each if statement you don't need to add else: pass at the end of the statement or if if intent to stop the code there then use else: return instead

    Also if you want to learn more stuff like this and even more I would recommend you checking this video, its really helpful:


    Have a good one
     
    Last edited by a moderator: Feb 29, 2016
  15. Thanks for the tips, I will fix the code according to the tips you gave me. I totally missed that I could use
    Code:
    if len(self.Config['Players'][0]):
    and just check with True or False. That video is great I love it a lot of helpful things I didn't know.

    Hey, stay with Python so we can create better documentation and find more Python developers instead of switching to C Sharp :). I am documenting some of the functions to help out others and will soon be posting something good here for Python plug-in development.
     
  16. RedNinja1337 updated StartupItems with a new update entry:

    1.0.4


    [DOUBLEPOST=1456892243][/DOUBLEPOST]Guys, I just updated the plug-in and fixed all the problems and errors I had on it. Please make sure you delete the old plug-in and also the old configuration file. Let me know of any errors and please upload the configuration file so I can replicate the errors as soon as possible.
    [DOUBLEPOST=1456892339][/DOUBLEPOST]
    Hi Uzze, I was able to change the plug-in and now works with groups. Make sure you add the group name on the config file with exactly the same name.
     
  17. [​IMG] ??
     

    Attached Files:

  18. Brobsk, can you upload your configuration file so I can replicate this to find out what is causing this errorr?
     
  19. This files
     

    Attached Files:

  20. Brobsk, I am at work right now but I will look at the config file and if I cannot find any issues on the config file then I will work on this as soon as I get home from work today.
    [DOUBLEPOST=1456942734,1456929436][/DOUBLEPOST]
    I was not able to replicate that error. After a closer look at the error message you got I see that you are using the plug-in version 1.0.3. Please replace that one for version 1.0.4 and let me know if that works for you.