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 Needed - Autoassebler script crashes game

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  

Are Newbies a waste of your time?
YES!!!
20%
 20%  [ 1 ]
NO!!!
0%
 0%  [ 0 ]
We where all newbies once.
80%
 80%  [ 4 ]
Total Votes : 5

Author Message
sired22
Cheater
Reputation: 1

Joined: 22 Aug 2006
Posts: 36

PostPosted: Thu Sep 21, 2006 8:20 am    Post subject: Help Needed - Autoassebler script crashes game Reply with quote

I was wondering if i could get some help. I'm new to auto assemble scripts and was wondering why this isn't working. Basically I'm trying to cheat at a game and make a quick level up cheat by adding to the exp given every battle. i found the address holding my exp with no problems. the trouble I'm having is the code that writes to it also writes to other things as well. My script follows

Code:

alloc(newmem,2048) //2kb should be enough
label(returnhere)
label(originalcode)
label(exit)

00425924:
jmp newmem
nop
nop
returnhere:

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

//Check to see if its players exp its writing to
cmp ebp,41A8
//Jump if its not
jne originalcode
//If your here its the players so add something high to it
add ebx,1770

originalcode:
mov [ebp+eax+00],ebx
add esp,0c

exit:
jmp returnhere



From reading around the forums i understand that i need a check of some type. Ebp is always 41a8 when writing to my exp so that does nicely. Now from what i understand and that the assembler doesn't give me an error is that the code should work.

The problem is that it always crashes when i try to inject it. In fact even the black template with nothing written in it causes it to just crash. I even tried using a code cave of the same size and it still crashes.

Like i said I'm new and am using this to learn about code injection
the program I'm using to learn from is visualboy (That and the cheat function in it is crap)

I'm not asking you to completely remake the script and post the fix (though i wouldn't complain if you did). i just need to be pointed in the right direction.

Thank you for your time community
Back to top
View user's profile Send private message Yahoo Messenger
Glest
Master Cheater
Reputation: 0

Joined: 12 Jul 2006
Posts: 334
Location: The Netherlands

PostPosted: Thu Sep 21, 2006 9:43 am    Post subject: Reply with quote

sounds like some sort of protection. What game is it?
_________________
Keyboard Piano
www.keyboard-piano.com

Reprograming in C++
Computer Piano
*Not done yet*
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Thu Sep 21, 2006 11:10 am    Post subject: Reply with quote

Check that there is nowhere a jump that goes between 00425924 and 0042592b , if there is it'll crash on a broken jmp.

add esp,0c looks like a instruction that might be jumped to directly if a previous compare caused a different result (e.g exit of a function)

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
sired22
Cheater
Reputation: 1

Joined: 22 Aug 2006
Posts: 36

PostPosted: Thu Sep 21, 2006 2:26 pm    Post subject: Thanks Reply with quote

Thanks for the help. i will try and do what you said.

As for the game because i am still learning i have decided to use visualboy for different reasons. The main ones are that if it crashes i can easly restart it. i can save states so i can restore my spot in the game with out having to wait for loads. and the most important reason is that the built in cheat functions just plain suck. Smile

I thought i should also mention that even a blank templet with nothing in it causes the game to crash. the following is whats at 00425924

00425906 - pop ebp
00425907 - ret
00425908 - and ebp,00007ffc
0042590e - mov eax,[cximagejpg::`vftable'+17ef4]
00425913 - mov [ebp+eax+00],ebx
00425917 - jmp 00425928
00425919 - and ebp,0003fffc
0042591f - mov eax,[cximagejpg::`vftable'+17ef0]
00425924 - mov [ebp+eax+00],ebx
00425928 - add esp,0c
0042592b - pop ebx
0042592c - pop ebp
0042592d - ret mov esi,esi
0042592e - sub esp,0c
00425930 - mov edx,[esp+10]
00425933 - mov eax,edx

A picture of it is at the following if you need it
xs106.xs.to/xs106/06384/Memory.gif


Last edited by sired22 on Thu Sep 21, 2006 3:04 pm; edited 2 times in total
Back to top
View user's profile Send private message Yahoo Messenger
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Thu Sep 21, 2006 2:44 pm    Post subject: Reply with quote

oh, autoassembler scripts will not work on visualboy.
you are editing the memory of the emulator, not the game itself, and that code is also used for a lot of different stuff that has nothing to do with it.

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
sired22
Cheater
Reputation: 1

Joined: 22 Aug 2006
Posts: 36

PostPosted: Thu Sep 21, 2006 2:58 pm    Post subject: Thank you Reply with quote

okay thank you for the VERY fast reply. looks like i will have to use something different if i want to use/learn to use autoassemble.
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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