Hello, this is my player loop and I'm having problems with the crashing, does anyone know why?
I have included a signature so people could use this as well, if someone could help me fix this, I would give gratitude.
Player loop address for 1.2.0c
swtor.exe+10928F0
Player loop signature for 1.2.0c
Code:
dwplayer = Utils::FindPattern(dwEntryPoint, dwCodeSize, (PBYTE)"\x8B\x0D\x00\x00\x00\x00\x56\xE8\x00\x00\x00\x00\xC6\x45\x00\x00\xFF\x0D\x00\x00\x00\x00\xC7\x45\x00\x00\x00\x00\x00", "xx????xx????xx??xx????xx????" );
Code:
c_PlayerManager* pPlayerMgr = (c_PlayerManager*)*(DWORD*)( dwSWTOR + dwplayer );
if( pPlayerMgr )
{
c_Player* pFirst = pPlayerMgr->pFirstPlayer;
c_Player* pLast = pPlayerMgr->pLastPlayer;
if( pFirst && pLast )
{
c_Player* p = pFirst->nextplayer;
while( p && p != pFirst && pFirst <= pLast )
{
char szDebug2[256];
printf( szDebug2, "p: 0x%X", (DWORD)p );
p = p->nextplayer;
}
}
}