Pointer Scanning & Scripting - Beginner's Guide To Advanced Cheat Engine

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
if you're using cheat engine to give yourself these kinds of cheats then there's a good chance that you are scanning these values every time you want to use these cheats I know this because that's what I used to do so in this video I'm going to show you two ways that you can save your scans so that they work every single time you load the game no more rescans all your cheats get saved and when you can save your cheats you can start building up a huge list of cheats as you play the game I started writing this cheat table for the game Dead Island I have a money cheat infinite durability and a god mode and I know that as I keep playing I can create more cheats and rather than having to scan over and over for the same addresses every time I want to play the game I now just have them saved and I can start looking for more addresses more cheats whatever my imagination can come up with to cheat in this game and that is an awesome feeling so the first method is called pointer scanning and a lot of people have trouble with pointer scanning and there's a good reason for it it's really complicated but in this video I'm going to make it as simple as possible I'm going to leave all the technical stuff out I'm just going to make it so that you can do this and move on with your life and keep cheating so every time you reload the game the address where your value is stored gets changed this is why it doesn't last every time you load the game the address is gone now you have to scan for it again but the game knows where that address lives every time you just have to find the map that the game uses to find that address and that's called The Pointer map and what we're going to do is we're going to create a pointer map and then we're going to scan it and it's going to give us the map for our address so every time we load the game our cheat table can find that ad address on its own without us having to scan for it again so the first step to finding your pointers is to get the address you want to work with for this example we're going to get the address for the Player's cache okay so we found that this is the address that writes to our cache value next we're going to right click on this address and generate pointer map this will ask us to specify a file name we'll just call it cache1 and it's going to do this little loading bar followed by a second quick loading bar that just kind of writes out to the file I presume and now we're going to close the game and we're going to reopen the game we're going to go back into Cheat Engine and reattach cheat engine to the new game process it says do you want to keep the address list code list click yes and as you can see our cash value says zero it's not accurate anymore what we need to do is find that address one more time so now we found the address for our cache for a second time and we're going to create another pointer map for this address we're going to right click it and generate pointer map we're going to do it again and this is going to be called cache2 the reason we're making two pointer Maps is because we're going to be comparing them to each other and after comparing the two pointer Maps we're going to be left with nothing but pointers for our cash value and then we're done we'll have our pointers our cheat will be saved so to do this we're going to right click on our newest address the one that's from this session and we're going to click pointer scan for this address and we want to use a saved pointer map and we're going to click cache 2 the pointer map from the current session and we're also going to click compare results with other saved pointer maps and we're going to pick the first pointer map from our last session and from the address drop down box we're going to select our cache value that we identified from that session now doing this scan is just gonna give us every single pointer between those two sessions that's useless we only want pointers that are pointing to our cash address so we need to add a filter so before we do the scan let's find how we can filter this it only takes a second we're going to close the pointer scan for now we're going to right click on our address from this session and we're going to click find out what writes to this address this will attach a debugger click yes and this window will just show us any kind of code that is associated with our cache value and we're just going to loot some money in the game and we can see here this code showed up this is the code that's writing to the game when we loot money and the only thing we want from this information is what's at the end of this RBX plus zero zero zero zero bc8 that's all we want the bc8 so remember that or write it down because that is our filter for our scan so now we go to cheat engine into our address list right click on the cash address from this session and click pointer scan for this address we're going to select used saved pointer map and we're going to select cache2 which is the pointer map generated from this game session click compare results with other save pointer Maps and we're going to pick cache 1 which is the pointer map from the previous session and under this address drop down box we're going to select the address for cache that we found in our last session and now we're going to apply our filter by clicking pointers must end with specific offsets and we're going to put bc8 and these settings here whatever are your default will be fine click OK it's going to ask you to generate a file name name it whatever you want I'm going to call it cache pointers and it's going to compare the two pointer Maps together and here it spit out over 11 000 potential pointers that could be pointing to this address if you know your value which is right here 1101 that's our cache that our character has we can click pointer scanner rescan memory value to find and put 1101 which is our value how much our character is holding and click OK replace the file and that filtered out over 2 000 pointers that are not the ones we need so in this list of 9 000 pointers that could be our pointers how do we pick which one is good now the easiest and laziest way of doing this is to just start double clicking on a bunch of these pointers from the list at random and this is going to add them to your address list in Cheat Engine and with this big list we can just select all of them right click and select add to new group and we'll just call this cache pointers do you want the address version click no now we're going to right click on this group we just made under group config we're going to select setting a value to this entry sets same value to children now if we go to the value section in the address list and double click on it and when we change the value here it's going to change the value or all of these addresses which updates the value in our game and we can now right click on this group go to group config and hide children when deactivated and that's just gonna hide all of those pointers and we can just have a nice neat cheat right there but before we hide it and go find more cheats let's just find out if this list that we picked was reliable in the first place and I'll show you what that means so we're gonna go ahead and actually show the children we're going to close our game and reopen it to see how many of these actually work so we load up our game we're going to reattach cheat engine to the game keep the current list code list yes and we can see every pointer that we selected from this list is pointing to our cash value in the game which is 1101 as you can see here so this list is fairly accurate if any of these pointers were to prove to be unreliable instead of our cash value here it would have something else and that would tell us that this pointer is not good every single time so we can just delete it from our list and save our cheat table so the list looks good we're going to right click on our group group config hi children when deactivated then we're going to go to file and save if you want to find a more reliable pointer list you're just gonna have to keep scanning more and more to get this list as small as possible the important thing to understand with this process is that you can have many many many pointers and they will all be good pointers you don't have to focus on getting just one good pointer just grab a nice big bunch they'll all be fine now the other way of saving your cheats is to do scripting this is where things start to get pretty complicated so a really easy way to get started with scripting is to learn how to find the code that's running in your game and that's really easy to do I'll show you a quick example here every time my character swings his weapon he uses a little bit of stamina that's the blue bar in the middle of the screen I've already found the address for stamina so we don't have to go looking for it if you right click on this address and select find out what rights to this address it's going to open a debugger now anytime I swing my weapon and use stamina or regain stamina it's gonna show me the code that's being written into the game as it happens so we're gonna do one swing of the weapon and we'll go into our debugger and here we have the code that runs when we spend our stamina and if you don't understand what you're looking at here don't worry the easiest way to go about cheating scripts is to just right click on the code and select replace with code that does nothing it's going to give you this warning click yes click OK and now when we go into our game anytime we swing our Weapon It's not consuming any stamina so we just created an infinite stamina cheat by doing this and if you want to undo that code change you can click on the code that you turned off and click on show disassembler and you're gonna see a bunch of codes here that say knock knock this means no operation you turned off the code at this point so we're just going to right click on this top knob and we're going to select restore with original code and now when we swing we are using our stamina again okay so doing this does not persist through game sessions so we're back at square one we have two choices to make do we want to find the pointers for our stamina address which involves closing the game scanning again making pointer Maps pointer scanning picking random pointers or do we just want to intercept the code that runs every time regardless of the address and just save this code change for any time we want this is way faster does not involve closing the game does not involve rescanning so we're going to take that no operation and we're just going to turn it into a toggle that we can put on and off whenever we want and that toggle is something we can save in our address list as a script so to do this we're going to pick the code that we already know works if we disable it and we're going to click show disassembler then we're going to click tools and go down to Auto Assemble and this is going to open this text editor and under template select aob injection and just click OK OK as you can see this code is the same as the one from the debugger what writes to the address and we're just going to replace this code with NOP for no operation then click file assign to current cheat table we can close this window we can close this window and we can close this window and now we have a script added to our cheat table and we'll just call this infinite stamina and now anytime we toggle this on or off with this checkbox here we can turn on our infinite stamina and turn off our infinite stamina and just to show it works we're going to close the game and we're gonna enter the game on a new session attach cheat engine to the process and we're going to turn on our infinite stamina cheat and you can see when I swing when I run when I jump it does not consume stamina when I turn it off it does consume stamina and if you take your time to learn what all of these instructions actually mean you can go and start changing some really funky things one example here being that I changed how much money my character picks up anytime he picks up any money so here I have 23 dollars when I pick it up you can see it says 999 999 taken same thing when I loot a dead zombie for 45 dollars it says 999 999 taken and that comes with learning a little bit of reverse engineering when you're doing this stuff so now you can click file save and your cheats for this game will be saved and next time you go play this game they'll still be there and working every single time which will allow you to eventually make a nice big list of all kinds of cheats that you can think of I hope this video helped you to understand pointer scanning and scripting a little bit better in cheat engine if this video helped you if you like the video subscribe to the channel to show your support I'll also put a link to a Discord channel in the description for anyone who wants to talk about cheat engine stuff you can find me there good luck and happy cheating
Info
Channel: Swashed
Views: 34,463
Rating: undefined out of 5
Keywords: cheat engine, cheat, cheats, hack, hacks, pointer, pointers, pointer scan, scanning, find out what writes to this address, find out what accesses this address, show disassembler, auto assembly, template, aob injection, nop, no operation, op codes, script, scripting, cheat table, trainers, trainer, save cheats, addresses, address, value, values, find address, first scan, next scan, value type, pointer scan too many results, pointer scan no results, find pointer address, how to use pointers
Id: DWd1ltJXaRk
Channel Id: undefined
Length: 16min 53sec (1013 seconds)
Published: Wed Aug 16 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.