Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C++/C Programming › TF2 Injection Crash

TF2 Injection Crash

Posts 1–6 of 6 · Page 1 of 1
YY
yyyt
TF2 Injection Crash
HAI. My TF2 crashing when I inject my dll. I used this tutorial to hook. My game crashes because of -> operator. When I remove
Code:
g_pIGameConsole->Show();
command everything becomes great. PLEASE HALP YOU WILL HELP ME SO MUCH.

Note: Google didn't help me.
Note 2: I am c++ noob.
#1 · 14y ago
Hell_Demon
Hell_Demon
Are you using the exact same code as in the tut? if so, it doesn't crash on the g_pIGameConsole->IsShown() right above it? if it doesn't crash on that then they've probably modified the vtable layout or Show needs a boolean as argument now to indicate wether to show or hide it.

If it's not that then g_pIGameConsole is probably(most likely) a NULL pointer, probably caused by TF2 not using GameConsole003 anymore, which means the VTable layout probably changed as well. Open up gameui.dll in ollydbg and do a string scan for GameConsole, see what number they use and try to use that with your code.
#2 · 14y ago
YY
yyyt
Yeah I found the problem. I have changed #define GAMECONSOLE_INTERFACE_VERSION "GameConsole003" to #define GAMECONSOLE_INTERFACE_VERSION "GameConsole004".
But now I have same problem with materialsystem. crap.
OK thanks
#3 · 14y ago
Hell_Demon
Hell_Demon
Quote Originally Posted by yyyt View Post
Yeah I found the problem. I have changed #define GAMECONSOLE_INTERFACE_VERSION "GameConsole003" to #define GAMECONSOLE_INTERFACE_VERSION "GameConsole004".
But now I have same problem with materialsystem. crap.
OK thanks
Get the SDK from here: Mercurial repositories index

you'll want hl2sdk-ob-valve
#4 · 14y ago
YY
yyyt
Quote Originally Posted by Hell_Demon View Post
Get the SDK from here: Mercurial repositories index

you'll want hl2sdk-ob-valve
It has same materialsysteam version with original source sdk
MATERIAL_SYSTEM_INTERFACE_VERSION "VMaterialSystem079"
but still crashing...

virtual IMaterial * FindMaterial( char const* pMaterialName, const char *pTextureGroupName, bool complain = true, const char *pComplainPrefix = NULL ) = 0;

My code is
Code:
IMaterial* Sniperdot_blue = g_pMaterialSystem->FindMaterial("Effects//sniperdot_blue", "ClientEffect textures");
Sniperdot_blue->SetMaterialVarFlag( MATERIAL_VAR_NO_DRAW, true );
#5 · edited 14y ago · 14y ago
Hell_Demon
Hell_Demon
It's probably crashing because Sniperdot_blue is a null pointer, you want to find "Effects\\sniperdot_blue" instead of "Effects//sniperdot_blue" I think :3
#6 · 14y ago
Posts 1–6 of 6 · Page 1 of 1

Post a Reply

Similar Threads

  • iw4mp.exe Hack injecting crash.By jburton in Call of Duty Modern Warfare 2 Help
    8Last post 16y ago
  • Injecter crashing game?By wootwoot1234 in C++/C Programming
    2Last post 16y ago
  • DLL Injection Crashes GameBy stfnz in C++/C Programming
    3Last post 14y ago
  • hax inject crashBy cyclone288r in Combat Arms Help
    3Last post 15y ago
  • Inject CrashBy Accelangel in Combat Arms Help
    6Last post 15y ago

Tags for this Thread

None