How long until some sample code? Trying the new PyCharm coding and just want some sample codes...Yeah I got tp plugin working in about the same time as you.
And yeah i saw there was Jint support added, Just thought i'd try out Python.Come Back later, Updating the code
most likely one of the plugn's issue in On_Command hookSomthing strange for my server didnt had any problem but now they all disconnect and i have HIGH PING INCREASE but i dont know why becouse i have 8-9 MB/s Upload speeed so i think its not from my internet provider strange.....Here is my error List
ArgumentTypeException: expected object, got NoneType
Microsoft.Scripting.Interpreter.ThrowInstruction.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame)
Microsoft.Scripting.Interpreter.Interpreter.Run (Microsoft.Scripting.Interpreter.InterpretedFrame frame)
UnityEngine.Debug:LogException(Exception, Object)
Pluton.Logger:LogException(Exception, Object)
Pluton.Plugin:Invoke(String, Object[])
Pluton.Plugin:OnCommand(Command)
Pluton.<>c__DisplayClass40:b__12(Command)
System.Reactive.Subjects.Subject`1:OnNext(Command)
Pluton.Hooks:Command(Arg)
Pluton.Hooks:Chat(Arg)
chat:say(Arg)
System.Reflection.MethodBase:Invoke(Object, Object[])
<>c__DisplayClass2a:b__25(Arg)
ConsoleSystem:RunCommandInternal(Arg, Boolean)
ConsoleSystem:OnClientCommand(Message)
Network.Node:Call(Message)
Network.Router:Route(Message)
Network.Server:ReceivedMessage(Message)
Network.Implementation.Lidgren.Server:Cycle()
ServerMgr:Update()
@DreTaX is the one you want to talk to about that.How long until some sample code? Trying the new PyCharm coding and just want some sample codes...
elif command.cmd == "tpaccept":
if DataStore.Get("TeleportRequest", command.User.SteamID):
name = DataStore.Get("TeleportRequest", command.User.SteamID)
StringName = name.ToString()
NonString = Server.FindPlayer(name)
if StringName is not None:
command.User.Message("Teleport Accepted")
NonString.Message("Teleporting to: " + command.User.Name)
NonString.Teleport(command.User.Location)
else:
command.User.Message("user went offline?")
DataStore.Remove("TeleportRequest", command.User.SteamID)
else:
command.User.Message("no pending requests")
class Help:
def On_Command(self, args):
if args.cmd == "help":
args.User.Message("-----------Helpful Commands:-------------")
args.User.Message("/players - Tells you how many players are online")
args.User.Message("/whereami - Tells your location")
args.User.Message("/mystats - Shows your current stats")
args.User.Inventory.Add(14077, 1)
(PLAYERNAME).Inventory.Add(11950, 5)
args.User.Inventory.Add(ITEMID, AMOUNT)
you could upload the codes you runBalu could u help me with that error what should i do ?
Thanks... Will mess around with it@DreTaX is the one you want to talk to about that.
Pluton was intended for developers, to test and find bugs. So I hope use these for learning and helping out the devs that worked hard on Pluton.
Anyway, heres a samples
Do what you like with these
i'll paste the full code here somewhere once I have the bugs fixed.
Python:elif command.cmd == "tpaccept": if DataStore.Get("TeleportRequest", command.User.SteamID): name = DataStore.Get("TeleportRequest", command.User.SteamID) StringName = name.ToString() NonString = Server.FindPlayer(name) if StringName is not None: command.User.Message("Teleport Accepted") NonString.Message("Teleporting to: " + command.User.Name) NonString.Teleport(command.User.Location) else: command.User.Message("user went offline?") DataStore.Remove("TeleportRequest", command.User.SteamID) else: command.User.Message("no pending requests")Python:class Help: def On_Command(self, args): if args.cmd == "help": args.User.Message("-----------Helpful Commands:-------------") args.User.Message("/players - Tells you how many players are online") args.User.Message("/whereami - Tells your location") args.User.Message("/mystats - Shows your current stats")Python:args.User.Inventory.Add(14077, 1) (PLAYERNAME).Inventory.Add(11950, 5) args.User.Inventory.Add(ITEMID, AMOUNT)
XD really people are reporting problems with Pluton on their forums...wow. Maybe should remove the readme.md file..This is why we have not yet released binaries.
![]()
Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of yo
ur scripts?
A script behaviour has a different serialization layout when loading. (Read 32 b
ytes but expected 36 bytes)
Rust bug. Happens without any patch.Something forgot to do?Code:Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of yo ur scripts? A script behaviour has a different serialization layout when loading. (Read 32 b ytes but expected 36 bytes)
New to me...
Hey... I trying new code what I am making and updated the server, then compiled freshly downloaded Pluton files and when I start server error comes up...
Something forgot to do?Code:Did you #ifdef UNITY_EDITOR a section of your serialized properties in any of yo ur scripts? A script behaviour has a different serialization layout when loading. (Read 32 b ytes but expected 36 bytes)
New to me...
A server update came out recently, we probably need to update pluton.Rust bug. Happens without any patch.
Yep... Yesterday there was v1344 now it is v1368A server update came out recently, we probably need to update pluton.
HahahahaahahahThis is why we have not yet released binaries.
![]()
I promise the tomorrow of the upcoming tutorial: Python plugins for PlutonThanks... Will mess around with it![]()
Thanks but I don't need itI promise the tomorrow of the upcoming tutorial: Python plugins for Pluton
Sent from my Samsung Galaxy S4