View previous topic :: View next topic |
Author |
Message |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Thu Jan 07, 2016 8:39 pm Post subject: Why No one not use "EIP" in script? |
|
|
Why No one not use "EIP" in script?
What is it use in the script?
how write "EIP" in scri"pt?
"EIP" What for?
|
|
Back to top |
|
 |
Zanzer I post too much
Reputation: 126
Joined: 09 Jun 2013 Posts: 3278
|
Posted: Thu Jan 07, 2016 11:24 pm Post subject: |
|
|
EIP stores the address of the instruction your computer is currently executing.
Touch it and die.
|
|
Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Fri Jan 08, 2016 2:48 am Post subject: |
|
|
IP (which is the basic 16bit register from EIP) stands for "Instruction Pointer" and, as Zanzer already described, holds information about the instruction currently executed AND the instruction which will be executed next, so if you use it as a common purpose register (like EAX, EBX, etc.) and try to store some data in it, your computer will try to execute memory marked as data after the instruction you've changed EIP (which usually results in some errors and causes the application to crash) ...
|
|
Back to top |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Fri Jan 08, 2016 3:37 am Post subject: |
|
|
Very Thanks
I have one qestion.How to make best script for teleport, if Instead "mov eax,[register+offset] =>{x,y,z}" was "fld dword ptr [register+offset]" how make teleport?
|
|
Back to top |
|
 |
Dark Byte Site Admin
Reputation: 470
Joined: 09 May 2003 Posts: 25785 Location: The netherlands
|
Posted: Fri Jan 08, 2016 3:38 am Post subject: |
|
|
EIP is used in some Lua scripts. E.g when a breakpoint hits a spot change EIP to a different location.
This is useful when dealing with games that have integrity checks
_________________
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 |
|
 |
sjl002 Master Cheater
Reputation: 0
Joined: 31 Aug 2013 Posts: 305
|
Posted: Fri Jan 08, 2016 3:45 am Post subject: |
|
|
How to make script for save max,current health script and load max,current health script?
for example making super unit's(max,current go to 999999),how to make script for the back max value and current value go to max value?
I want making options for unit's such as Cheat happens.help
|
|
Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Fri Jan 08, 2016 6:25 am Post subject: |
|
|
Isn't changing EIP the same as doing a jmp instruction ?
|
|
Back to top |
|
 |
hhhuut Grandmaster Cheater
Reputation: 6
Joined: 08 Feb 2015 Posts: 607
|
Posted: Fri Jan 08, 2016 7:23 am Post subject: |
|
|
Basically yes, but as you can imagine, if you put some data into EIP, the next instruction will be ... crap
|
|
Back to top |
|
 |
ParkourPenguin I post too much
Reputation: 152
Joined: 06 Jul 2014 Posts: 4696
|
Posted: Fri Jan 08, 2016 10:12 am Post subject: |
|
|
I believe EIP is also read for calculating addresses relative to the current instruction. For example, relative jumps.
In a break and trace, it's useful to search for EIP values to see if a specific instruction is executed, and if so, if it's executed more than once.
In the debugger_onBreakpoint() function (Lua), you can read from EIP to see which instruction triggered the breakpoint.
sjl002 wrote: | How to make script for save max,current health script and load max,current health script?
for example making super unit's(max,current go to 999999),how to make script for the back max value and current value go to max value?
I want making options for unit's such as Cheat happens.help |
In case you haven't been getting the hint for the past 3 months, people aren't going to make scripts for you. If you want help with that, go see the other topics you've made:
http://forum.cheatengine.org/viewtopic.php?t=585529
http://forum.cheatengine.org/viewtopic.php?t=586192
http://forum.cheatengine.org/viewtopic.php?t=586669
http://forum.cheatengine.org/viewtopic.php?t=586878
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
 |
ulysse31 Master Cheater
Reputation: 2
Joined: 19 Mar 2015 Posts: 324 Location: Paris
|
Posted: Fri Jan 08, 2016 10:22 pm Post subject: |
|
|
Wow.
|
|
Back to top |
|
 |
|