I recently decided i wanted to make plugins.
I was reading here: Rust
And using some of the c# examples, but i get an error
EnqueueCompilation called for an empty compilation
Not sure what this is about but im new to all this so i dont know.
Learning to make plugins
Discussion in 'Rust Development' started by boop 2, Apr 4, 2016.
-
Wulf Community Admin
Please provide your full latest oxide/logs.
-
You want to see the error
[DOUBLEPOST=1459789720][/DOUBLEPOST]All is says is
EnqueueCompilation called for an empty compilation -
Calytic Community Admin Community Mod
Nope, we can't say much with that error alone. Like wulf mentioned please upload your log files from oxide/logs (latest files only)
-
All i have in my logs is notifier connections
-
Calytic Community Admin Community Mod
Alright, can you provide the plugin code you are using for your example?
-
Code:
using System.Collections.Generic; using System; using System.Reflection; using System.Data; using UnityEngine; using Oxide.Core;namespace Oxide.Plugins { [Info("EpicPlugin", "Unknown", "1.0.0")] [Description("A basic chat command.")] class EpicPlugin : RustPlugin { [ConsoleCommand("testing")] void TestCommand(BasePlayer player, string command, string[] args) { SendReply(player, "Test successful!"); } } }
-
Wulf Community Admin
What filename are you using for your plugin @boop 2?
-
test.cs
-
Wulf Community Admin
-
OMG, hahahah. Im a idiot, sorry!
-
-
Don't know if this thread is dead or not, but I'm really interested in making plugins for rust as well. However, I'm just beginning to learn Python. I saw python is indeed supported for Rust game. Could any of you wizard developers point me in a good direction for learning how to program for this game? Any resources, books, etc would be much appreciated.
-
Click -> Python tutorial
I suggest first learning ad much as possible of the language itself and experimening with simple stuff like console applications (not sure how you'd do such in python). Later on move to plugin making and try to learn about Oxide's API and the game you want to support. -
Was wondering if you could help me figure something out LaserHydra. After sifting through other Python plugins and their code I was able to figure out how to broadcast text based on certain hooks:
I simply copied and pasted random modules to import based on what other Python codes looked like, because I have no idea where to find these modules or what to import based on what I need. I know its somewhere in the DLL, but my problem is I have no idea how to navigate the DLL, or WHICH DLL to look at for primary definitions etc.
I am currently importing the following:
import BasePlayer
import UnityEngine
from System import Action
import re
Obviously ONE of them is allowing the rust.SendChatMessage function to work... and its obviously deriving from the "rust" module/library. Now when I open up the Assembly-CSharp.dll in a decompiler, I see the following:
So I figured, ok "rust.SendChatMessage( )" must be in the Rust module/class. (My assumption is that in this .dll list, these are all the various "Classes" or "Objects"; please tell me if I'm wrong). I open up the Rust module/class and don't see anything referring to "SendChatMessage" definition/function, I only see the following:
Basically, I'm wondering if someone can help me understand where to look for functions in Rusts and Oxides .dll's and where to look for the functions etc. Am I looking in the incorrect DLL? Is the 'rust' part of "rust.SendChatMessage" referring to a class within a module or a module within a DLL? -
Wulf Community Admin
-
Thanks once again Wulf. -
Wulf Community Admin
-
-
Wulf Community Admin