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 


Please help me with my little AAscript.

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Sun Mar 24, 2013 12:43 am    Post subject: Please help me with my little AAscript. Reply with quote

I got some problem game crash when I want to change value of adress 0070ca68 to 4 by AAscript.
Normally,I was successfully in Lua by using writeBytes('0070ca68',0x4) but AAScript.
Code:
newmem: //this is allocated memory, you have read,write,execute access
//place your code here
push edx
mov dl,2
mov [0070ca68],dl   // error this line , got game crash..
pop edx

originalcode:
push ebp                 //initial address for the function.
mov ebp,esp
push ecx
mov [ebp-04],ecx

exit:
jmp returnhere

what I try to do is to change the value in [0070ca68] to 4 whenever the function is called.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 457

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

PostPosted: Sun Mar 24, 2013 4:23 am    Post subject: Reply with quote

Is 0070ca68 writable?
If not, add fullaccess(70ca68,4) to the top of your script

_________________
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
happyreadygo
Advanced Cheater
Reputation: 1

Joined: 14 Sep 2011
Posts: 87

PostPosted: Sun Mar 24, 2013 4:43 am    Post subject: Reply with quote

Dark Byte wrote:
Is 0070ca68 writable?
If not, add fullaccess(70ca68,4) to the top of your script


it shoulds be writeable because I was using writeBytes('0070ca68',0x4) before and it works.

more info: the game's address starting at 00400000 and the module (d3d8.dll) that got the function here is starting at 10000000.

How to add fullaccess(70ca68,4) ?
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