-
v1.12.1 EnumerateVisibleObjects Throws Exception
Enumerate Visible Objects Throws Exception . Issue #1 . confessore/KrycessBot . GitHub
I'm trying to learn about the object manager.
Here is a link to the delegate function that I have created for the EnumVisibleObjects function. it is completely hooked up with the callback and filter and whatnot in the next class, MemoryService.
KrycessBot/Functions.cs at master . confessore/KrycessBot . GitHub
The function is called on line 124.
KrycessBot/MemoryService.cs at master . confessore/KrycessBot . GitHub
I have also tried to import this function as a C++ dll and it does not crash but it still does nothing.
The offset is correct.
KrycessBot/Offsets.cs at master . confessore/KrycessBot . GitHub
I was trying to stay away from hooking the main thread since I am under the impression that I can read or write from any thread.
Can someone please help me learn how to do this?
-
Established Member
EnumerateVisibleObjects uses fastcall calling convention which isn't supported by C#
Refer to https://drewkestell.us/Article/6/Chapter/7 for an extended explanation and solution
-
-
Post Thanks / Like - 1 Thanks
krycess (1 members gave Thanks to namreeb for this useful post)
-
I just read the comment for the annotation and it reads "This calling convention is not supported."
so yeah, there's that.
on to bigger fish to fry.
when I make the call using fastcall in a c++ library, the execution stops at Function.EnumerateVisibleObjects.
now the function gives rise to stack overflow exception after enumerating (iterating???) 99 times
woof
GitHub - confessore/EluneBot: a work-in-progress rewrite of ZzukBot: a full featured robot that plays World of Warcraft v1.12.1
Last edited by krycess; 12-30-2019 at 11:15 AM.