Important Pluton for Experimental Branch

Status
Not open for further replies.

jeff

New Member
Member
Sep 17, 2014
17
1
3
The Netherlands
Hmm...experimental game with experimental plugin...


Found an error:

C#:
public void SafeTeleport(float x, float y, float z)
        {
            throw new NotImplementedException("SafeTeleport is not yet implemented.");
            basePlayer.supressSnapshots = true;
            basePlayer.transform.position = UnityEngine.Vector3.zero;
            basePlayer.UpdateNetworkGroup();

            basePlayer.transform.position = new UnityEngine.Vector3(x, y, z);
            basePlayer.UpdateNetworkGroup();
            basePlayer.UpdatePlayerCollider(true, false);
            basePlayer.SendFullSnapshot();
        }
/Users/stopspazzing/Downloads/Pluton-master/Pluton/Objects/Player.cs(13,13): Warning CS0162: Unreachable code detected (CS0162) (Pluton)
Plugin is now working correctly. I have made a preset location for /tpa command and everyone who uses it will teleport to that location :)
 

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
Hmm...experimental game with experimental plugin...


Found an error:

C#:
public void SafeTeleport(float x, float y, float z)
        {
            throw new NotImplementedException("SafeTeleport is not yet implemented.");
            basePlayer.supressSnapshots = true;
            basePlayer.transform.position = UnityEngine.Vector3.zero;
            basePlayer.UpdateNetworkGroup();

            basePlayer.transform.position = new UnityEngine.Vector3(x, y, z);
            basePlayer.UpdateNetworkGroup();
            basePlayer.UpdatePlayerCollider(true, false);
            basePlayer.SendFullSnapshot();
        }
/Users/stopspazzing/Downloads/Pluton-master/Pluton/Objects/Player.cs(13,13): Warning CS0162: Unreachable code detected (CS0162) (Pluton)


wow...have to comment out all of safeteleport just to compile it:

Code:
        //public void SafeTeleport(Vector3 v3)
        //{
        //    SafeTeleport(v3.x, v3.y, v3.z);
        //}

        //public void SafeTeleport(float x, float y, float z)
        //{
            //throw new NotImplementedException("SafeTeleport is not yet implemented.");
            //basePlayer.supressSnapshots = true;
            //basePlayer.transform.position = UnityEngine.Vector3.zero;
            //basePlayer.UpdateNetworkGroup();
            //
           // basePlayer.transform.position = new UnityEngine.Vector3(x, y, z);
           // basePlayer.UpdateNetworkGroup();
           // basePlayer.UpdatePlayerCollider(true, false);
          //  basePlayer.SendFullSnapshot();
        //}
that's just a warning, pluton runs fine with that warning ;) SafeTeleport is not implemented...
throw new NotImplementedException("SafeTeleport is not yet implemented.");
 

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
I have to use msbuild. If I don't use msbuild, the project builds with .Net and the compile fails because optional parameters are not supported in .Net 2.0 but are supported on Mono.
vice-versa, I can't compile with msbuild cuz of the optional params...
 

Giro

New Member
Member
Oct 6, 2014
1
0
1
On one of my servers people are getting disconnected. Has happened a few times. I was at 23 players and then about 15-16 were just randomly disconnected including me. Never did this before Pluton. Any ideas?

Thanks.
 

CorrosionX

Plugin Developer
Plugin Developer
Sep 3, 2014
212
85
18
California
On one of my servers people are getting disconnected. Has happened a few times. I was at 23 players and then about 15-16 were just randomly disconnected including me. Never did this before Pluton. Any ideas?

Thanks.
Cant fix the problem if you don't give us any error logs. Are you using/trying any plugins?
 

CorrosionX

Plugin Developer
Plugin Developer
Sep 3, 2014
212
85
18
California
Code:
ArgumentNullException: Argument cannot be null. Parameter name: s

System.Int32.Parse (System.String s)
Pluton.LoadOut..ctor (System.String name)
Pluton.Server.LoadLoadouts ()
Pluton.Server.GetServer ()
Pluton.Bootstrap.Init ()
Pluton.Bootstrap.AttachBootstrap ()
UnityEngine.Debug:LogException(Exception)
Pluton.Bootstrap:AttachBootstrap()
Bootstrap:Start()
The plugin for spawning kit automatically fails to even run. Guessing the issue above is the problem. Same with Example.py

Another possible issue:
Code:
/kit starter
shows up in dev console as:
Code:
command executed /kitstarter
Doesn't seem to be including the space.
 
Last edited:

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
Code:
ArgumentNullException: Argument cannot be null. Parameter name: s

System.Int32.Parse (System.String s)
Pluton.LoadOut..ctor (System.String name)
Pluton.Server.LoadLoadouts ()
Pluton.Server.GetServer ()
Pluton.Bootstrap.Init ()
Pluton.Bootstrap.AttachBootstrap ()
UnityEngine.Debug:LogException(Exception)
Pluton.Bootstrap:AttachBootstrap()
Bootstrap:Start()
The plugin for spawning kit automatically fails to even run. Guessing the issue above is the problem. Same with Example.py

Another possible issue:
Code:
/kit starter
shows up in dev console as:
Code:
command executed /kitstarter
Doesn't seem to be including the space.
there must be a badly configured kit
 

Ionstorm

New Member
Member
Oct 6, 2014
24
5
3
43
Did you get this working? I've seen servers with kits just can't seem to get them working myself, even using your git
 

balu92

Retired Staff
Retired Staff
Trusted Member
Jul 11, 2014
338
75
28
34
Kits never failed for me, I will check.
 

Ionstorm

New Member
Member
Oct 6, 2014
24
5
3
43
None of the commands shown above work.

Standard ones like who, location etc do (I renamed them)
 

Ionstorm

New Member
Member
Oct 6, 2014
24
5
3
43
Fixed, Me being a dumbass, apologies!

I've seen people on about TPA plugins, anyone willing to share? :) <3
 

CorrosionX

Plugin Developer
Plugin Developer
Sep 3, 2014
212
85
18
California
@balu92 There is no loadout config loaded in output.log
http://pastebin.com/rvx0KB2h


Fixed, Me being a dumbass, apologies!

I've seen people on about TPA plugins, anyone willing to share? :) <3
When I get mine working wouldnt mine sharing it, I was hoping @DreTaX would jump on it and convert his TPFriend for Pluton...
I'm sure he is extremely busy tho, so if Mine is working before his, I'll share. :)
 
  • Like
Reactions: Ionstorm
Status
Not open for further replies.