 |
Cheat Engine The Official Site of Cheat Engine
|
| View previous topic :: View next topic |
| Author |
Message |
mohanhegde How do I cheat?
Reputation: 0
Joined: 28 Jan 2017 Posts: 3
|
Posted: Sat Jan 28, 2017 12:22 pm Post subject: Need help to find and change values - The Long Dark |
|
|
Hi,
I'm trying to cheat in a game called 'The Long Dark' and I'm not able to change/freeze certain values (like the current weight being carried).
I know how to use cheat engine and I've successfully found and changed other values like the 'calories' by searching for related posts in the forum. But I'm not able to change the 'weight' value.
Sometimes, I can find the exact value, change the value in Cheat engine, but when I go back to the game and come back to Cheat engine, it gets changed to what the game wants it to be, i.e. it is somehow overriding my set value.
I know I can find a trainer for this, but I want to learn how to deal with situations like this. So if anyone has made a hack/trainer for this game can point me in the right direction so that I can hack it myself, it would be really helpful.
Thanks
| Description: |
| Please see the highlighted/bordered section in the image for reference |
|
| Filesize: |
922.53 KB |
| Viewed: |
12408 Time(s) |

|
|
|
| Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Sat Jan 28, 2017 12:35 pm Post subject: |
|
|
The problem with weight is that there is often not a set variable with the amount.
The game is constantly calculating that amount every time you lose or gain an item.
It doesn't necessarily need to update the same memory address when it changes.
It could throw out the old address and create a brand new one with the new total.
The best place to start is often with the inventory quantity. Find out what accesses that value.
You will likely see things access it when you open the inventory.
If you're lucky, you'll see a different instruction access it when you use/pickup an item.
This would be the location that retrieves its quantity and its weight, then multiplies those together.
You would start your debugging at this location.
I don't know if the game still has symbols enabled, but it looks like the function you want is Inventory:GetTotalWeightKG
|
|
| Back to top |
|
 |
mohanhegde How do I cheat?
Reputation: 0
Joined: 28 Jan 2017 Posts: 3
|
Posted: Sat Jan 28, 2017 12:44 pm Post subject: |
|
|
| Zanzer wrote: | The problem with weight is that there is often not a set variable with the amount.
The game is constantly calculating that amount every time you lose or gain an item.
It doesn't necessarily need to update the same memory address when it changes.
It could throw out the old address and create a brand new one with the new total.
The best place to start is often with the inventory quantity. Find out what accesses that value.
You will likely see things access it when you open the inventory.
If you're lucky, you'll see a different instruction access it when you use/pickup an item.
This would be the location that retrieves its quantity and its weight, then multiplies those together.
You would start your debugging at this location.
I don't know if the game still has symbols enabled, but it looks like the function you want is Inventory:GetTotalWeightKG |
Wow, didn't expect a response so soon Thanks a lot for your quick reply and guidance
I'll certainly head in that 'what access the inventory' direction and will post back if I'm stuck again and need help. (it's almost 12 AM here, so will check tomorrow)
Thanks,
Mohan
|
|
| 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
|
|