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 


Questions about Code Injection

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

Joined: 29 Sep 2015
Posts: 2

PostPosted: Tue Sep 29, 2015 6:39 am    Post subject: Questions about Code Injection Reply with quote

Actually, its a question about its useness, since i have found a lot of tutorials on how to make your code injection, but not what can be done with it


I see everyone making tutorials to find what writes and what access a specific information (like ingame health, ammo, coins, etc). When finding it, they create or change the code so AMMO will be "inc" instead of "dec" when you shoot.

My question is... isn't it much easier to find the AMMO or HEALTH value and just freeze or change it to a higher value instead of making all that work writing script? Or this code injection would work in values that cannot be just changed?

Thanks =)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25848
Location: The netherlands

PostPosted: Tue Sep 29, 2015 6:48 am    Post subject: Reply with quote

Freezing is quickly writing the value
If the check if health is below 0 is done right after setting it, it can cause 1-hit kills to still kill you because the freeze won't reset it quickly enough

Setting health to above max doesn't always work either. Or the game crashes, or the whole screen is filled with the health bar, or the health gets set back to max automatically

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
glaskario
How do I cheat?
Reputation: 0

Joined: 29 Sep 2015
Posts: 2

PostPosted: Tue Sep 29, 2015 7:12 am    Post subject: Reply with quote

i understand that, my question is whats the difference betwen Code Injection and Editing the value manually?

Talking about HEALTH for exemple, you can use potions that you do not have for exemple when you inject right?

What makes the code injection better then just editing the value since you cannot pass your total life anyway and you can still get killed by 1 hit kill?

Does the injection works in places that the editing do not work?

thanks
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Tue Sep 29, 2015 7:35 am    Post subject: Reply with quote

glaskario wrote:
i understand that, my question is whats the difference betwen Code Injection and Editing the value manually?

Talking about HEALTH for exemple, you can use potions that you do not have for exemple when you inject right?

What makes the code injection better then just editing the value since you cannot pass your total life anyway and you can still get killed by 1 hit kill?

Does the injection works in places that the editing do not work?

thanks


The difference is simple.

You find the health address and edit it, you're happy and nothing can kill you. The next time you play the game, the address doesn't work anymore. Now you can either search the address again, find a pointer to the address or you do code injection. All result in editing the value.

Code injection is better than pointers because you change the code that decreases your health or writes new health so the game doesn't get a chance to decrease your health at all!. You are editing value still with code injection.

Pointers also don't work for different game versions and you have to calculate/offsets sometime change. Code injections offer the ability of using sigscanning(AOBs).

People don't understand the concept of the whole code injection and pointers, you are still accessing and editing pointers when doing code injection. A pointer is anything that points to an address, it isn't something that CE pointerscanner finds.

You need code injection because you can't edit the game code directly/messing up the register values/stack balance or bytes etc. When you jump to your cave, you can write any code you like to be executed by the game. Even foreign code that has nothing to do with your health or whatever the instruction at that point in game is supposed to do.

For example, for a teleport hack you can use code injection to store values in game memory and use to teleport back there. Sure with pointers and editing values directly, you have to store that information somewhere, in your program etc. but why go through all that trouble when you can do code injection at least for a simple save/restore position.

I hope this clarifies the concept for you. If it is still confusing, use the wikipedia article
https://en.wikipedia.org/wiki/Code_injection

Ignore that part about malicious use, thats not what we do here. Its used by viruses etc. to take over programs.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Sep 29, 2015 10:19 am    Post subject: Reply with quote

Code injection WILL stop you from getting killed in one hit because code injection can stop the damage from getting dealt to you at all in the first place. Compare this to "freezing" an address which is more like a really rapid regen that can still be overpowered by large amounts of damage at once.

Games change their code much, much less often than they change their addresses. Outside of JIT stuff, it's generally taken that code only changes when the game itself updates.

With CE's templates now, an AOB injection script is actually much faster to create than finding pointers.

How fast is it? Less than one minute for a no-direct-damage cheat that will stop direct hits and falls from killing you in Terraria, and that cheat will work every time you start the game up.

https://www.youtube.com/watch?v=Hd_8c0-T8rU

_________________
Back to top
View user's profile Send private message
deama1234
Master Cheater
Reputation: 3

Joined: 20 Dec 2014
Posts: 328

PostPosted: Tue Sep 29, 2015 12:02 pm    Post subject: Reply with quote

You can do more interesting stuff with code injection; like create a 2x multiplier for your exp gain, or reduce the damage you take; create a fomular that will increase your damage output depending on some variable (like strength); or remove a lvl cap...

Hell, you can even create some sort of "leveling" system to a game that doesn't even have it.
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