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 


Create patched exe that uses code injection?

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

Joined: 05 May 2025
Posts: 2

PostPosted: Mon May 05, 2025 10:53 am    Post subject: Create patched exe that uses code injection? Reply with quote

Hello!

Recently I've been working on modding a game to create a more pleasant expeerience for me and my friends. Assassin's Creed Brotherthood to be specific. The things I did through cheat engine include increasing the environment quality (LODs), increasing camera FOV and distance, etc.

TL;DR, i figured i would patch these changes into the exe itself so anyone who uses it doesn't always have to hook up cheat engine to get it working. the problem is, i can't patch in the changes that are made with code injection.

to be more specific, i can't patch in changes that allocate new memory through cheat engine and add new instructions. for instance, the code injection for the FOV changes includes:

- allocating a new float for the multiplier value
- allocating "newmem" and adding a new instruction inside it: mulss xmm0,[multiplier]

whereas the LOD change for example can be patched easily because it replaces an existing instruction and reuses its bytes

so how would i go about doing this? i can post code if anyone needs extra context.


all help is appreciated, thank you very much! <3
Back to top
View user's profile Send private message
Csimbi
I post too much
Reputation: 97

Joined: 14 Jul 2007
Posts: 3320

PostPosted: Mon May 05, 2025 12:50 pm    Post subject: Reply with quote

Have you tried DLL injection?
Back to top
View user's profile Send private message
moment_apart
How do I cheat?
Reputation: 0

Joined: 05 May 2025
Posts: 2

PostPosted: Tue May 06, 2025 7:10 am    Post subject: Reply with quote

Csimbi wrote:
Have you tried DLL injection?


that was one of my first ideas, but i wasn't able to find any feature that converts cheat engine code injections into a DLL? i looked through some stuff online and it seems i would have to make my own DLL in C, which im fine with trying to figure out, but i would still have to inject it using cheat engine, no?
ideally i would try to skip that step entirely if possible, cos at that point i might as well just share the cheat table
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 Lua Scripting 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