• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 8 of 8
    1. #1
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      Praxeus's Avatar
      Join Date
      Sep 2012
      Posts
      50
      Thanks (-->)
      15
      Thanks (<--)
      2

      Drawing Text using engine function

      John Kittz
      Code:
      #include <Windows.h>
      
      #include <Windows.h>
      #include <iostream>
      
      
      
      
      
      class SSystemGlobalEnvironment // SYSTEMGLOBAL ADDRESS address 0x3B7ED1DC
      {
      public:
      IRenderer *pRenderer; //this is inside the global and globals render function address is 0x370BA200
      
      };
      
      
      
      				
      class IRenderer 
      {
      public:
          virtual void function0();
          virtual void function1();
          virtual void function2();
          virtual void function3();
          virtual void function4();
          virtual void function5();
          virtual void function6();
          virtual void function7();
          virtual void function8();
          virtual void function9();
          virtual void function10();
          virtual void function11();
          virtual void function12();
          virtual void function13();
          virtual void function14();
          virtual void function15();
          virtual void function16();
          virtual void function17();
          virtual void function18();
          virtual void function19();
          virtual void function20();
          virtual void function21();
          virtual void Draw2dLabel(float x, float y, float  FontScale, float *color, bool unknown, char* string); //Draw2dLabel Address 0x370BA200
      
      };
      
      DWORD __stdcall DllMain(LPVOID)
      {
      	SSystemGlobalEnvironment  *gEnv;
      	gEnv= (SSystemGlobalEnvironment *)(*(DWORD*)(0x3B7ED1DC));
      
      
      	gEnv->pRenderer->Draw2dLabel(20 , 20 , 2 ,0, 0 , "Testing 1 2 3 ...");
      	//wana call it here to draw my own cutom text the draw2d label
      	return 0;
      }
      
      
      
      
      
      int __stdcall DllMain(HMODULE hModule,DWORD dwReason,LPVOID lpvReserved)
      {
      	switch(dwReason)
      	{
      		case DLL_PROCESS_ATTACH:
      			CreateThread(NULL,NULL,&DllMain,NULL,NULL,NULL);
      		break;
      	}
      	return 1;
      }
      so basically i want to draw my own text using that function used in the game i found , anyway its rough but yeah thanks if you could help!!!the game is crysis 3
      Last edited by Praxeus; 05-01-2013 at 05:37 PM.
      Praxeus

    2. #2
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      491
      In your thread..
      Code:
      SSystemGlobalEnvironment * globalenv;
      globalenv= (SSystemGlobalEnvironment *)(*(DWORD*)(0x3B7ED1DC));
      globalenv->pRenderer->Draw2dLabel(.....
      Oughta work
      Drawing Text using engine function

    3. #3
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      Praxeus's Avatar
      Join Date
      Sep 2012
      Posts
      50
      Thanks (-->)
      15
      Thanks (<--)
      2
      Quote Originally Posted by c5 View Post
      In your thread..
      Code:
      SSystemGlobalEnvironment * globalenv;
      globalenv= (SSystemGlobalEnvironment *)(*(DWORD*)(0x3B7ED1DC));
      globalenv->pRenderer->Draw2dLabel(.....
      Oughta work
      Nope (( thanks for trying!
      Praxeus

    4. #4
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      491
      Your globalenvironment class probably lacks padding
      Drawing Text using engine function

    5. #5
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      Praxeus's Avatar
      Join Date
      Sep 2012
      Posts
      50
      Thanks (-->)
      15
      Thanks (<--)
      2
      Quote Originally Posted by c5 View Post
      Your globalenvironment class probably lacks padding
      try compile it and see
      Praxeus

    6. #6
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      edgar's Avatar
      Join Date
      Dec 2012
      Posts
      29
      Thanks (-->)
      2
      Thanks (<--)
      11
      You most likely need to call that function inside the render loop. Calling it from some random thread won't work. Hook endscene and call the function from there.

    7. #7
      Jr.Coder
      Learning to hack games!
       
      Feeling Normal
       
      Praxeus's Avatar
      Join Date
      Sep 2012
      Posts
      50
      Thanks (-->)
      15
      Thanks (<--)
      2
      i fixed it by doing class IRenderer before global such a nooby mistake!and i chucked a while loop so it draws on every frame gonna test

      so it keeps crashing my game
      Last edited by Praxeus; 05-01-2013 at 04:27 PM.
      Praxeus

    8. #8
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      491
      Cheats'n'Trainers
      Do what edgar said and you should be alright
      Last edited by c5; 05-02-2013 at 07:09 AM. Reason: typo
      Drawing Text using engine function

    Similar Game Hacker Threads

    1. Replies: 5
      Last Post: 06-22-2015, 06:27 AM
    2. [Help] GDI Drawing Esp Box for CS 1.6
      By CHAMPION in forum C/C++
      Replies: 10
      Last Post: 01-13-2014, 11:06 PM
    3. [Help] D3D drawing...
      By Szaka in forum Direct-X, OpenGL
      Replies: 6
      Last Post: 11-19-2013, 07:27 AM
    4. Calling a function by address (function in another module)
      By c5 in forum Tutorials and Snippets
      Replies: 9
      Last Post: 11-05-2013, 09:27 AM
    5. Replies: 3
      Last Post: 10-22-2013, 03:05 PM

    Tags for this Thread