First question would be.
Are you in or out of process?
do you inject a dll in D3 or you read from an outside process?
First question would be.
Are you in or out of process?
do you inject a dll in D3 or you read from an outside process?
Im injecting library atm, but i would be happy for any kind of help, since I could apply out of process iteration to my code aswell (just read values directly instead of using ReadProcessMemory i guess).
My goal is hooking endscene, iterate through RActors and check whether specified unit is around (for my purpose it would be goblin). Im stuck on the iteration though :<
Last edited by biskow; 06-08-2012 at 01:34 PM.
If you injected you can just call
0x9E19D0
[UnmanagedFunctionPointer(CallingConvention.ThisCall)]
public delegate int IterateActorsDelegate(uint pRActors,ref int index,ref uint actorPtr);
public static IterateActorsDelegate IterateActors = (IterateActorsDelegate)Marshal.GetDelegateForFunctionPointer((IntPtr)OffsetsMana ger.IterateActors.Pointer, typeof(IterateActorsDelegate));
uint pRActors = [[ObjMng]+0x8B0];
int index = -1;
uint pActor = 0;
while(IterateActors(pRActors,ref index,ref pActor) > 0)
{
do what you want with pActor
}
Got it to work! :>
Thank you very much!