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 


This script is correct, yet the game 'ignores' it...... :P

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

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Sat Jun 07, 2014 1:48 pm    Post subject: This script is correct, yet the game 'ignores' it...... :P Reply with quote

Hey, in the game "James Cameron's Avatar-The Game", I founded the value (float) of my ability points (which recharges after using an ability after some time) and viewed it in AutoAssembler. The code is....

Code:

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

newmem://blah-blah-blah
//Place your code here

originalcode:
fstp dword ptr [ecx]
fld dword ptr [eax+0C]

exit:
jmp returnhere

"Dunia.dll"+CFA3C4:
jmp newmem
returnhere:

 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Dunia.dll"+CFA3C4:
fstp dword ptr [ecx]
fld dword ptr [eax+0C]
//Alt: db D9 19 D9 40 0C


Now, it's obvious that [ecx] holds the amount of ability points. But no matter what I do (like
Code:
mov [ecx],20
, deleting
Code:
fstp dword ptr [ecx]
, etc, the value of the ability points keep on increasing normally, and not to full (20). What can I do??
Besides, what is the meaning of this ??--->
Code:

fstp dword ptr [ecx]
fld dword ptr [eax+0C]

_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
justa_dude
Grandmaster Cheater
Reputation: 23

Joined: 29 Jun 2010
Posts: 893

PostPosted: Sat Jun 07, 2014 2:12 pm    Post subject: Reply with quote

mov [ecx], (float) 20.0
fstp st(0)

or
fstp dword ptr [ecx]
mov [ecx], (float) 20.0

Don't delete the fstp unless you pop something else off the stack, or you can corrupt the logic of other code.

_________________
A nagy kapu mellett, mindig van egy kis kapu.
----------------------
Come on...
Back to top
View user's profile Send private message
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Sun Jun 08, 2014 4:08 am    Post subject: Reply with quote

It isn't working. The value of the ability recharges at he normal rate and it does not become full at one go(20.000). However, the ability display becomes dark.

I used your code...
Code:

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

newmem:
mov [ecx],(float)20.0
fstp st(0)

exit:
jmp returnhere

"Dunia.dll"+CFA3C4:
jmp newmem
returnhere:

 
[DISABLE]
//code from here till the end of the code will be used to disable the cheat
dealloc(newmem)
"Dunia.dll"+CFA3C4:
fstp dword ptr [ecx]
fld dword ptr [eax+0C]
//Alt: db D9 19 D9 40 0C
[/img]


Capture.JPG
 Description:
Ability HUD (After enabling the script)
 Filesize:  15.67 KB
 Viewed:  3813 Time(s)

Capture.JPG



_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sun Jun 08, 2014 4:09 am    Post subject: Reply with quote

before making a script (or pointers) make sure that the address you're changing actually has an effect in the game.

If you freeze the address at 20.0, will it work then ? If not, try finding a different address

_________________
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
Sohail__Saha
Advanced Cheater
Reputation: 0

Joined: 21 May 2014
Posts: 82
Location: India

PostPosted: Sun Jun 08, 2014 12:48 pm    Post subject: Reply with quote

Well, there is no other value then... Sad
_________________
Don't underestimate the power of a common code.
Laughing
Back to top
View user's profile Send private message Visit poster's website
Rissorr
Master Cheater
Reputation: 3

Joined: 17 Sep 2013
Posts: 273
Location: Israel!

PostPosted: Sun Jun 08, 2014 2:26 pm    Post subject: Reply with quote

Try doing:

Code:

...code...


newmem://blah-blah-blah
//Place your code here

fstp dword ptr [ecx]
mov [ecx], (float) 20.0
fld dword ptr [eax+0C]

originalcode:
//fstp dword ptr [ecx]
//fld dword ptr [eax+0C]


...code...


My recomendation: go to 'Dissect data/structures' and look for [ecx+0C] it could have something useful
Back to top
View user's profile Send private message
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