Important Pluton for Experimental Branch

Status
Not open for further replies.

Bil

New Member
Member
Oct 7, 2014
4
0
1
Ohkayyyy i been think it was a problem then the command is not functionaly right at time? you know I do not feel to help but if you say it I have a sense of purpose :) thx
 

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
What timer Callback can do and what they can't... To me it seems they do nothing needed
 

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
Thanks for response... Got it my self... I am new to timers of this kind :D
 

BZ-MikeH

New Member
Member
Aug 15, 2014
15
3
3
Seems since the update i'm having issues with the loadouts working ingame. Looking at the output.log file they are loaded correctly but not working once a player tries to redeem them. I have reset them from the example configs provided also with no luck.
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,465
925
113
Australia
Random ass NullReference Errors on Pluton.Reload
So I reinstalled pluton and errors came back.
So I then done:
-Re downloaded Rust server
-Re downloaded pluton
-patched the correct files
- started server then done a pluton.reload
Code:
NullReferenceException: Object reference not set to an instance of an object
  at Pluton.pluton.reload (.Arg arg) [0x00000] in <filename unknown>:0

  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)

  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0

  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0

  at ConsoleSystem+Index+<>c__DisplayClass2a.<BuildFunctions>b__25 (.Arg arg) [0x00000] in <filename unknown>:0

  at ConsoleSystem.RunCommandInternal (.Arg arg, Boolean bWantReply) [0x00000] in <filename unknown>:0
UnityEngine.Debug:Internal_LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
ConsoleSystem:RunCommandInternal(Arg, Boolean)
ConsoleSystem:Run(String, Boolean)
ServerConsole:OnInputText(String)
Windows.ConsoleInput:OnEnter()
Windows.ConsoleInput:Update()
ServerConsole:Update()
(Filename:  Line: -1)

Error: pluton.reload - Exception has been thrown by the target of an invocation. (mscorlib)
 

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
Hmmm... I have no problem with Pluton v0.9.7 (Today updated) and Rust Experimental Server v1452
 

coersum

Plugin Developer
Plugin Developer
Oct 9, 2014
77
5
8
47
Parts Unknown
C#:
        public void lookat(float x, float y, float z)
        {
            var lookPos = new Vector3(x, y, z) - basePlayer.transform.position;
            lookPos.z = 0;
            var rotation = Quaternion.LookRotation(lookPos);
            rotation *= Quaternion.Euler(0, 0, 90);
            basePlayer.transform.rotation = Quaternion.Slerp(basePlayer.transform.rotation, rotation, Time.deltaTime * 1);
        }
Any idea why this is not working ? (peronal addition to in Player.cs to change camera rotation after teleport)

Also tried:

basePlayer.transform.LookAt(new UnityEngine.Vector3(x, y, z));
But no luck >.<
 

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
C#:
        public void lookat(float x, float y, float z)
        {
            var lookPos = new Vector3(x, y, z) - basePlayer.transform.position;
            lookPos.z = 0;
            var rotation = Quaternion.LookRotation(lookPos);
            rotation *= Quaternion.Euler(0, 0, 90);
            basePlayer.transform.rotation = Quaternion.Slerp(basePlayer.transform.rotation, rotation, Time.deltaTime * 1);
        }
Any idea why this is not working ? (peronal addition to in Player.cs to change camera rotation after teleport)

Also tried:

basePlayer.transform.LookAt(new UnityEngine.Vector3(x, y, z));
But no luck >.<
Maby stupid but did you tryed with small letters "lookat" if it is in
"public void lookat(float x, float y, float z)"
then maby it should be with small... Nothing big!
 

coersum

Plugin Developer
Plugin Developer
Oct 9, 2014
77
5
8
47
Parts Unknown
Maby stupid but did you tryed with small letters "lookat" if it is in
"public void lookat(float x, float y, float z)"
then maby it should be with small... Nothing big!
The "lookat" function is one I made, the basePlayer.transform.LootAt() function is one that is in already, was hoping it would rotate the player in the vector direction.
 

balu92

Moderator
Moderator
Jul 11, 2014
338
75
28
33
I'm not quite sure that basePlayer.transform.rotation is the thing you want to change for that. Probably the camera or the gameobject that the camera is attached to.
 

Skope

New Member
Member
Oct 17, 2014
2
0
1
36
Hello from Germany.

I installed Pluton on my Rust Server.
It runs great, but doesnt load new plugins like TPA, Droper...

Why ?
 

Skully

Plugin Developer
Plugin Developer
Sep 8, 2014
91
7
8
Hello from Germany.

I installed Pluton on my Rust Server.
It runs great, but doesnt load new plugins like TPA, Droper...

Why ?
Look in "Pluton/Logs/Log_DATE.txt" and see what is happening!
 

mikec

Master Of All That I Survey
Administrator
Jul 12, 2014
296
152
28
Los Angeles, California, USA
The "lookat" function is one I made, the basePlayer.transform.LootAt() function is one that is in already, was hoping it would rotate the player in the vector direction.
You're doing it backwards. basePlayer.transform.LookAt() is called by the client using RPC to update the server-side player object, so it is looking where client-side player object is now looking.
 

SuB_- Revolt

Member
Member
Oct 10, 2014
49
3
8
31
Canada
revoltservers.com
I usually set my savetime to 300 seconds, and it loads the new plugins modifications. (Works for Configs, not sure about the plugin it self tho. Good thing I just discovered pluton.reload haha). Will try that out boys.
 
Status
Not open for further replies.