| View previous topic :: View next topic |
| Author |
Message |
glaskario How do I cheat?
Reputation: 0
Joined: 29 Sep 2015 Posts: 2
|
Posted: Tue Sep 29, 2015 6:39 am Post subject: Questions about Code Injection |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25848 Location: The netherlands
|
Posted: Tue Sep 29, 2015 6:48 am Post subject: |
|
|
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 |
|
 |
glaskario How do I cheat?
Reputation: 0
Joined: 29 Sep 2015 Posts: 2
|
Posted: Tue Sep 29, 2015 7:12 am Post subject: |
|
|
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 |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Tue Sep 29, 2015 7:35 am Post subject: |
|
|
| 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.
_________________
|
|
| Back to top |
|
 |
Rydian Grandmaster Cheater Supreme
Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Tue Sep 29, 2015 10:19 am Post subject: |
|
|
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 |
|
 |
deama1234 Master Cheater
Reputation: 3
Joined: 20 Dec 2014 Posts: 328
|
Posted: Tue Sep 29, 2015 12:02 pm Post subject: |
|
|
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 |
|
 |
|