DebateFort - Where Warriors Come To Debate
RAGECRY - Funny, Amusing, Interesting, Trending & Viral Videos and Images
GameOrc - Free Flash Games Online
Results 1 to 6 of 6
  1. #1
    Leecher yyyt's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0

    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.

  2. #2
    MPGH Addict
    Former Staff
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,596
    Reputation
    236
    Thanks
    3,815
    My Mood
    Cheeky
    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.
    Ah we-a blaze the fyah, make it bun dem!

  3. #3
    Threadstarter
    Leecher
    yyyt's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    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

  4. #4
    MPGH Addict
    Former Staff
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,596
    Reputation
    236
    Thanks
    3,815
    My Mood
    Cheeky
    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
    Ah we-a blaze the fyah, make it bun dem!

  5. #5
    Threadstarter
    Leecher
    yyyt's Avatar
    Join Date
    Apr 2012
    Gender
    male
    Posts
    8
    Reputation
    10
    Thanks
    0
    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 );
    Last edited by yyyt; 05-06-2012 at 09:25 AM.

  6. #6
    MPGH Addict
    Former Staff
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,596
    Reputation
    236
    Thanks
    3,815
    My Mood
    Cheeky
    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
    Ah we-a blaze the fyah, make it bun dem!

Similar Threads

  1. [Solved] DLL Injection Crashes Game
    By stfnz in forum C++/C Programming
    Replies: 3
    Last Post: 04-05-2012, 02:03 PM
  2. Inject Crash
    By Accelangel in forum Combat Arms Help
    Replies: 6
    Last Post: 01-12-2011, 05:22 PM
  3. hax inject crash
    By cyclone288r in forum Combat Arms Help
    Replies: 3
    Last Post: 11-21-2010, 05:38 PM
  4. Injecter crashing game?
    By wootwoot1234 in forum C++/C Programming
    Replies: 2
    Last Post: 08-03-2010, 07:52 AM
  5. iw4mp.exe Hack injecting crash.
    By jburton in forum Call of Duty Modern Warfare 2 Help
    Replies: 8
    Last Post: 07-29-2010, 03:46 AM