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 


Need help to find and change values - The Long Dark

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

Joined: 28 Jan 2017
Posts: 3

PostPosted: Sat Jan 28, 2017 12:22 pm    Post subject: Need help to find and change values - The Long Dark Reply with quote

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



TheLongDark.PNG
 Description:
Please see the highlighted/bordered section in the image for reference
 Filesize:  922.53 KB
 Viewed:  12408 Time(s)

TheLongDark.PNG


Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Jan 28, 2017 12:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
mohanhegde
How do I cheat?
Reputation: 0

Joined: 28 Jan 2017
Posts: 3

PostPosted: Sat Jan 28, 2017 12:44 pm    Post subject: Reply with quote

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 Smile Thanks a lot for your quick reply and guidance Very Happy

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
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