About RustBuster and Fougerite

Discussion in 'News & Announcements' started by DreTaX, Feb 13, 2017.

  1. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    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.
     
    #1
    • Like Like x 1
  2. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    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!
     
    #2
  3. tarynkelley
    Offline

    tarynkelley Moderator Moderator

    Joined:
    Nov 14, 2015
    Messages:
    559
    Likes Received:
    36
    I wonder if its now possible to change the Stack Size.
     
    #3
  4. Teemo
    Offline

    Teemo New Member Member

    Joined:
    Jan 29, 2017
    Messages:
    1
    Likes Received:
    0
    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.
     
    #4
  5. Jakkee
    Offline

    Jakkee Plugin Developer Plugin Developer Contributor

    Joined:
    Jul 28, 2014
    Messages:
    1,443
    Likes Received:
    135
    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
     
    #5
    • Agree Agree x 1
  6. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    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.
     
    #6
  7. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    I will add a client console hook. That might be fun to try as a client plugin.

    Code (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);
        }
    }
     
    #7
    • Agree Agree x 1
  8. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    @salva

    upload_2017-2-14_10-48-45.png

    Thats how it looks when centering it, but no idea why is 60 the limit yet :p
     
    #8
  9. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    Code (C#):
    Texture2D texture = new Texture2D(900, 900, TextureFormat.RGB24, false);
    mhm

    Code (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.
     
    #9
    • Informative Informative x 1
  10. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    Thanks very very well ... I will start designing something for my server and see that such is the experience of the players
     
    #10
  11. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    #11
  12. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    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?
     
    #12
  13. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    below example works only.
     
    #13
  14. tarynkelley
    Offline

    tarynkelley Moderator Moderator

    Joined:
    Nov 14, 2015
    Messages:
    559
    Likes Received:
    36
    Because Vsync is activated in Rust?
     
    #14
  15. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    Check that but nope.
     
    #15
  16. BogdanWDK
    Offline

    BogdanWDK Plugin Developer Plugin Developer Wiki Editor

    Joined:
    Jul 31, 2014
    Messages:
    104
    Likes Received:
    18
    @DreTaX python version for handling the GUI and some examples ? I have some ideas that might be awesome if i manage to bring them on.
     
    #16
  17. Jakkee
    Offline

    Jakkee Plugin Developer Plugin Developer Contributor

    Joined:
    Jul 28, 2014
    Messages:
    1,443
    Likes Received:
    135
    C# atm
     
    #17
  18. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    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
     
    #18
    Last edited: Feb 18, 2017
  19. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,818
    Likes Received:
    602
    Can you show us what code are you doing:
     
    #19
  20. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    Code similar to the one you used - ...

    Code (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        
            }

        }
     
     
    #20

Share This Page

iHax Comunity/