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 


i have a script but i dont know how to put it into CE
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
skyz888
Newbie cheater
Reputation: 0

Joined: 28 Jul 2015
Posts: 16

PostPosted: Tue Jul 28, 2015 9:14 am    Post subject: i have a script but i dont know how to put it into CE Reply with quote

how do i add this script and have it turn on and off?

so far ive been using Ctrl alt A and enter and execute but i have to restart it everytime to disable and enable



[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [eax+4C],ecx
mov ecx,[esi+0C]

exit:
jmp returnhere

"Skyforge.exe"+992E50:
jmp newmem
nop
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Skyforge.exe"+992E50:
mov [eax+3C],ecx
mov ecx,[esi+0C]
//Alt: db 89 48 4C 8B 4E 0C
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<CheatCodes>
<CodeEntry>
<Description>Code :mov ebx,[ebx+3C]</Description>
<Address>0196FD3C</Address>
<ModuleName>Skyforge.exe</ModuleName>
<ModuleNameOffset>B2FD3C</ModuleNameOffset>
<Before>
<Byte>45</Byte>
<Byte>0C</Byte>
<Byte>8B</Byte>
<Byte>5B</Byte>
<Byte>0C</Byte>
</Before>
<Actual>
<Byte>8B</Byte>
<Byte>5B</Byte>
<Byte>3C</Byte>
</Actual>
<After>
<Byte>50</Byte>
<Byte>56</Byte>
<Byte>E8</Byte>
<Byte>8A</Byte>
<Byte>46</Byte>
</After>
</CodeEntry>
<CodeEntry>
<Description>Code :mov ecx,[eax+3C]</Description>
<Address>019432D0</Address>
<ModuleName>Skyforge.exe</ModuleName>
<ModuleNameOffset>B032D0</ModuleNameOffset>
<Before>
<Byte>FF</Byte>
<Byte>D2</Byte>
<Byte>8B</Byte>
<Byte>46</Byte>
<Byte>18</Byte>
</Before>
<Actual>
<Byte>8B</Byte>
<Byte>48</Byte>
<Byte>3C</Byte>
</Actual>
<After>
<Byte>3B</Byte>
<Byte>4D</Byte>
<Byte>08</Byte>
<Byte>74</Byte>
<Byte>0F</Byte>
</After>
</CodeEntry>
<CodeEntry>
<Description>Code :mov [eax+3C],ecx</Description>
<Address>017D2E50</Address>
<ModuleName>Skyforge.exe</ModuleName>
<ModuleNameOffset>992E50</ModuleNameOffset>
<Before>
<Byte>4D</Byte>
<Byte>08</Byte>
<Byte>8B</Byte>
<Byte>46</Byte>
<Byte>18</Byte>
</Before>
<Actual>
<Byte>89</Byte>
<Byte>48</Byte>
<Byte>3C</Byte>
</Actual>
<After>
<Byte>8B</Byte>
<Byte>4E</Byte>
<Byte>0C</Byte>
<Byte>3B</Byte>
<Byte>CB</Byte>
</After>
</CodeEntry>
<CodeEntry>
<Description>Code :mov eax,[eax+3C]</Description>
<Address>014D1DAE</Address>
<ModuleName>Skyforge.exe</ModuleName>
<ModuleNameOffset>691DAE</ModuleNameOffset>
<Before>
<Byte>D2</Byte>
<Byte>85</Byte>
<Byte>C0</Byte>
<Byte>74</Byte>
<Byte>04</Byte>
</Before>
<Actual>
<Byte>8B</Byte>
<Byte>40</Byte>
<Byte>3C</Byte>
</Actual>
<After>
<Byte>C3</Byte>
<Byte>33</Byte>
<Byte>C0</Byte>
<Byte>C3</Byte>
<Byte>CC</Byte>
</After>
</CodeEntry>
</CheatCodes>
<UserdefinedSymbols/>
</CheatTable>
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Jul 28, 2015 11:05 am    Post subject: Reply with quote

Again not Lua related, moved.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Alamer99
Expert Cheater
Reputation: 1

Joined: 04 Jan 2015
Posts: 136

PostPosted: Tue Jul 28, 2015 1:56 pm    Post subject: Reply with quote

after you open the Auto assemble (ctrl+alt+a) paste your script (or create it) and separate it with [enable],[disable] sections then click on file menu then assign to current cheat table, a new script will pop up (DE)Activating it will Enable-Disable The Script
Back to top
View user's profile Send private message
skyz888
Newbie cheater
Reputation: 0

Joined: 28 Jul 2015
Posts: 16

PostPosted: Tue Jul 28, 2015 6:54 pm    Post subject: Reply with quote

when i click assign to current cheat table it keeps saying error lines and etc


error in line 33 line cant be compliled
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Jul 28, 2015 8:10 pm    Post subject: Reply with quote

That's part of a lua script inside a table, and it's not even the whole table.

Go back to where you got it and copy the whole thing this time.

_________________
Back to top
View user's profile Send private message
skyz888
Newbie cheater
Reputation: 0

Joined: 28 Jul 2015
Posts: 16

PostPosted: Tue Jul 28, 2015 8:21 pm    Post subject: Reply with quote

Rydian wrote:
That's part of a lua script inside a table, and it's not even the whole table.

Go back to where you got it and copy the whole thing this time.



<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="18">
<CheatEntries>
<CheatEntry>
<ID>0</ID>
<Description>"Infinite Dodge"</Description>
<LastState Activated="1"/>
<Color>80000008</Color>
<VariableType>Auto Assembler Script</VariableType>
<AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(newmem,2048)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here

originalcode:
mov [eax+4C],ecx
mov ecx,[esi+0C]

exit:
jmp returnhere

"Skyforge.exe"+992E50:
jmp newmem
nop
returnhere:




[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Skyforge.exe"+992E50:
mov [eax+3C],ecx
mov ecx,[esi+0C]
//Alt: db 89 48 4C 8B 4E 0C
</AssemblerScript>
</CheatEntry>
</CheatEntries>
<CheatCodes>
<CodeEntry>
<Description>Code :mov ebx,[ebx+3C]</Description>
<Address>0196FD3C</Address>
<ModuleName>Skyforge.exe</ModuleName>
<ModuleNameOffset>B2FD3C</ModuleNameOffset>
<Before>
<Byte>45</Byte>
<Byte>0C</Byte>
<Byte>8B</Byte>
<Byte>5B</Byte>
<Byte>0C</Byte>
</Before>
<Actual>
<Byte>8B</Byte>
<Byte>5B</Byte>
<Byte>3C</Byte>
</Actual>
<After>
<Byte>50</Byte>
<Byte>56</Byte>
<Byte>E8</Byte>
<Byte>8A</Byte>
<Byte>46</Byte>
</After>
</CodeEntry>
<CodeEntry>
<Description>Code :mov ecx,[eax+3C]</Description>
<Address>019432D0</Address>
<ModuleName>Skyforge.exe</ModuleName>
<ModuleNameOffset>B032D0</ModuleNameOffset>
<Before>
<Byte>FF</Byte>
<Byte>D2</Byte>
<Byte>8B</Byte>
<Byte>46</Byte>
<Byte>18</Byte>
</Before>
<Actual>
<Byte>8B</Byte>
<Byte>48</Byte>
<Byte>3C</Byte>
</Actual>
<After>
<Byte>3B</Byte>
<Byte>4D</Byte>
<Byte>08</Byte>
<Byte>74</Byte>
<Byte>0F</Byte>
</After>
</CodeEntry>
<CodeEntry>
<Description>Code :mov [eax+3C],ecx</Description>
<Address>017D2E50</Address>
<ModuleName>Skyforge.exe</ModuleName>
<ModuleNameOffset>992E50</ModuleNameOffset>
<Before>
<Byte>4D</Byte>
<Byte>08</Byte>
<Byte>8B</Byte>
<Byte>46</Byte>
<Byte>18</Byte>
</Before>
<Actual>
<Byte>89</Byte>
<Byte>48</Byte>
<Byte>3C</Byte>
</Actual>
<After>
<Byte>8B</Byte>
<Byte>4E</Byte>
<Byte>0C</Byte>
<Byte>3B</Byte>
<Byte>CB</Byte>
</After>
</CodeEntry>
<CodeEntry>
<Description>Code :mov eax,[eax+3C]</Description>
<Address>014D1DAE</Address>
<ModuleName>Skyforge.exe</ModuleName>
<ModuleNameOffset>691DAE</ModuleNameOffset>
<Before>
<Byte>D2</Byte>
<Byte>85</Byte>
<Byte>C0</Byte>
<Byte>74</Byte>
<Byte>04</Byte>
</Before>
<Actual>
<Byte>8B</Byte>
<Byte>40</Byte>
<Byte>3C</Byte>
</Actual>
<After>
<Byte>C3</Byte>
<Byte>33</Byte>
<Byte>C0</Byte>
<Byte>C3</Byte>
<Byte>CC</Byte>
</After>
</CodeEntry>
</CheatCodes>
<UserdefinedSymbols/>
</CheatTable>



this is the whole thing when i paste it it says i havent specify enable section... but when i take off the top part it works..thats why i removed it
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Jul 28, 2015 8:27 pm    Post subject: Reply with quote

No, just open Cheat Engine and immediately hit Control-V to paste.
Don't open any windows. Don't click someplace else. CTRL-V!
Back to top
View user's profile Send private message
skyz888
Newbie cheater
Reputation: 0

Joined: 28 Jul 2015
Posts: 16

PostPosted: Tue Jul 28, 2015 8:42 pm    Post subject: Reply with quote

Zanzer wrote:
No, just open Cheat Engine and immediately hit Control-V to paste.
Don't open any windows. Don't click someplace else. CTRL-V!


finally thanks man!

ok now i got it into the table but i cant check the box...
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Jul 28, 2015 8:47 pm    Post subject: Reply with quote

Now you need to attach Cheat Engine to the game process.
Back to top
View user's profile Send private message
skyz888
Newbie cheater
Reputation: 0

Joined: 28 Jul 2015
Posts: 16

PostPosted: Tue Jul 28, 2015 9:04 pm    Post subject: Reply with quote

Zanzer wrote:
Now you need to attach Cheat Engine to the game process.


alrdy did.

but cant tick the checkbox still


before this i used the script without the top part and it works but i did it in

ctrl alt a

paste

click execute
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Tue Jul 28, 2015 9:26 pm    Post subject: Reply with quote

Wonder if it's because CE thinks the cheat is already enabled.
Change the 1 in:
Code:
<LastState Activated="1"/>

...to a 0:
Code:
<LastState Activated="0"/>

And paste it again.

Anyway, instead of clicking Execute like you were doing originally,
you should've clicked File > Assign to current cheat table.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Jul 29, 2015 2:37 am    Post subject: Reply with quote

laststate is for debug only, ce doesn't read it

have you opened the process named "Skyforge.exe" or something else?

_________________
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
skyz888
Newbie cheater
Reputation: 0

Joined: 28 Jul 2015
Posts: 16

PostPosted: Tue Aug 04, 2015 11:08 am    Post subject: Reply with quote

manage to get the script to input into table and use per normal...


next issue i have is the game has updated..


is there a way i can update the script myself with just having the old script as information ?
Back to top
View user's profile Send private message
CEForumMember
Expert Cheater
Reputation: 4

Joined: 06 Jul 2015
Posts: 110

PostPosted: Tue Aug 04, 2015 2:17 pm    Post subject: Reply with quote

Script is searching for specific memory location where the instructions are given in the game and it modifies them to your liking.
An easier way to generate script for any of your game or program is to search for the intended value, find out what writes there and create a script using auto assemble.
I would suggest you go through the first and second link in my signature to get familiarize with CE and start creating your own scripts.

_________________
Back to top
View user's profile Send private message
skyz888
Newbie cheater
Reputation: 0

Joined: 28 Jul 2015
Posts: 16

PostPosted: Tue Aug 04, 2015 7:32 pm    Post subject: Reply with quote

CreeperWorld3Arc wrote:
Script is searching for specific memory location where the instructions are given in the game and it modifies them to your liking.
An easier way to generate script for any of your game or program is to search for the intended value, find out what writes there and create a script using auto assemble.
I would suggest you go through the first and second link in my signature to get familiarize with CE and start creating your own scripts.


so in that case does it mean that i can update the script myself with just having the outdated script?


i used to hack in another game and i remember if i have the array of bytes i can update the script myself.. but i looked through this script and i cant find that
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
Goto page 1, 2  Next
Page 1 of 2

 
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