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 


Help with some editing table

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
sickbutt
Master Cheater
Reputation: 0

Joined: 08 Aug 2007
Posts: 283
Location: Between Infiniteh's silky smooth boobieS

PostPosted: Fri Dec 16, 2016 9:32 pm    Post subject: Help with some editing table Reply with quote

Code:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="14">
  <CheatEntries>
    <CheatEntry>
      <ID>2</ID>
      <Description>"Phase 1"</Description>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[ENABLE]
//code from here to '[DISABLE]' will be used to enable the cheat
alloc(copythread, 1024)
alloc(copydone, 4)
globalalloc(copy, 14942236)

registersymbol(copydone)

createthread(copythread)

copydone:
dd 0

copythread:
mov esi,00400000
mov edi, copy
mov ecx,(int)14942236
rep movsb //slow but works (hopyfully the symbol lookup works better in next version so I can use MoveMemory)

mov [copydone],1
ret

[DISABLE]
//No disabling
00000000:
nop
</AssemblerScript>
    </CheatEntry>
    <CheatEntry>
      <ID>4</ID>
      <Description>"Phase 2 (Tick after phase 1)"</Description>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[enable]
assert(copydone, 01)

alloc(newmem3,2048)
label(returnhere3)
label(originalcode3)
label(exit3)

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

originalcode3:
mov edi,[esp+14]
lea esp,[esp+00]

cmp edi,00400000
jb exit3

cmp edi,01240000
ja exit3

//still here
sub edi,00400000
add edi,copy

exit3:
jmp returnhere3

"ST.exe"+7EF928:
jmp newmem3
nop
nop
nop
returnhere3:

alloc(newmem1,2048)
label(returnhere1)
label(originalcode1)
label(exit1)

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

originalcode1:
mov edi,[esp+14]
lea esp,[esp+00]

cmp edi,00400000
jb exit1

cmp edi,01240000
ja exit1

//still here
sub edi,00400000
add edi,copy

exit1:
jmp returnhere1

"ST.exe"+59BE78:
jmp newmem1
nop
nop
nop
returnhere1:

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 edi,[esp+14]
lea esp,[esp+00]

cmp edi,00400000
jb exit

cmp edi,01240000
ja exit

//still here
sub edi,00400000
add edi,copy


exit:
jmp returnhere

"ST.exe"+8F5798:
jmp newmem
nop
nop
nop
returnhere:

[disable]
00000000: //no disable
nop
</AssemblerScript>
    </CheatEntry>
    <CheatEntry>
      <ID>5</ID>
      <Description>"god mode"</Description>
      <Color>80000008</Color>
      <VariableType>Auto Assembler Script</VariableType>
      <AssemblerScript>[enable]
"ST.exe"+7AC525:
mov al,1

[disable]
"ST.exe"+7AC525:
xor al,al

</AssemblerScript>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>


I wanna remove the single stage clear part and want to just have the 1 hit KO. What do I remove to make that happen?

PS - this is not a CODE I made but I just wanna edit it for that one thing.
Back to top
View user's profile Send private message
panraven
Grandmaster Cheater
Reputation: 62

Joined: 01 Oct 2008
Posts: 958

PostPosted: Fri Dec 16, 2016 10:10 pm    Post subject: Reply with quote

Copy all xml text and paste it in CE's lower white panel (Address List, where Cheat Entries located).
Then there should be 3 Chaeat Entries appeared, Phase 1, Phase 2 and god mode.

Phase 1, Phase 2 should be for disabling the game's integrity check, ie. Anti-anti-cheat, but not other effect.
It seem there is only a god-mode cheat in 3rd entry as title said, no stage clear or 1hk cheat?

_________________
- Retarded.
Back to top
View user's profile Send private message
sickbutt
Master Cheater
Reputation: 0

Joined: 08 Aug 2007
Posts: 283
Location: Between Infiniteh's silky smooth boobieS

PostPosted: Fri Dec 16, 2016 11:47 pm    Post subject: Reply with quote

panraven wrote:
Copy all xml text and paste it in CE's lower white panel (Address List, where Cheat Entries located).
Then there should be 3 Chaeat Entries appeared, Phase 1, Phase 2 and god mode.

Phase 1, Phase 2 should be for disabling the game's integrity check, ie. Anti-anti-cheat, but not other effect.
It seem there is only a god-mode cheat in 3rd entry as title said, no stage clear or 1hk cheat?


Hmm you are correct. When I do that I get the phase 1 and phase 2 and god modes entries. But the cheat table is a Infinite HP+1hitKO+InstaClearMode. Can the three be "nested" as one or something?

I think at this point it may just be easier to find the damage modifier myself and use that to apply max damage with one hit ^_^.

Thank you for the help.
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 Lua Scripting 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