Important Pluton for Experimental Branch

Status
Not open for further replies.
event.run in console, it will drop in the middle of the map tho
 
  • Like
Reactions: Dunne
ownerid <long steam id> - Players with that ID can do console commands from F1 + no resource for craft (instant)
moderatorid <long steam id> - Didn't test yet... !!!admin!!! but some F1 cmd's works too then
spectate - When you have ownerid given (moderator (admin) and normal don't know)
wakeup - lol wakeup
sleep - obvious
... HERE
 
Somthing 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()
 
Yeah I got tp plugin working in about the same time as you.
Come Back later, Updating the code
And yeah i saw there was Jint support added, Just thought i'd try out Python.

How long until some sample code? Trying the new PyCharm coding and just want some sample codes...
 
Somthing 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()
most likely one of the plugn's issue in On_Command hook
 
How long until some sample code? Trying the new PyCharm coding and just want some sample codes...
@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)
 
  • Useful
Reactions: CorrosionX
@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)
Thanks... Will mess around with it :)
 
This is why we have not yet released binaries.
Xv3Ic7d.png
 
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...

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)

Something forgot to do?
New to me...
 
Last edited:
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)

Something forgot to do?
New to me...

Rust bug. Happens without any patch.
 
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...

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)

Something forgot to do?
New to me...
Rust bug. Happens without any patch.
A server update came out recently, we probably need to update pluton.
 
A server update came out recently, we probably need to update pluton.
Yep... Yesterday there was v1344 now it is v1368
Thanks for reply... I fixed my TPA and now it works good (for while)... I can upload the code here if someone needs!
 
I promise the tomorrow of the upcoming tutorial: Python plugins for Pluton

Sent from my Samsung Galaxy S4
Thanks but I don't need it :)
I am making plugin Yeeeeyyyy...
My first will be TPA with full checking system...
P.S. How to make timer what does something when ends? Is there some example?
 
Status
Not open for further replies.