1, I started playing rust just a few days ago and decided to try and make some plugins, so I went to docs, downloaded some plugins that I found interesting to see their code and realized that there isn't a list of default methods/functions for any of the objects, for example in the plugin "QuickSmelt" you see a default oxide hook "OnConsumeFuel" which is, well, "documented"... "documented" because the hook has 3 arguments and every one of them has it's specific properties... for example the "oven" object uses several methods/functions and even variables, which I didn't really find anywhere...
2, what module should one import when using python ? I see that the c# plugins inherit RustPlugin class as their base class, but how is it with python? I really haven't found a python plugin so far, so I wouldn't know...
Solved Default object methods/functions?
Discussion in 'Rust Development' started by SEnergy!, Aug 30, 2016.
-
Wulf Community Admin
Those properties and such are in Rust, not part of Oxide itself. You can find them by using a tool such as JustDecompile and opening Rust's Assembly-CSharp.dll. You don't have to import anything for Python as far as I know, the C# plugin is just inheriting a class.
Most plugins use C#, the only ones I know about are those by @sqroot. -
I guess the dll has been decompiled already, is there any known doc or at least a list of those properties?
-
Wulf Community Admin
I'm not sure what you mean about it being decompiled already, that's something you'd need to do if you haven't already. The list of the properties and such are in that DLL which you can search for or browse using the tool I recommend else another like it. -
what I meant is that since quite a few people might need this (how else would they know those properties?) that someone already might have decompiled the dll and posted the source somewhere (github maybe?) for others to find easily without the need to decompile on their own, but well, my pc is already filled up with crap, so why not?
-
Wulf Community Admin
It's a closed-source and copyrighted game, so posting the source likely wouldn't be wise. It's a single DLL that won't fill up your computer and is just viewed in the program. We find these properties as we add the hooks to the games in the locations where they are. People know about them as they look at the DLL, the Docs, and other plugins. -
the DLL is, the JustDecompile isn't, I really hate installing stuff I won't really use as much as it hopes I would
-
Wulf Community Admin
The DLL you'd already on your computer most likely if you have the server or client installed, so I'm not seeing what the issue is. JustDecompile takes up barely any space, and is crucial if you plan on doing any serious development with the game. -
that's what I meant, I don't, I just want to try to do some easy plugins for my server and continue working on my regular stuff, that's why I find this process kinda redundant, even tho it's necessary...
