 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
faleira How do I cheat?
Reputation: 0
Joined: 30 Jul 2007 Posts: 3
|
Posted: Mon Jul 30, 2007 5:11 pm Post subject: 'All Item' codes in games, how do they work? |
|
|
I know it's a rather big generalization and that different games have different methods, but normally, what would be the general method (thought pattern?) to getting a code for something like this? Because there are often times where codes can give u hundreds of items, but only take a few lines...
Last edited by faleira on Mon Jul 30, 2007 5:22 pm; edited 1 time in total |
|
| Back to top |
|
 |
ShadowShugo Cheater
Reputation: 0
Joined: 29 Jul 2007 Posts: 35
|
Posted: Mon Jul 30, 2007 5:21 pm Post subject: |
|
|
Huh O.o Lol
_________________
|
|
| Back to top |
|
 |
Labyrnth Moderator
Reputation: 10
Joined: 28 Nov 2006 Posts: 6301
|
Posted: Mon Jul 30, 2007 5:45 pm Post subject: |
|
|
The general pattern to go by is how the cheat engine tutorials teach you.
The rest is trial and error all the way.
|
|
| Back to top |
|
 |
faleira How do I cheat?
Reputation: 0
Joined: 30 Jul 2007 Posts: 3
|
Posted: Tue Jul 31, 2007 7:09 pm Post subject: |
|
|
| Hmm, what i meant is, i mean, yea, i understand if you do it the way the tutorial teaches and you search up an item code, and them mess with the item identifier and change the items while setting them all so that you 'have' them, but what puzzles me is that a lot of times, such codes are actually short, taking maybe 8 lines for over a hundred items. That's what confused me and was curious to find out why...
|
|
| Back to top |
|
 |
Petrarch How do I cheat?
Reputation: 0
Joined: 09 May 2007 Posts: 4
|
Posted: Thu Aug 02, 2007 12:13 pm Post subject: |
|
|
If you are talking about editing a game with a pre-existing "all items" cheat code, then all you are doing is sending a code for all items to the game, and it proccesses it by probably looping through an array and giving you all items, or maybe having a function that does that. You are not sending a code for it to cycle through an array and actually give you all the items, that's why the code is not very long. It's like the difference between flipping a lightswitch and actually making a lightbulb and wiring the house. The lightbulb and wiring are already there, all you have to do is flip a small switch.
If you are talking about something else, like editing a game that does not have an all items cheat to give yourself all items, this could be because sometimes items are grouped in strange ways. For instance, in Quake 3 engine games like JK2 the weapons are labeled with an index number(4-80, let's pretend) and what weapons you have is stored in one 2-byte address(actually it's 2 2byte addresses, but that's not important). A lightsaber might have a value of 8, a pistol a value of 4, a rocket launcher a value of 16. If it wants to say that you have all three of these weapons it would simple set the value of that 2-byte address i mentioned to "28", which is 16+8+4, the sum of the different weapon "index numbers". In this way, it can store how many weapons you have in a very small space. If you want all weapons, you just change the value of that 2byte address to something like 255, a very small change for so many items. Inventory is set in a similar way, as well as other items, meaning giving yourself 100 different items in jk2 only requires a few small changes rather than a few hundred.
|
|
| Back to top |
|
 |
|
|
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
|
|