Plugin support for RustBuster is on the way

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
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.
 
  • Like
Reactions: salva

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
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.
Omg! Nice!
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
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.
 

salva

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

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
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 ...
Indeed. It may take some time to work those out, but I expect the community to work on those. Release coming out now.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
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.
 
  • Like
Reactions: salva and xandeturf

salva

Friendly self-taught developer
Administrator
Jan 31, 2016
576
207
43
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
 
  • Like
Reactions: Jakkee

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
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.

View attachment 1826
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.
 

DreTaX

Probably knows the answer...
Administrator
Jun 29, 2014
3,983
1,467
113
At your house.
github.com
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.

View attachment 1826
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