About RustBuster and Fougerite

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
So my university started today, kinda chill time table, though I can't fail, will need to focus on this.

I plan to look into the remaining issues of Rust and fix them in Fougerite if possible,
and I also try to look into adding new stuff to rust, but no idea where to start yet.

If you have any ideas for client hooks, or any additional stuffs please let me know.
 
  • Like
Reactions: Jakkee

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
Good luck with the university ...

For the moment 1.4.7 of rustbuster works perfectly, maybe include some settings but it would be fine ..

For the client hooks part, I would like to make a gui that will show the location of the player using a timer, but .... I do not know which hook would be required to do this on the client side (dev lvl noob xd) , Anyway it includes some hooks and examples and we will see how far our imagination comes ... Greetings!
 

Teemo

New Member
Member
Jan 29, 2017
1
0
1
18
I Don't know, if it's possible add Ak-47 , and maybe create a plugin with animals, i mean like that u can have your own animal, like wolf , bear , or mutant bear.
 

Jakkee

Plugin Developer
Plugin Developer
Contributor
Jul 28, 2014
1,463
342
83
Australia
I wonder if its now possible to change the Stack Size.
Probably, I think it's also possible to change a player movement speed and possibly even beable to do some ESP/Fly hacks.
Might look into this for server admins to use
 
  • Agree
Reactions: DreTaX

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
I will try that package extractor and see what can i do with this thing.

No idea how @Brain did It, but Snake is not really interested in the stuffs, though atleast he has real unity experience.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
Good luck with the university ...

For the moment 1.4.7 of rustbuster works perfectly, maybe include some settings but it would be fine ..

For the client hooks part, I would like to make a gui that will show the location of the player using a timer, but .... I do not know which hook would be required to do this on the client side (dev lvl noob xd) , Anyway it includes some hooks and examples and we will see how far our imagination comes ... Greetings!
I will add a client console hook. That might be fun to try as a client plugin.

C#:
public class FPSDisplay : MonoBehaviour
{
    float deltaTime = 0.0f;
    void Update()
    {
        deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
    }
    void OnGUI()
    {
        int w = Screen.width, h = Screen.height;
        GUIStyle style = new GUIStyle();
        Rect rect = new Rect(0, 0, w, h * 2 / 100);
        style.alignment = TextAnchor.UpperLeft;
        style.fontSize = h * 2 / 100;
        style.normal.textColor = new Color (0.0f, 0.0f, 0.5f, 1.0f);
        float msec = deltaTime * 1000.0f;
        float fps = 1.0f / deltaTime;
        string text = string.Format("{0:0.0} ms ({1:0.} fps)", msec, fps);
        GUI.Label(rect, text, style);
    }
}
 
  • Agree
Reactions: salva

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
C#:
Texture2D texture = new Texture2D(900, 900, TextureFormat.RGB24, false);
mhm

C#:
public class example : MonoBehaviour
{
    GUIContent content = new GUIContent();
    public Texture2D image;
    string text = "ButtonText";
    
    void Awake()
    {
        content.text = text;
        byte[] bytes = File.ReadAllBytes(Directory.GetCurrentDirectory() + "\\img.png");
        image = new Texture2D(width, height);
        image.filterMode = FilterMode.Trilinear;
        image.LoadImage(bytes);
    }
    
    void OnGUI()
    {   
        GUI.skin.button.normal.background = (Texture2D)image;
        if(GUI.Button(new Rect(0, 0, 128, 128), content))
        {
            //Do Something.   
        }
    }
}
That may actually load an image to a gui, making it possible to work on a map i guess.
 
  • Informative
Reactions: salva

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
Thanks very very well ... I will start designing something for my server and see that such is the experience of the players
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
C#:
Texture2D texture = new Texture2D(900, 900, TextureFormat.RGB24, false);
mhm

C#:
public class example : MonoBehaviour
{
    GUIContent content = new GUIContent();
    public Texture2D image;
    string text = "ButtonText";
   
    void Awake()
    {
        content.text = text;
        byte[] bytes = File.ReadAllBytes(Directory.GetCurrentDirectory() + "\\img.png");
        image = new Texture2D(width, height);
        image.filterMode = FilterMode.Trilinear;
        image.LoadImage(bytes);
    }
   
    void OnGUI()
    {  
        GUI.skin.button.normal.background = (Texture2D)image;
        if(GUI.Button(new Rect(0, 0, 128, 128), content))
        {
            //Do Something.  
        }
    }
}
That may actually load an image to a gui, making it possible to work on a map i guess.
I'm sure it's possible by overlapping a point on the map ... but .... which hook to use to get the coordinates of the player using the gui?
 

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
@salva

View attachment 1858

Thats how it looks when centering it, but no idea why is 60 the limit yet :p
I have done some tests and if it is able to show the FPS without limits!!

There is only one problem, if I disconnect and reconnect, the GUI no longer reloads, I need to restart the client to load again, any ideas?

fps.jpg
 
Last edited:

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
Can you show us what code are you doing:
Code similar to the one you used - ...

C#:
    public class TitlePluginGUI : MonoBehaviour
    {
        //DRETAX CODE
        float deltaTime = 0.0f;
        void Update()
        {
            deltaTime += (Time.deltaTime - deltaTime) * 0.1f;
        }
        //FIN

        public void OnGUI()
        {

            GUI.contentColor = Color.blue;
            // GUI.Box(new Rect(5, 5, 275, 25), "RaidersLand 108.61.97.7:28016");
            //DontWORK GUI.Box(new Rect(20, 20, 275, 25), World.GetWorld().Time.ToString());

            //DRETAX CODE
            int w = Screen.width, h = Screen.height;
            GUIStyle style = new GUIStyle();
            Rect rect = new Rect(0, 0, w, h * 2 / 100);
            style.alignment = TextAnchor.UpperCenter;
            style.fontSize = h * 2 / 100;
            //style.normal.textColor = new Color (0.0f, 0.0f, 0.5f, 1.0f);    
            float msec = deltaTime * 1000.0f;
            float fps = 1.0f / deltaTime;
            //string text = string.Format("{0:0.0} ms ({1:0.} fps) ", msec, fps);
            string text = string.Format("RaidersLand 108.61.97.7:28016 ({1:0.} fps) ", msec, fps);
            GUI.Label(rect, text, style);
            // FIN DRETAX CODE        
        }

    }