View previous topic :: View next topic |
Author |
Message |
Razor1234 How do I cheat?
Reputation: 0
Joined: 20 Oct 2009 Posts: 3
|
Posted: Tue Jul 06, 2010 8:37 am Post subject: Help me out with Wiccaan's Trainer Engine |
|
|
Okay, I want to find the base address of a game (commandos.exe) & I am using Wiccaan's trainer engine. So, what I do is -
Code: |
BYTE bthealth1[]= {0xc7, 0x00, 0xff, 0xff, 0x00, 0x00, 0xc2, 0x0c, 0x00};
DWORD Address1 = NULL;
Mem.GetModBase( (TCHAR*)"commandos.exe", (BYTE**)Address1);
Address1 = Address1+0x325EF0;
Mem.WriteMem( (BYTE*)Address1, &bthealth1, sizeof(bthealth1) );
|
But on running the trainer it just hangs up. Is the above code correct?
Plz help me.........
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Tue Jul 06, 2010 10:59 am Post subject: |
|
|
You can't just cast a string composed of bytes to an array of TCHAR. Import tchar.h and then use the _T() macro
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Jul 06, 2010 8:33 pm Post subject: |
|
|
Lol looking at the code, I'd suggest not using that engine. It's extremely old and was thrown together for an old friend with little effort. I really suggest not using it.
_________________
- Retired. |
|
Back to top |
|
 |
Razor1234 How do I cheat?
Reputation: 0
Joined: 20 Oct 2009 Posts: 3
|
Posted: Tue Jul 06, 2010 10:02 pm Post subject: |
|
|
Wiccaan wrote: | Lol looking at the code, I'd suggest not using that engine. It's extremely old and was thrown together for an old friend with little effort. I really suggest not using it. |
plz dont say that..i think its still the best trainer engine out there. I know its old but..old is gold. Ok just tell me how to use that GetModBase function.
|
|
Back to top |
|
 |
bhpianist Cheater
Reputation: 1
Joined: 17 Apr 2010 Posts: 38
|
Posted: Wed Jul 07, 2010 3:19 pm Post subject: |
|
|
Code: | DWORD Address1 = NULL;
Mem.GetModBase( (TCHAR*)"commandos.exe", (BYTE**)Address1); |
I'm guessing the GetModBase stores the address by placing it in a BYTE* buffer. You're accessing a NULL pointer. Try this:
Code: | DWORD Address1 = NULL;
Mem.GetModBase( (TCHAR*)"commandos.exe", &((BYTE*)Address1)); |
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Jul 07, 2010 4:33 pm Post subject: |
|
|
You also need to learn about types.
|
|
Back to top |
|
 |
bhpianist Cheater
Reputation: 1
Joined: 17 Apr 2010 Posts: 38
|
Posted: Wed Jul 07, 2010 5:35 pm Post subject: |
|
|
Slugsnack wrote: | You also need to learn about types. |
Me? Explain, please.
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Wed Jul 07, 2010 5:36 pm Post subject: |
|
|
Read my first post in this thread.
|
|
Back to top |
|
 |
bhpianist Cheater
Reputation: 1
Joined: 17 Apr 2010 Posts: 38
|
Posted: Wed Jul 07, 2010 10:05 pm Post subject: |
|
|
Slugsnack wrote: | Read my first post in this thread. |
Oh, I hadn't noticed that error. Good point.
|
|
Back to top |
|
 |
Slugsnack Grandmaster Cheater Supreme
Reputation: 71
Joined: 24 Jan 2007 Posts: 1857
|
Posted: Thu Jul 08, 2010 2:02 am Post subject: |
|
|
Also the cast that you did would be more conventional as :
Code: | ( BYTE** )&Address1 |
|
|
Back to top |
|
 |
Razor1234 How do I cheat?
Reputation: 0
Joined: 20 Oct 2009 Posts: 3
|
Posted: Thu Jul 08, 2010 2:31 am Post subject: |
|
|
Thanks a lot Slugsnack ...your code is working perfectly !!!!!!!!! Thanks a million times !!!!
|
|
Back to top |
|
 |
|