Here is a tutorial on, for me, the best part of Fougerite, the C# plugins !
We are going to learn how to setup the dev environment
I - Requirement
- The server files or at least the dlls
- xamarin studio, get it from here : http://monodevelop.com/download so you don't have to install all of the xamarin products
- Very little C# knowledge (you can learn on the go
)
II - Environment setup
Here we are going to setup the environment to be able to simply make plugins and we are going to create our very first one !
First of all, we are going to create folders :
- In your preferred place for programming stuff create a folder called "FougeritePlugins"
- In the newly created folder create a folder References
Now copy the dll of the patched rust server in your References files (you can find them in your server file\rust_server_Data\Managed)
Now you should have a FougeritePlugins folder with a References folder in it containing a lot of dlls, such as "Fougerite.dll" or "Assembly-CSharp.dll".
Let's create the project, first launch Xamarin Studio
In the step 4 you should enter your plugin name
Image hosted by http://oximg.com/
Next we will add the reference to the dlls, double ring means double clicks and you should repeat the steps 3 and 4 to add all the libs that you can see in the rectangle on the right
Image hosted by http://oximg.com/
Now let's go in the option menu (blue circle is right click)
Image hosted by http://oximg.com/
Change the configuration as followed
Image hosted by http://oximg.com/
Here is just a thing that I like to do, it will just put the generated dll in a sub folder so to release your plugin you'll just have to copy that folder
Image hosted by http://oximg.com/
And now let's go into Release mode
Image hosted by http://oximg.com/
Last thing, rename the default generated file MyClass to the name of your plugin (right click, rename)
Now you should have something like this :
Image hosted by http://oximg.com/
All right we are done for this part, you have a fully setup dev environment, you just need to start coding, that will be in another tutorial !
We are going to learn how to setup the dev environment
I - Requirement
- The server files or at least the dlls
- xamarin studio, get it from here : http://monodevelop.com/download so you don't have to install all of the xamarin products
- Very little C# knowledge (you can learn on the go
II - Environment setup
Here we are going to setup the environment to be able to simply make plugins and we are going to create our very first one !
First of all, we are going to create folders :
- In your preferred place for programming stuff create a folder called "FougeritePlugins"
- In the newly created folder create a folder References
Now copy the dll of the patched rust server in your References files (you can find them in your server file\rust_server_Data\Managed)
Now you should have a FougeritePlugins folder with a References folder in it containing a lot of dlls, such as "Fougerite.dll" or "Assembly-CSharp.dll".
Let's create the project, first launch Xamarin Studio
In the step 4 you should enter your plugin name

Image hosted by http://oximg.com/
Next we will add the reference to the dlls, double ring means double clicks and you should repeat the steps 3 and 4 to add all the libs that you can see in the rectangle on the right

Image hosted by http://oximg.com/
Now let's go in the option menu (blue circle is right click)

Image hosted by http://oximg.com/
Change the configuration as followed

Image hosted by http://oximg.com/
Here is just a thing that I like to do, it will just put the generated dll in a sub folder so to release your plugin you'll just have to copy that folder

Image hosted by http://oximg.com/
And now let's go into Release mode

Image hosted by http://oximg.com/
Last thing, rename the default generated file MyClass to the name of your plugin (right click, rename)
Now you should have something like this :

Image hosted by http://oximg.com/
All right we are done for this part, you have a fully setup dev environment, you just need to start coding, that will be in another tutorial !
Last edited: