Hello, i was wondering if someone could make me a video tutorial on how to get started developing plugins for Rust Experimental. I don't know how to make the project in visual studio and how to add the dlls i know the code though. Thanks -Smurf
Video tutorial for Visual Studio?
Discussion in 'Rust Development' started by Smurflings!, Jul 13, 2015.
-
Wulf Community Admin
There are likely hundreds of not thousands of videos on how to create a Visual Studio project or adding references/deps, I'd recommend starting there.
-
I know how to do that now but when i compile i get a 10848 errors and 38 warnings i need a indepth tutorial on how to compile oxide plugins
-
Wulf Community Admin
You don't really need to use Visual Studio to develop plugins, you can develop them directly in your server's plugins folder using any editor. Once you are more comfortable with your server and plugins, you can move on to Visual Studio if desired. I generally still develop Lua plugins using just Notepad++ with my game server running in the background for compiling and testing. -
How about you give us the 5 first errors and we'll start with that?
There's really nothing complicated to it, just create any C# project (Windows Form, console app, class lib it doesn't matter). Just as is, it should compile. Then add references to the different Rust-related dll's (right click project, add reference, browse to your server installation folder)... This shouldn't give any errors either...
Then start with a basic "hello world" plugin using the documentation on here.. just create a new .cs class file, delete all that's into it and paste one of the examples from here (or heck, download an existing plugin as an example to start from -- check the first version of my NoDecay mod for example it's only a couple of lines). This should compile, provided you properly added the proper references...
And then well you're set... all there is to it.
The "complex" part is downloading the server files and installing oxide, but this is still pretty trivial and there are tons of threads and tutorials right on here on how to do this. -
The name 'SendChatMessage' does not exist in the current context
The type or namespace name 'ChatCommand' could not be found (are you mising a using directive or an assembly reference?)
The type or namespace name 'Info' could not be found (are you mising a using directive or an assembly reference?)
The type or namespace name 'RustPlugin' could not be found (are you mising a using directive or an assembly reference?)
The type or namespace name 'Description' could not be found (are you mising a using directive or an assembly reference?)
http://gyazo.com/90dc0738ddc46c80f1ff6a72de627acf
[DOUBLEPOST=1437333592][/DOUBLEPOST]What server files to i upload to visual studio and in what folder? -
You don't upload files to Visual Studio on in it's folders, just use "Add Reference" then "Browse" to add the server files to your project.
-
I want to start making plugin and I don't know wich file in the server folder I must reference in my project.
Can you say me step by step how to setup visual studio to start coding plz ?
