• 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 7 of 7
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      angelo007's Avatar
      Join Date
      Aug 2012
      Posts
      15
      Thanks (-->)
      0
      Thanks (<--)
      0

      Cheatengine to C++

      John Kittz
      i want to convert my AutoAssembler Script to C++ to use in my trainer how can i do that?

    2. #2
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      angelo007's Avatar
      Join Date
      Aug 2012
      Posts
      15
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: Cheatengine to C++

      for example this : [ENABLE]
      //code from here to '[DISABLE]' will be used to enable the cheat
      alloc(newmem,2048) //2kb should be enough
      label(returnhere)
      label(originalcode)
      label(exit)

      newmem: //this is allocated memory, you have read,write,execute access
      //place your code here
      mov [esi+24],(float)99999
      originalcode:
      NOP

      exit:
      jmp returnhere

      "x2.exe"+29387C:
      jmp newmem
      nop
      returnhere:




      [DISABLE]
      //code from here till the end of the code will be used to disable the cheat
      dealloc(newmem)
      "x2.exe"+29387C:
      fstp dword ptr [esi+24]
      lea edx,[ecx+ecx]
      //Alt: db D9 5E 24 8D 14 09

    3. #3
      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

      Re: Cheatengine to C++

      convert those commands to bytes and use writeprocessmemory I suppose
      Cheatengine to C++

    4. #4
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      angelo007's Avatar
      Join Date
      Aug 2012
      Posts
      15
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: Cheatengine to C++

      lol and how do i do that xd

    5. #5
      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

      Re: Cheatengine to C++

      When you browse the memory region with CE for example, on the left hand side right next to the 'Address'es is a column 'Bytes'. Now, sorry but I don't have more time, I'll be back later, try to figure it out :P It's nothing complicated. Look at the address and the bytes for it before patching, write bytes down, patch the address, look at the bytes again, notice - they changed, now you make a trainer which uses writeprocessmemory to write those bytes onto those addresses Oh hell I sound ... phhh I hope you get it
      Cheatengine to C++

    6. #6
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      BlackPitchPL's Avatar
      Join Date
      May 2012
      Location
      POLAND
      Posts
      171
      Thanks (-->)
      1
      Thanks (<--)
      14

      Re: Cheatengine to C++

      and you do it by this :P :
      [spoiler]
      Code:
      #pragma once
      
      class cPatch
      {
      private:
      	DWORD  ADR;
      	BYTE	OFF_BYTES[255];
      	BYTE  ON_BYTES[255];
      	int		SIZE;
      	enum	PATCHSTATUS
      	{
      		NORMAL,
      		PATCHED,
      	};
      	int		STATUS;
      
      	void*	memcpy_s(void* pvAddress, const void* pvBuffer, size_t stLen);
      public:
      	cPatch(DWORD pAdr,BYTE* pByte,int pSize);
      	void Patch();
      	void Restore();
      };
      [/spoiler]
      and cpp to use it
      [spoiler]
      Code:
      #include "cPatch.h"
      
      
       
      void* cPatch::memcpy_s(void *pvAddress, const void *pvBuffer, size_t stLen)
      {
      	MEMORY_BASIC_INFORMATION mbi;
      	VirtualQuery( ( void* )pvAddress, &amp;mbi, sizeof( mbi ) );
      	VirtualProtect( mbi.BaseAddress, mbi.RegionSize, PAGE_EXECUTE_READWRITE, &amp;mbi.Protect );
      	void* pvRetn = memcpy( ( void* )pvAddress, ( void* )pvBuffer, stLen );
      	VirtualProtect( mbi.BaseAddress, mbi.RegionSize, mbi.Protect, &amp;mbi.Protect );
      	FlushInstructionCache( GetCurrentProcess( ), ( void* )pvAddress, stLen );
      	return pvRetn;
      }
                               
      cPatch::cPatch(DWORD pAdr,BYTE* pByte,int pSize)
      {
      	STATUS	=	NORMAL;
      	SIZE	=	pSize;
      	ADR		=	pAdr;
      	
      	for(int i = 0; i &lt; pSize; i++)
      	{
      		OFF_BYTES[i]	=	0x00;
      		ON_BYTES[i]		=	pByte[i];
      	}
      }
       
      void cPatch::Patch()
      {
      	if( STATUS==NORMAL )
      	{
      		BYTE *pOFF_BYTES = (BYTE*)ADR;
      		for( int i = 0; i &lt; SIZE; i++ )
      		{
      			OFF_BYTES[i] = pOFF_BYTES[i];
      		}
      		memcpy_s((void*)ADR,(const void*)ON_BYTES,SIZE);
      		STATUS=PATCHED;
      	}
      }
      void cPatch::Restore()
      {
      	if(STATUS==PATCHED)
      	{
      		memcpy_s((void*)ADR,(const void*)OFF_BYTES,SIZE);
      		STATUS=NORMAL;
      	}
      }
      [/spoiler]
      That's all you only need to define ur addy to change and define what to change like cPatch uammo (ADR_UAMMO,(BYTE* )" \x90\x90\x90\x90\x90\x90",6 ) ;

    7. #7
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      angelo007's Avatar
      Join Date
      Aug 2012
      Posts
      15
      Thanks (-->)
      0
      Thanks (<--)
      0

      Re: Cheatengine to C++

      Cheats'n'Trainers
      I think i understand

    Similar Game Hacker Threads

    1. [Help] CheatEngine makes me tilt so hard...
      By NightHunter in forum GH Tutorials Help
      Replies: 2
      Last Post: 05-11-2016, 10:01 AM
    2. [Help] Teisybe: Finding player position address with CheatEngine
      By [GH]Rake in forum Hacking Help
      Replies: 7
      Last Post: 04-12-2016, 05:27 PM
    3. [Discuss] warface with cheatengine
      By Arickyy in forum Other Game Hacks
      Replies: 10
      Last Post: 12-03-2013, 02:44 AM
    4. [Help] CheatEngine address/offset problem
      By Liduen in forum Hacking Help
      Replies: 7
      Last Post: 11-25-2013, 02:50 PM
    5. CheatEngine Next Scan 0 found problem
      By Liduen in forum Hacking Help
      Replies: 15
      Last Post: 07-28-2013, 09:29 AM