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 stamina cheat

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

Joined: 10 Sep 2015
Posts: 82
Location: Greece

PostPosted: Sat Feb 13, 2016 3:11 pm    Post subject: help with stamina cheat Reply with quote

Hello guys ! For one more time i am asking your help. I am trying to cheat stamina on a game that i play. I found the address of the stamina, and here is the weird part. If i change it to 0. For example:

Code:
[ENABLE]

aobscan(INJECT,D9 5F 7C EB 0F) // should be unique
alloc(newmem,$1000)

label(code)
label(return)

newmem:

code:
  fstp dword ptr [edi+7C]
  mov [edi+7C],(Int)0
  jmp 0C7A0B77
  jmp return


Th stamina goes to 0 and the game is working perfect, but of course the value is 0, so i don't have stamina. Now, if i change the zero with 1 or 99 or everything... the game crashes. And now the super weird part. If i use the zero in the cheat table(the code that i mentined), then, when i press shift button(stamina) the stamina goes to 0. If i let it, it incrases again. I don't see that. Any idea what it happening here ??
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sat Feb 13, 2016 8:04 pm    Post subject: Reply with quote

Code:
mov [edi+7C],(float)99
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sat Feb 13, 2016 10:33 pm    Post subject: Reply with quote

0 in int and 0 in hex and 0 in float just happen to be the same thing. But not for other values.

For example 280 in float is 1133248512 as an integer. However like Zanzer showed you can tell CE it's a float and it'll convert for you.

_________________
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