Open Tentware opened 1 year ago
i changed 0xF8 to 0xF4 and it was no longer crashing
hey, that didnt work for me also how did you find this out for you? when i place pointers somewhere while debugging visual studio doesnt connect with csgo if you know what i mean
hey, that didnt work for me also how did you find this out for you? when i place pointers somewhere while debugging visual studio doesnt connect with csgo if you know what i mean
1) I attached Visual Studio Debugger to CS:GO (In Visual Studio, select Debug > Attach to Process (or press Ctrl+Alt+P) to open the Attach to Process dialog box.
- MSDN)
2) Injected compiled dll
3) Got a memory exception (or whatever it was called), visual studio automatically pointed problematic line to me.
4) The line I was pointed to was:
https://github.com/spirthack/CSGOSimple/blob/c37d4bc36efe99c621eb288fd34299c1692ee1dd/CSGOSimple/hooks.cpp#L141
5) Forgot what exception message was saying, but something related to memory access error.
6) Checked where GetVerifiedCmd() was declared, saw an offset (it was 0xF4), checked whether it was wrong
7) Turns out it was wrong (this + 0xF4 points to m_pCommands and not m_pVerifiedCommands);
8) Corrected offset
9) Bingo!
Thank you so much!! My error was that I injected before attaching debugger to csgo... (rookie mistake) I have found out that GetCSWeaponData was the issue. For some reason my function was outdated to a degree that I couldn't even find the old virtual function number. Old Function:
CCSWeaponInfo C_BaseCombatWeapon::GetCSWeaponData() { return CallVFunction<CCSWeaponInfo (_thiscall)(void)>(this, 460_)(this); }
Updated one: CCSWeaponInfo C_BaseCombatWeapon::GetCSWeaponData() { return CallVFunction<CCSWeaponInfo (_thiscall)(void)>(this, 448_)(this); }
Thanks to you I can now properly debug csgo cheats tyvm ^^
so yeah the cheat is outdated and crashes when joining match what needs to be updated to it