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 


Help with JIT Compilation, (Cemu)

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

Joined: 04 Jun 2022
Posts: 28

PostPosted: Fri Aug 19, 2022 12:14 am    Post subject: Help with JIT Compilation, (Cemu) Reply with quote

I can't activate my script until until the instruction is called because of jit compilation in Cemu, so, my question is if there is any workaround it, i have searched the forum for info and couldn't find a solution to this specific problem, I was thinking if it is possible to make the script wait until the instruction exists and then injects the code, in AA if possible but if not in Lua then. Would have tried it myself but my knowledge in asm is a bit limited, sucks to know algorithmy but lacking the know how to apply it in diferent languages.

I almost forgot, when i scan for the instruction via array of byte, it shows 2 or even 3 adresses for some reason, if i exit the inventory and enter it again, the other adresses change leaving 1 adress with the right instruction. These addresses have a whole memory region exactly the same as the real one. I need to be able to inject it when there is only 1 instruction, another condition to be made in the script it seems.
Back to top
View user's profile Send private message
sbryzl
Master Cheater
Reputation: 6

Joined: 25 Jul 2016
Posts: 252

PostPosted: Fri Aug 19, 2022 2:34 pm    Post subject: Reply with quote

Sounds like a strange situation but if I had to do this I would probably create a thread on a timer to scan the memory or pointers for the expected changes and implement the cheat whenever they appear. It wouldn't be instant but you could tighten the timer up to milliseconds if you really wanted.
Back to top
View user's profile Send private message
Arcansel
Cheater
Reputation: 0

Joined: 04 Jun 2022
Posts: 28

PostPosted: Sat Aug 20, 2022 9:08 pm    Post subject: Reply with quote

Thanks for the response, yea i understand what you mean, but i want it to keep searching for the bytes until it finds, at all times, so it isnt a timer i need here, basically scanning for the bytes at every frame and when it finds the cloned ones to keep checking for them until it only finds one set of bytes, only then it can be allowed to inject the code. I m just worried if the scanning slows down the game enough to be noticeable and annoying. If it is possible to do this that is. I am not sure how to do this on AA or Lua, Lua even less. So i m left with my pseudocode in my head.
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