RustBusterServer

RustBusterServer 3.2.3

  • Added rust weather api in client
  • Bunch of fixes
  • Added Admin Check logs in console
  • Etc
  • Like
Reactions: Lord and salva
Client:
  • Added Client Console Event, you can hook on it now
  • Some fixes
  • Fixed Plugins to Re-Load when you disconnect and reconnect to a server.
  • Quick fix, sry guys.
  • Client side fixes, no server changes.
Client:
  • Upon Disconnection, a new hook has been added, so the client instantly cleans up everything including plugins
  • Client Plugins are not detected as unknown entities
  • Added some Loading Screen stuffs
  • Bunch of other fixes, etc.

Server:
  • A small fix, and version number change
  • Fixed socket flood causing high memory usage. (No lifers really...) Thanks @taryn
  • Update ASAP
  • Serverbrowser fix
  • NotifyMSG2 fix
  • Like
Reactions: salva
Server:
  • Bunch of fixes
  • OnClientMessage hook for custom messages.
  • New cfg option
  • Set ImageQuality to 0x0 to disable screenshots if needed

Client:
  • Client reads every message, and the exact length which is faster, same way as the server.
  • Timers should be fixed
  • Check fixes
  • Client Side Plugin Support (NOT LIMITED YET, please don't start doing bullshit plugins for players that would fuck them up)
  • Possibility to send custom message and receive answer from the server

Example Client Side Plugin:

C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RustBuster2016.API;
using UnityEngine;

namespace RustBusterTestPlugin
{
    public class Test : RustBusterPlugin
    {
        public TestGUI test;
        private static GameObject Load;

        public override string Name
        {
            get { return "TestPlugin"; }
        }

        public override string Author
        {
            get { return "DreTaX"; }
        }

        public override Version Version
        {
            get { return new Version("1.0"); }
        }

        public override void DeInitialize()
        {
            // DeInitialize gets called on disconnect, be sure to cleanup the user's client.
            UnityEngine.Object.Destroy(Load);
        }

        public override void Initialize()
        {
            Load = new GameObject();
            test = Load.AddComponent<TestGUI>();
            UnityEngine.Object.DontDestroyOnLoad(Load);
            UnityEngine.Debug.Log("Loaded!");
        }
    }
}


C#:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

namespace RustBusterTestPlugin
{
    public class TestGUI : MonoBehaviour
    {
       
        public void OnGUI()
        {
            // Make a background box
            GUI.Box(new Rect(10, 10, 100, 90), "Test Menu");

            // Make the first button. If it is pressed, Rust.Notice.Popup will be executed
            if (GUI.Button(new Rect(20, 40, 80, 20), "Test"))
            {
                Rust.Notice.Popup("", "Test");
            }
        }
    }
}
  • Fixed ServerBrowser.