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 


Auto Assembly Help Needed

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

Joined: 25 Feb 2008
Posts: 7

PostPosted: Tue Feb 26, 2008 7:06 pm    Post subject: Auto Assembly Help Needed Reply with quote

I decided to try out CE after a while of not working with it. So, I thought, making a trainer for the new CE Tutorial would be a great way to get back into the swing of things. My problem occurs on Step 9. You are supposed to inject C code to change the value, but I'm trying to use Auto Assembly to do it. Is there any GetTime function or some way I could use auto assembly to complete it without creating a dll? The C code that you're supposed to use is:

#include <time.h>

struct tm *timep;
time_t c;
c=time(0);

timep=localtime(&c);

if (timep->tm_sec>=30)
*(int *)addresstochange=1000;
else
*(int *)addresstochange=2000;
Back to top
View user's profile Send private message AIM Address
Jani
Grandmaster Cheater
Reputation: 2

Joined: 29 Dec 2006
Posts: 804

PostPosted: Wed Feb 27, 2008 10:25 am    Post subject: Re: Auto Assembly Help Needed Reply with quote

BurnoutPriest wrote:
struct tm *timep;
time_t c;
alloc()
BurnoutPriest wrote:
c=time(0);
timep=localtime(&c);
BurnoutPriest wrote:
Is there any GetTime function or some way I could use auto assembly to complete it without creating a dll?
Analyze the PE and hardcode the function address, or read the import table. (Use the platform specific time thingies ->MSDN for time functions.)
BurnoutPriest wrote:
if (timep->tm_sec>=30)
*(int *)addresstochange=1000;
else
*(int *)addresstochange=2000;
Basic assembly.
Back to top
View user's profile Send private message
BurnoutPriest
How do I cheat?
Reputation: 0

Joined: 25 Feb 2008
Posts: 7

PostPosted: Wed Feb 27, 2008 10:38 pm    Post subject: Reply with quote

Thanks for the help. I just decided changing a bit more of code, while a little outside the rules I wanted to follow, was the most simplistic and logical method to use. This did actually teach me a lot even though it didn't work out XD
Back to top
View user's profile Send private message AIM Address
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Feb 28, 2008 5:57 am    Post subject: Reply with quote

I just recently did a video tutorial for step 9 since I didn't see anyone release anything on how to do it. You can view it here:

http://www.extalia.com/files/vids/wic/Step9.swf

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
BurnoutPriest
How do I cheat?
Reputation: 0

Joined: 25 Feb 2008
Posts: 7

PostPosted: Thu Feb 28, 2008 4:02 pm    Post subject: Reply with quote

Thanks but I can complete Step 9 normally without any problems. I was just trying to make a trainer for it which meant I had to use auto assembly.
Back to top
View user's profile Send private message AIM Address
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