Engine text
Just found some info about engine text on another forum and decided to use it in my hack, but for some reason game crashes after start. It crashes when i'm calling DrawEngineString function which is obviously, i've tried to call it when i'm pressing a button when i am in a game room, but it doesn't affect on a game. Addresses for NA, i'm almost sure that they are correct, thought about they added another bool or something, i've tried to play with some parameters but no luck. Ofc i looked attentively at this function in Olly, don't saw much difference. Maybe i'm blind, idk:/ Any help (regarding of my question instead, not by saying learn asm etc) would be appreciated.
Code:
Code:
Code:
unsigned long ulCShell_Module = 0;
typedef void ( __thiscall *lpDrawEngineString ) ( unsigned long ulFontBase, char* szString, int xCoord, int yCoord, unsigned long clColor, bool bShadow, bool bUnk);
lpDrawEngineString DrawEngineString;
unsigned long __stdcall runMem(void* lParam)
{
while( !ulCShell_Module )
{
ulCShell_Module = (unsigned long)GetModuleHandle("CShell.dll");
Sleep(10);
}
DrawEngineString = (lpDrawEngineString ) ( ulCShell_Module + 0x002DB8A0 );
unsigned long ulFontBase = *(unsigned long*) ( ulCShell_Module + 0xDBD1C8 );
DrawEngineString(ulFontBase, "Hello World", 30, 80, D3DCOLOR_XRGB(255, 0, 0), true, false);
return 0;
}