Jump to content

isssue of using one plugin for different wrobot versions


Recommended Posts

Hello, I'm facing a problem where I can't use the same compiled plugin for different versions of wrobot, because the binaries from the references are not suitable. The bot just crashes, and I can't even figure out which method is causing this. I just wouldn’t want to make several projects that would have completely identical plugin code, except for binaries. The fact is that some compiled plugins with references to WOTLK binaries work without problems for TBC.
Is there a way to determine which of the methods is not suitable for a particular version?
I would like to get at least an exception thrown into the log, instead of crashing the program.

Link to comment
Share on other sites

Hello, I'm not sure if this will work, but try adding a Try/Catch with a log in case of an error in the "Initialize" function (from IPlugin). Usually, it's the enums, so you can try to retrieve them from a String instead of a raw link: https://stackoverflow.com/questions/16100/convert-a-string-to-an-enum-in-c-sharp

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...