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 


Why No one not use "EIP" in script?

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

Joined: 31 Aug 2013
Posts: 305

PostPosted: Thu Jan 07, 2016 8:39 pm    Post subject: Why No one not use "EIP" in script? Reply with quote

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
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Thu Jan 07, 2016 11:24 pm    Post subject: Reply with quote

EIP stores the address of the instruction your computer is currently executing.
Touch it and die.
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Fri Jan 08, 2016 2:48 am    Post subject: Reply with quote

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
View user's profile Send private message
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Fri Jan 08, 2016 3:37 am    Post subject: Reply with quote

Very Thanks Wink Razz Mr. Green
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
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

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

PostPosted: Fri Jan 08, 2016 3:38 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
sjl002
Master Cheater
Reputation: 0

Joined: 31 Aug 2013
Posts: 305

PostPosted: Fri Jan 08, 2016 3:45 am    Post subject: Reply with quote

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
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Fri Jan 08, 2016 6:25 am    Post subject: Reply with quote

Isn't changing EIP the same as doing a jmp instruction ?
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Fri Jan 08, 2016 7:23 am    Post subject: Reply with quote

Basically yes, but as you can imagine, if you put some data into EIP, the next instruction will be ... crap Wink
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4696

PostPosted: Fri Jan 08, 2016 10:12 am    Post subject: Reply with quote

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
View user's profile Send private message
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Fri Jan 08, 2016 10:22 pm    Post subject: Reply with quote

ParkourPenguin wrote:

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


Wow.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking 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