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 


"Locking" value doesn't actually lock it. (Far Cry

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

Joined: 25 Aug 2017
Posts: 2

PostPosted: Fri Aug 25, 2017 11:25 am    Post subject: "Locking" value doesn't actually lock it. (Far Cry Reply with quote

Far Cry 4 on PC is somewhat notorious for its handling of FOV. This has nothing to do with the slider being "missing" on the pirated version - I've got the FOV slider, and technically it works just fine.

The issue is that the game keeps forcing the FOV multiplier back to 1x in vehicles and during certain events like opening doors, climbing, using the wingsuit, etc. I find this immensely annoying, even nauseating, so I'm trying to find a way to prevent it from happening.

I was able to find the memory address for the FOV mutiplier easily enough, by searching for my normal FOV multiplier's value, then searching for "1" while in a vehicle. No problem. I tested it, and changing it works exactly as expected.

With that, I clicked the box to lock the value, and gleefully hopped into a car... only to find that the value was not truly locked. Instead, the game would force the value back to 1, then CheatEngine would force it back to my desired 1.5, over and over again. Obviously having my FOV rapidly bounce in and out is a lot worse than just having it zoomed in.

Is there a way I can truly lock the value, and prevent the game from changing it?
Back to top
View user's profile Send private message
cooleko
Grandmaster Cheater
Reputation: 11

Joined: 04 May 2016
Posts: 717

PostPosted: Fri Aug 25, 2017 1:33 pm    Post subject: Reply with quote

Find the value like you did before. Set it, freeze it, and see what accesses this address. When the game starts fighting with your lock, you will see a new instruction repeatedly incrementing in the list. replace that instruction with a nop and see if it solves your problem. If it does, then create an aob template for it (dont forget to roll back your NOP before trying to do this), delete the instruction from the template, assign to your table, and enjoy the spoils of your labor.
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Fri Aug 25, 2017 1:35 pm    Post subject: Reply with quote

see what writes it.

two possible things:
an instruction is being executed constantly.
a different instruction writing to it when riding your car.

simply modify it in a script.

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
Circuitous
How do I cheat?
Reputation: 0

Joined: 25 Aug 2017
Posts: 2

PostPosted: Sun Sep 17, 2017 11:45 pm    Post subject: Reply with quote

cooleko, I found the way to see what's changing the value and the repeating instruction, but replacing it with a nop didn't help (and threw some errors).

OldCheatEngineUser, I don't know jack about scripting, unfortunately. Any general advice you can offer that might help with this, or would it need to be specific to FC4?
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 20

Joined: 01 Feb 2016
Posts: 1587

PostPosted: Mon Sep 18, 2017 11:25 am    Post subject: Reply with quote

make sure there is only one instruction is writing to it while in car and while walking.

and assuming its 64bit game, then xmm register will be writing to it.


Code:
newmem:
push eax
mov eax,(float)1.5
movss xmm(x),[eax] // change (x) with xmm register number.
pop eax

code:
movss [reg+off],xmm(x) // original code here

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
Jul 26, 2020
STN wrote:
i am a sweetheart.
Back to top
View user's profile Send private message Visit poster's website
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