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 


Confusing Value in Assembly Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Soul Sojourner
How do I cheat?
Reputation: 0

Joined: 09 Jan 2010
Posts: 3

PostPosted: Sat Jan 09, 2010 11:42 pm    Post subject: Confusing Value in Assembly Script Reply with quote

I'm currently hacking Spore Galactic Adventures (latest version) and am currently working on making badges unlock in space mode.

I've got a bunch of badges that unlock flawlessly so far. However, I ran into a snag today when I tried to use the same method I used for all the other badges, on the frequent flyer badge.

What I've been doing is using code injection and making an assembly cheat. So far, they've all worked. I've just been adding values into eax. On this one however, I knew the max value was 1500(dec), I converted it into hex and got 5DC(hex) and added that into eax like I did with all the others. (only those had different values)

However, in game it would just turn the value to 0 instead. So I tried putting 1500(dec) and it also made it 0. I tried 1F4(hex) which is 500(dec), but it simply changed the value to 32 (original value was at 2). I also tried putting in a value such as 1.4, and it told me it was an invalid instruction or some such. So I couldn't. Finally I decided to go with a really low value and put in 12. 12 completely maxed it out at 1,500 and unlocked all the badges. I'm not sure what the value in game would have been if it didn't max out at 1,500. Technically my problem is solved and I don't need to make any changes to the script. As it is, it works.

However, I want to know why this happened and was wondering if anyone knew. This way I can learn from it and know what to do in the future.

Anyone have an idea?
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