About RustBuster and Fougerite

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

By DreTaX on Feb 13, 2017 at 5:03 PM
  1. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,850
    Likes Received:
    636
    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

Comments

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

    1. salva
      salva
      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. tarynkelley
      tarynkelley
      I wonder if its now possible to change the Stack Size.
    3. Teemo
      Teemo
      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. Jakkee
      Jakkee
      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. DreTaX
      DreTaX
      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. DreTaX
      DreTaX
      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. DreTaX
      DreTaX
      @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. DreTaX
      DreTaX
      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. salva
      salva
      Thanks very very well ... I will start designing something for my server and see that such is the experience of the players
    10. DreTaX
      DreTaX
    11. salva
      salva
      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. DreTaX
      DreTaX
      below example works only.
    13. tarynkelley
      tarynkelley
      Because Vsync is activated in Rust?
    14. DreTaX
      DreTaX
      Check that but nope.
    15. BogdanWDK
      BogdanWDK
      @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. Jakkee
      Jakkee
      C# atm
    17. salva
      salva
      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: Feb 18, 2017
    18. DreTaX
      DreTaX
      Can you show us what code are you doing:
    19. salva
      salva
      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        
              }

          }
       

Share This Page