Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Help me out with Wiccaan's Trainer Engine

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Razor1234
How do I cheat?
Reputation: 0

Joined: 20 Oct 2009
Posts: 3

PostPosted: Tue Jul 06, 2010 8:37 am    Post subject: Help me out with Wiccaan's Trainer Engine Reply with quote

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
View user's profile Send private message
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Tue Jul 06, 2010 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Jul 06, 2010 8:33 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Razor1234
How do I cheat?
Reputation: 0

Joined: 20 Oct 2009
Posts: 3

PostPosted: Tue Jul 06, 2010 10:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
bhpianist
Cheater
Reputation: 1

Joined: 17 Apr 2010
Posts: 38

PostPosted: Wed Jul 07, 2010 3:19 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Jul 07, 2010 4:33 pm    Post subject: Reply with quote

You also need to learn about types.
Back to top
View user's profile Send private message
bhpianist
Cheater
Reputation: 1

Joined: 17 Apr 2010
Posts: 38

PostPosted: Wed Jul 07, 2010 5:35 pm    Post subject: Reply with quote

Slugsnack wrote:
You also need to learn about types.

Me? Explain, please.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Wed Jul 07, 2010 5:36 pm    Post subject: Reply with quote

Read my first post in this thread.
Back to top
View user's profile Send private message
bhpianist
Cheater
Reputation: 1

Joined: 17 Apr 2010
Posts: 38

PostPosted: Wed Jul 07, 2010 10:05 pm    Post subject: Reply with quote

Slugsnack wrote:
Read my first post in this thread.

Oh, I hadn't noticed that error. Good point.
Back to top
View user's profile Send private message MSN Messenger
Slugsnack
Grandmaster Cheater Supreme
Reputation: 71

Joined: 24 Jan 2007
Posts: 1857

PostPosted: Thu Jul 08, 2010 2:02 am    Post subject: Reply with quote

Also the cast that you did would be more conventional as :

Code:
( BYTE** )&Address1
Back to top
View user's profile Send private message
Razor1234
How do I cheat?
Reputation: 0

Joined: 20 Oct 2009
Posts: 3

PostPosted: Thu Jul 08, 2010 2:31 am    Post subject: Reply with quote

Thanks a lot Slugsnack ...your code is working perfectly !!!!!!!!! Thanks a million times !!!! Very Happy Very Happy
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites