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 


Fallout 1: how to prevent player death

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
kagato1980
Cheater
Reputation: 0

Joined: 30 Oct 2020
Posts: 30
Location: The netherlands

PostPosted: Thu Mar 02, 2023 10:17 am    Post subject: Fallout 1: how to prevent player death Reply with quote

I made a simple script that skips applying damage when getting hit. Only problem is, when the dealt damage exceeds the player health, it's an instant kill and my script won't be applied.

So, somewhere before my hack there's a check for 'hit damage > player health' but I'm not sure how to find this. The only clue I have is that the in-game terminal will say 'You were killed' so maybe I can trace that string to some instructions?
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Thu Mar 02, 2023 10:58 am    Post subject: Re: Fallout 1: how to prevent player death Reply with quote

kagato1980 wrote:
I made a simple script that skips applying damage when getting hit. Only problem is, when the dealt damage exceeds the player health, it's an instant kill and my script won't be applied.
-It could be a few things. Right-click on the health address in your cheat table and check to see what is writing/accessing the address.

First check to see if something is writing to the health address (when you get hit/killed). If something is still writing to the address, NOP each instruction, one-by-one, and see if something works.

If that doesn't work, check to see if something is accessing the address. Try to NOP each instruction until you narrow in on which one may be causing the death sequence. Once found, you will likely have to filter out other entities, else they will also be invincible. You may also need to NOP multiple instructions.

This is the easy approach. It may not work, but it does not require much knowledge of assembly.
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Thu Mar 02, 2023 11:02 am    Post subject: Reply with quote

The easier solution would be to monitor your HP for what writes it and see where it deviates when the damage exceeds max health. That may provide you an answer. The second path is to see what accesses it, and observe which value increments differently than the others when that is triggered (will help you isolate where the branch is occuring). Third path is to run ultimap if your processor supports it. Fourth path is to trace the current function call to the branch that occurs when damage is a one hit kill.

There are likely other methods to consider, but I'd start with one of these.
Back to top
View user's profile Send private message
kagato1980
Cheater
Reputation: 0

Joined: 30 Oct 2020
Posts: 30
Location: The netherlands

PostPosted: Sun Mar 05, 2023 2:51 am    Post subject: Re: Fallout 1: how to prevent player death Reply with quote

Thanks for the suggestions, if I figure out a working solution I'll post a update
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Sun Mar 05, 2023 2:03 pm    Post subject: Reply with quote

Assuming that you have the correct address for health, then NOPing all of the instructions that write to it should definitely stop you from dying. If it doesn't, then you do not have the correct health address.

...Unless this game has online components and the health value is being handled remotely.
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