Jump to content

Recommended Posts

Hey @Droidz

have you recently changed something about TBC/WotLK API?
My TBC fightclasses used to work on WotLK (compiled with 2.4.3 wRobot binaries), now they crash the bot with MissingMethodException (can't get stacktrace atm, maybe later if I do a crash dump).

There are no different methods. Compiling the fightclass with 3.3.5a wRobot binaries makes it work, but then crashes on 2.4.3 with MissingMethodException. Since switching out the binaries doesn't actually lead to MissingMethodException when compiling the fightclass, I don't really understand. Will update this thread with a stacktrace as soon as I can grab one.

Link to comment
https://wrobot.eu/forums/topic/8690-changes-between-tbcwotlk-recently/
Share on other sites

System.MissingMethodException: Method not found: 'Void wManager.Wow.Helpers.SpellManager.CastSpellByNameLUA

This is the method that was recently changed it seems. However, when using 3.3.5a binaries, this method exists for sure.

Edited by Matenia

It is not same method signature, but this change have 2 years ago. (you can call this method on the two version from same .cs file but not from same .dll, you need to compile 1 dll by WRobot version). To resolve this problem create your own "CastSpellByNameLUA" method:

GitExtensions_2018-02-22_11-31-19.png

I've already created my own method to resolve this. It had worked before, so that's why I was confused. But I guess I didn't see the method signature was different, because of default arguments in C#.
I'm used to method overloading from Java where you have to create new methods. 

Thanks for the response :)

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...