Actually, I have two questions:
1) My plugin does not work, but I consider, the trouble is in the code, so it might be solved by running the plugin in debug mode (I mean, step-by-step execution of the code). Is it possible and how if it is?
2) Is the reading of Oxide source code with API page the only way of learning the programing the Oxide plugins? Is there something like MSDN?
Running a plugin in debug mode
Discussion in 'Rust Development' started by master_clown, Nov 22, 2015.
-
Wulf Community Admin
There is no "debug" mode aside from what you add to it yourself. If you want to learn how to program, there are many tutorials on GitHub for the languages we support for plugins. If you want to learn what is available in each game we support, you'd need a .NET decompiler. The Docs we provide are for what Oxide itself provides, not what the games have available to use.
-
Alright, didn't know about tutorials, thanks. Since speaking about Rust and particulary about damaging to entities, it's part of the game implementation, isn't it?
-
Calytic Community Admin Community Mod
Yes... -
Hi there Master
Regards to debugging and it not being implemented by default, I would be happy to tell you a good way to see what is happening with you mod in a form of a man made debug mod.
The easiest way to do debuging in a plugin is to have the plug in dump messages at stages to the console and/or log file.
So for example when it loads the mod, have it say "Loading Mod" once loading is done "Loading Complete.
If you do some kind of statement such as "if x>1 {Code}" then inside that you could have it write "in (codename) doing (task)"
By implementing this when you test your addon you can look back though console and/or log and see what the addon did and where it may have not done something it was meant to for example you have a bit called "player shot, moving his location", you then shoot him, he doesn't move and in the console that message didnt show up.
Hope This helps
Regards
Alpha -
Thanks, but I've already known that, so I didn't demand about that when I'd seen the responses
. Particulary, I wrote messages to the chat, but, obviously, the place actually doesn't matter.
Thank everybody for help.
