Plugin support for RustBuster is on the way

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

  1. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    Stay tuned.
     
    #1
    • Like Like x 1
  2. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    Server:
    2/5/2017 11:15:51 PM [Console] Downloading Plugin: SSQLib.dll
    2/5/2017 11:15:51 PM [Console] bytes: 10752
    2/5/2017 11:15:51 PM [Console] Downloaded!

    Client:
    2/5/2017 11:15:51 PM [RustBuster] Downloaded file, bytes: 10752

    All seems fine, now I only need to load the plugin. We are getting there.
     
    #2
    • Like Like x 1
  3. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    Omg! Nice!
     
    #3
  4. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    2/6/2017 1:55:19 PM [RustBuster] [RustBusterPlugins] Loading modules...
    2/6/2017 1:55:19 PM [RustBuster] [RustBusterPlugins] Module Found: RustBusterTestPlugin.dll
    2/6/2017 1:55:19 PM [RustBuster] [RustBusterPlugins] Loading assembly: RustBusterTestPlugin.dll
    2/6/2017 1:55:19 PM [RustBuster] [RustBusterPlugins] Checked RustBusterTestPlugin.Test
    2/6/2017 1:55:19 PM [RustBuster] [RustBusterPlugins] Instance created: RustBusterTestPlugin.Test
    2/6/2017 1:55:19 PM [RustBuster] [RustBusterPlugins] Module added: RustBusterTestPlugin.dll
    2/6/2017 1:55:19 PM [RustBuster] [RustBusterPlugins] Module TestPlugin v1.0 (by DreTaX) initiated.

    Well to be honest, it doesnt save the dlls, they are in the memory, but they get loaded now. =)

    P.S I don't plan saving dlls.
     
    #4
    • Like Like x 2
  5. Jakkee
    Offline

    Jakkee Plugin Developer Plugin Developer Contributor

    Joined:
    Jul 28, 2014
    Messages:
    1,443
    Likes Received:
    135
    Is it possible to pull it from the memory?
    Don't want no dirty players getting the dlls this way
     
    #5
  6. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    If you obfuscate the DLL, you have already solved this problem.
     
    #6
  7. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    upload_2017-2-6_19-5-44.png

    Seems OK.
     
    #7
    • Winner Winner x 1
  8. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    Impressive, totally awesome .... I already imagine many things, would be possible .....?

    F2 Integrated Mini Rusty Admin Tool (only admins)
    F3 to see the server kits available.
    F4 see the map and where are you, launched explorer https://rustmap.net/index.php?locx=6000&locy=-4000

    They are only imaginations.

    Great job here @DreTaX and the whole development team ...
     
    #8
  9. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    Indeed. It may take some time to work those out, but I expect the community to work on those. Release coming out now.
     
    #9
  10. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    You can put this example in github or some other similar example ... to start learning how to make client side plugins? Thank you!
     
    #10
  11. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

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

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    Just compile into a dll and place It to the ClientPlugins. Server restart is required for now.

    Also, you can only use the unityengine API and Rust API to change and add some stuffs.

    My imagination about the map would be to include the rust map image as a resource in a dll, and use unity GUIs to show the map, and check for specific key presses, etc.
     
    #12
    • Like Like x 2
  13. xandeturf
    Offline

    xandeturf Moderator Moderator

    Joined:
    Nov 4, 2015
    Messages:
    132
    Likes Received:
    9
    Can Assembly-CSharp resources be used or modified?
     
    #13
  14. salva
    Offline

    salva Friendly self-taught developer Administrator

    Joined:
    Jan 31, 2016
    Messages:
    564
    Likes Received:
    82
    Something like this .... it's really fun to do this, I have a lot of ideas in my head right now, but my programming level is self-taught, only your posts in github have always helped me to develop all the plugins I've done, I hope That nourish to the forum of examples, greetings !!

    P.S. It would be nice if you disconnect the client, remove the GUI.

    Test1.jpg
     
    #14
    • Like Like x 1
  15. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    It does, but you have to destroy it as i did in my example.

    It takes a little time until the disconnect hook gets called, but its on a todo to be fixed.
     
    #15
  16. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    With C# code yes.
     
    #16
  17. DreTaX
    Offline

    DreTaX Probably knows the answer... Administrator

    Joined:
    Jun 29, 2014
    Messages:
    3,817
    Likes Received:
    602
    I added an example client-server communication.

    Not the best, I would say enums are better, but was too lazy. It should work.

    https://github.com/dretax/RustBusterExamplePlugin/tree/master/RustBusterTestPlugin

    Also the server receives a steamid from the client, but i didnt have any examples.
    To be honest its unneccessary, since you get everything in API.RustBusterUserAPI
     
    #17

Share This Page

iHax Comunity/