Marsbar 228 Posted May 5, 2017 Share Posted May 5, 2017 Hi, I have a question around plugin creation and debugging that plugin to test whether it's working as intended. As there is currently no bot API that I've found I don't know what to expect from the Wow.Helpers etc. and would like to run the DLL in debug with wRobot. Is there any way to do this? Are people should outputting the helper result to log as string to test? Cheers, Marsbar Link to comment https://wrobot.eu/forums/topic/5822-creating-a-plugin-with-debugging/ Share on other sites More sharing options...
reapler 154 Posted May 6, 2017 Share Posted May 6, 2017 Hello, you can decompile wrobot's library to get the api documentation(MemoryRobot-, robotManager- & wManager in Wrobot\Bin) common decompiler are Jetbrains dotPeek, ILSpy, redgate's .net reflector & Justcompile. I also recommend to add it to reference and good extensions for VS make your life easier: ReSharper or Coderush are good extensions. And for testing things i'll prefer to link the build to Wrobots plugins folder so you can just compile and run directly with Wrobot & output the log with "robotManager.Helpful.Logging.Write("text");". Matenia, morris79 and Marsbar 3 Link to comment https://wrobot.eu/forums/topic/5822-creating-a-plugin-with-debugging/#findComment-26509 Share on other sites More sharing options...
Marsbar 228 Posted May 6, 2017 Author Share Posted May 6, 2017 Thanks reapler, i'll give it a go. Link to comment https://wrobot.eu/forums/topic/5822-creating-a-plugin-with-debugging/#findComment-26510 Share on other sites More sharing options...
Droidz 2738 Posted May 8, 2017 Share Posted May 8, 2017 Marsbar and Matenia 2 Link to comment https://wrobot.eu/forums/topic/5822-creating-a-plugin-with-debugging/#findComment-26583 Share on other sites More sharing options...
Marsbar 228 Posted May 9, 2017 Author Share Posted May 9, 2017 17 hours ago, Droidz said: Hello, In visual studio create new "Class Library" project (.NET Framework 4.0). Add references "robotManager.dll", "wManager.dll", "MemoryRobot.dll" (you can found files in folder "wrobot\bin"). In the Project panel, right-click the name of your solution and then click "Add Existing Project". Select type of file *.exe and select "WRobot.exe" (if you play on private server) or file with name like "UqtfGgP.exe" (if you play on official server). In the Project panel, right-click on "WRobot.exe" (or file with name like "UqtfGgP.exe") and click on "Set as StartUp Project." Now change output directory (by sample "wrobot\plugins" if you want create plugin). Now press F5 to start debug. You can also attach debugger to running process : https://msdn.microsoft.com/en-us/library/3s68z0b3.aspx Hi Droidz, I attempted this however I get some exceptions being thrown both with the main visual studio way as well as the attach to a running process. System.ExecutionEngineException was unhandled Message: An unhandled exception of type 'System.ExecutionEngineException' occurred in authManager.dll Any assistance would be great! Link to comment https://wrobot.eu/forums/topic/5822-creating-a-plugin-with-debugging/#findComment-26602 Share on other sites More sharing options...
Droidz 2738 Posted May 9, 2017 Share Posted May 9, 2017 3 hours ago, Marsbar said: Hi Droidz, I attempted this however I get some exceptions being thrown both with the main visual studio way as well as the attach to a running process. System.ExecutionEngineException was unhandled Message: An unhandled exception of type 'System.ExecutionEngineException' occurred in authManager.dll Any assistance would be great! Wait next update Marsbar 1 Link to comment https://wrobot.eu/forums/topic/5822-creating-a-plugin-with-debugging/#findComment-26610 Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now