I've added the event manager.cs file to my c# project. I added Assemly-CSharp, Oxide.Core, Oxide.Game.Rust, Rust.Data and UnityEngine. I keep getting errors on my compile
Error CS0246 The type or namespace name 'ConsoleSystem' could not be found (are you missing a using directive or an assembly reference?)
Error CS0012 The type 'ConsoleSystem.Arg' is defined in an assembly that is not referenced. You must add a reference to assembly 'Facepunch.Console, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
Error CS0012 The type 'Connection' is defined in an assembly that is not referenced. You must add a reference to assembly 'Facepunch.Network, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Error CS0012 The type 'Networkable' is defined in an assembly that is not referenced. You must add a reference to assembly 'Facepunch.Network, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'.
Well you get the point. I thought all of this information was in the Assembly-Csharp files?
Cannot get Oxide to compile in vs15
Discussion in 'Rust Development' started by jmontano27, Aug 20, 2016.
-
Wulf Community Admin
ConsoleSystem is in Facepunch.Console.dll, as the error mentions. The same applies to the ones for Facepunch.Network.
-
Ok I got it all sorted out. Says it can't the main function, but I'm guessing I don't have access to it? This is just to see if it compiles right? There is no way for me to set breakpoints and step through the code while having the server running
-
Wulf Community Admin
I'm not sure what you mean by main function, but generally you'd just want it to be without errors and able to compile on the server itself. -
The main function, the first line of code it reads. It compiles in VS fine, but is there any way to set a breakpoint and be able to step through the code to watch how it works?
-
Wulf Community Admin
Unlikely since there are hooks that Oxide calls while the server is running. Most would normally run a server in the background and check it as needed. -
Hrm so the best way for me to debug is to run it on a local host first then put it on my dedicated?
-
Wulf Community Admin
That's host most developers would handle it as if would allow you to trigger hooks and such. -
So what you're saying is that I could just make my own exe of rust with VS and then be able to set breakpoints, or will it still only let me step through hooks?
-
Wulf Community Admin
I'm not familiar with that, so I can't really offer up any suggestions other than using the server normally. Oxide is what calls the hooks, and those hooks are called as Rust runs the code where those hooks are.
