it possible to change item_shortname for something like item_id so we can give the given stuff a skin?
StartupItems [Unmaintained]
Discussion in 'Plugin Support' started by RedNinja1337, Aug 31, 2015.
-
Works Like a Charm, Keep up the good work!
Last edited by a moderator: Feb 16, 2016 -
Great Plugin. All we need is a Website for Item_shortname. Thank you
-
Rust -
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 -
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>
-
Last edited by a moderator: Feb 28, 2016
-
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:
-
-
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 -
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! -
RedNinja1337 updated StartupItems with a new update entry:
1.0.3
-
Great to finally see another Python developer around, I felt a little alone around this community. Though I'm already moving to C# anyway.
-
.
-
Code:if int(len(self.Config['Players'][0])) > 0:
Code:if len(self.Config['Players'][0]):
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 oneLast edited by a moderator: Feb 29, 2016 -
Code:
if len(self.Config['Players'][0]):
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.
-
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] -
-
This files
Attached Files:
-
-
[DOUBLEPOST=1456942734,1456929436][/DOUBLEPOST]