Hello
I am Brazilian
I already I program in C #, VB and C ++
can someone show me the first steps to
set up a project so I can start making plugins
I'm sorry if there is already a topical
I searched and not found
I found this link which is very useful
http://docs.oxidemod.org/#broadcastchat
grateful!
Solved [C#] Project configure for the first plugin
Discussion in 'Rust Development' started by igor1150, Mar 13, 2015.
-
Wulf Community Admin
- Setup a local development server by following the steps here.
- Once you've started the server once, create YourPluginName.cs in the server/yourserveridentity/oxide/plugins.
- Open YourPluginName.cs with Visual Studio (preferably 2015) or your favorite editor, and start writing your plugin.
- If you need examples of CSharp plugins, look at the examples found around the forum or Resources section.
-
If you're using Visual Studio 2015, you should clone the Oxide repository from Github and create your C# plugin files in Oxide.Ext.Rust/Plugins/ alongside the SamplePlugin.cs file. That way all references will be resolved and you will have intellisense for the Oxide core, the C# plugin API as well as the main Rust assembly.
-
thanks guys
so no need to create a project?
only create the arquivo.cs and use the correct imports?
I do not know why
more my oxide has no folder
my rust server is "C:\steamcmd\rust_server\server"
e have "C:\steamcmd\rust_server\server\plugins" <-here I install the plugins more functions normally
I must have done something wrong in the installation kkkkkk
e have "C:\steamcmd\rust_server\server\my_server_identity"
and has folders "cfg","persistence" and "save"
is there any page talking more on imports available? -
Wulf Community Admin
-
-
yes I've started the server
[DOUBLEPOST=1426303797,1426271743][/DOUBLEPOST]a simple example of hello world
C #
Code:using System.Collections.Generic; using System; using System.Reflection; using System.Data; using UnityEngine; using Oxide.Core; using Oxide.Core.Configuration; using Oxide.Core.Logging; using Oxide.Core.Plugins;namespace Oxide.Plugins { [Info("HelloWord", "igor", 1.0)] class HelloWord : RustPlugin { void OnPlayerInit(BasePlayer player){ SendReply((BasePlayer)player, "HelloWord"); } } }
Last edited by a moderator: Mar 14, 2015