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 


[ASM] help

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

Joined: 24 May 2007
Posts: 215

PostPosted: Mon Jul 07, 2014 3:13 pm    Post subject: [ASM] help Reply with quote

Code:

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

arb:
dd 0
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [arb],esi
jmp "VanHelsing_x86.exe"+11FEA3
cmp esi,esi
je originalcode
mov [esi+0000034C],0
jmp returnhere

originalcode:
fsub dword ptr [esi+0000034C]

exit:
jmp returnhere

"VanHelsing_x86.exe"+121D3A:
jmp newmem
nop
returnhere:


 
 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"VanHelsing_x86.exe"+121D3A:
fsub dword ptr [esi+0000034C]
//Alt: db D8 A6 4C 03 00 00

Im trying to jmp and compare esi from 1 place to another, how come my script wont enable in cheat engine?
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Mon Jul 07, 2014 3:29 pm    Post subject: Reply with quote

Are you attached to the game ?

Also
arb:
dd 0

should be after exit like this
newmem+200:
arb:
dd 0

I have no idea what you are trying to do but this is pointless
cmp esi,esi
je originalcode

you might as well just write a jmp. Actually you have just above it and the compare never gets a chance to be executed.

Not really sure where you got the code from but its a mess.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Mon Jul 07, 2014 6:02 pm    Post subject: Reply with quote

Code:

arb:
dd 0
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
mov [arb],esi
jmp "VanHelsing_x86.exe"+11FEA3 // if just jump to some place it wil ignore alot of other code which could crash your game
cmp esi,esi // compare a value with itself ?(-_-)? == maybe cmp [arb],esi
je originalcode
mov [esi+0000034C],0
jmp returnhere


tell me what you trying to do, i have the game i think "the great adventures of van hellsing?" ill look into it my self Very Happy
Back to top
View user's profile Send private message
shakib187
Expert Cheater
Reputation: 0

Joined: 24 May 2007
Posts: 215

PostPosted: Tue Jul 08, 2014 8:52 am    Post subject: Reply with quote

I was trying to compare esi from one place with another, for the one hit ko cheat.

STN wrote:
Are you attached to the game ?
you might as well just write a jmp. Actually you have just above it and the compare never gets a chance to be executed.

Not really sure where you got the code from but its a mess.


I wish I wasn't so retarded
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 43

Joined: 09 Nov 2005
Posts: 2676

PostPosted: Tue Jul 08, 2014 9:29 am    Post subject: Reply with quote

shakib187 wrote:
I was trying to compare esi from one place with another, for the one hit ko cheat.

STN wrote:
Are you attached to the game ?
you might as well just write a jmp. Actually you have just above it and the compare never gets a chance to be executed.

Not really sure where you got the code from but its a mess.


I wish I wasn't so retarded


That doesn't make you retarded, everyone learns at their own pace.

I do suggest you read up on assembly again (look for dabhand's assembly tuts in the CE help file) and contact the poster above you (NanoByte) if he's willing to help as he said he has the game.

You aren't too far off from the target so shouldn't be too hard for you to learn what you're doing wrong.

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
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