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 


[Confusion] Request Assistance or Advice

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

Joined: 13 Jan 2008
Posts: 7

PostPosted: Sun Jan 13, 2008 6:52 pm    Post subject: [Confusion] Request Assistance or Advice Reply with quote

Ok, I was wondering about CE and Code inject + Pointers and such.
I understand how to do them but i dont understand when and where.
Besides the CE Tutorial and the Minesweeper Tut for Code Inject.
Where the heck else would you use it or rather "could" use it.
is there even in difference in injecting a code to stop the time vs. freezing.

Also, Pointers, again besides the CE Tutorial how do u no they r pointers
In the Tutorial you are told that it is a 4-pointer. so you know to look
four addresses above the current address to find the base pointer.
but when i try these on flash games or on solitaire or something.
Nothing works.

Could Someone please help me figure out where to use Inject
and The main point. i have read thru the tut and posts but
still not 100% sure.

And I cant Seem To find how to Convert Hex to Real.
like 190 = 400??? that makes sence but how to you convert it.

thanx
Back to top
View user's profile Send private message Send e-mail AIM Address
Casteele
How do I cheat?
Reputation: 0

Joined: 22 Jul 2006
Posts: 9

PostPosted: Fri Jan 18, 2008 7:30 am    Post subject: Re: [Confusion] Request Assistance or Advice Reply with quote

ZeroTech wrote:
Ok, I was wondering about CE and Code inject + Pointers and such.
I understand how to do them but i dont understand when and where.
Besides the CE Tutorial and the Minesweeper Tut for Code Inject.
Where the heck else would you use it or rather "could" use it.
is there even in difference in injecting a code to stop the time vs. freezing.

Injecting code usually modifies how the game works. For example, to stop the timer in a game, you could inject code that simply ignores the timer while letting the game think that the timer is still running. Often, a game will have a function that checks the timer and reports either the current timer value, or if the you've run out of time. So the injected code would either simply always report that "only 1 second has gone by" or "timer still has 60 seconds left" regardless of the real timer value.

In contrast, freezing simply locates the location in memory that stores the timer value, and every time CE does a "freeze" cheat, if the value stored in this location has changed, CE re-writes the frozen value in that location. For example, let's say you have a game that counts down 60 seconds, and you set CE to check every 5 seconds. In that case, you'll see the game timer count down from 60 to 55 (sometimes more or less, depending on how the different game and CE tasks execute in Windows), before CE writes a 60 into the timer location. That effectively resets the timer to 60 seconds, and is known as freezing.

Quote:
Also, Pointers, again besides the CE Tutorial how do u no they r pointers
In the Tutorial you are told that it is a 4-pointer. so you know to look
four addresses above the current address to find the base pointer.
but when i try these on flash games or on solitaire or something.
Nothing works.

In old DOS and 16-bit Windows, you sometimes had 2-byte pointers (near pointers) and 4-byte pointers (far and huge pointers), but if you come across such a situation.. Well, I suggest you read a good book on 16-bit assembly language programming to understand the differences of how and why different sizes are used.

In 32-bit Windows (9x, NT, 2K, XP, etc), pointers are almost always 4-bytes (32-bits.. They don't call it 32-bit Windows for nothing, you know..), except in very special cases. This is because 32-bit CPUs, and therefore Windows, eliminate near, far and huge pointers, and use a simplified "flat" memory model; Almost all pointers in 32-bit modes are simply full length 32-bit pointers. So, you don't have to worry about size; They're always 32-bits. (Again, if you do come across the rare exception that uses different sizes, I would suggest you learn assembly language.)

As far as knowing they're pointers.. They always are! Every item of data in the game is referenced by using a pointer of some kind (and there are many different kinds) that tells the program where to find the data in memory. Fortunately, for most data values, you don't need to worry about pointers. You just find the address, and look at the game data at that address.

Sometimes, however, games do not always store the game data at the same location. It is those situations that pointers become important. A pointer is the same thing as an address; Only instead of the data at that address being game data, it's actually the address to another memory location that has the actual data.

You'll know when you need to use a pointer because the location/address of the game data keeps changing; Either as the game runs (rare), or the address is different every time you run the game (less rare, but still not as common as just using the data directly).

Also, some languages (such as flash) have a different idea of what a pointer is, than assembly, C/C++, etc. You also have things like indexes and handles, which in some ways are like pointers, but different in others. Again, until you're sure you really need to use a pointer, just assume you don't need one.

Quote:
Could Someone please help me figure out where to use Inject
and The main point. i have read thru the tut and posts but
still not 100% sure.

Someone else can answer this; I only have a basic understanding of code injection, myself. Wink

Quote:
And I cant Seem To find how to Convert Hex to Real.
like 190 = 400??? that makes sence but how to you convert it.

Converting hex (or more accurately, binary numbers) into floating-point numbers (float, real, single, double, etc) is a complex and tricky subject. If at all possible, just let CE do the conversions needed, and don't try to do it yourself. If you really need to do this, Google it. But I suspect if you do, and see what is involved, you'll quickly say "screw it, I'll have more fun sticking my finger in a light socket!"

However, converting binary numbers (in hex form) to decimal integers (number that do not have fractions or decimal points) that humans can read is relatively easy. Again, Google it. There are lots of tutorials out there on working with binary and hex numbers, as well as converting them.
Back to top
View user's profile Send private message
ZeroTech
How do I cheat?
Reputation: 0

Joined: 13 Jan 2008
Posts: 7

PostPosted: Sat Jan 19, 2008 8:52 pm    Post subject: Reply with quote

Wow, thx after reading it it cleared up a good amount of my questions

Thanks ALot.
Back to top
View user's profile Send private message Send e-mail AIM Address
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6300

PostPosted: Sat Jan 19, 2008 9:22 pm    Post subject: Reply with quote

Pointers and code injection is useless on flash games.
The code is allocated and soon as you close the browser and re-open it you do not have a correct pointer if you found one.
If you try to code inject on a flash game in the browser it will crash also.

Other then that you can do code injection on almost anything else you like.

Depending on how or what is used for a timer. Freezing it can completely stop what the game thinks is the time you have left to complete a certain task. When you freeze something, nothing is sent from it.
It is basically nopped out "nop" = no operation. But something else will read from it as to know whether or not to exit the main game loop. There for ending the round or life,game etc.
Back to top
View user's profile Send private message
me
Grandmaster Cheater
Reputation: 2

Joined: 24 Jun 2004
Posts: 733
Location: location location

PostPosted: Sat Jan 19, 2008 9:48 pm    Post subject: Reply with quote

Labyrnth wrote:
Pointers and code injection is useless on flash games.
The code is allocated and soon as you close the browser and re-open it you do not have a correct pointer if you found one.
If you try to code inject on a flash game in the browser it will crash also.

Other then that you can do code injection on almost anything else you like.

Depending on how or what is used for a timer. Freezing it can completely stop what the game thinks is the time you have left to complete a certain task. When you freeze something, nothing is sent from it.
It is basically nopped out "nop" = no operation. But something else will read from it as to know whether or not to exit the main game loop. There for ending the round or life,game etc.


you might be able to find the code again by looking for the chunk of code as a string or array in flash games tho

_________________
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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