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 


Suddenly a wild Crying post appeared! Dark Byte :D

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Fri Apr 04, 2014 12:17 pm    Post subject: Suddenly a wild Crying post appeared! Dark Byte :D Reply with quote

Request for Dark Byte
------------------------------------------------------------------------
could you maybe add a sound effect to cheats that have been checked.
for example. if i press the hotkey for unlimited Mana and checkbox gets checked, a sound will be played Activated and if uncheck deactivated

its pretty annoying to alt tab out and ind just to see if they have been activated

also maybe add a Aobscan option in auto assem.. for a single address like you do with code injection

for example when i use the aobscan option i get a pop up window with 2 textboxes one for label the other for the aobscan name

like aobscan(name_texboxcontent, 00 00 00 00 00) Very Happy
------------------------------------------------------------------------

one more thing Very Happy

this code somehow increase money with the amount i sell item for so i thought can i use it to set my money value to 9999999?

fstp dword ptr [esi+2C] lol wth does this even mean?

Original Code
05C39600 - D9 5E 2C - fstp dword ptr [esi+2C]
05C39603 - E8 B8CDCB07 - call 0D8F63C0
05C39608 - 89 45 E8 - mov [ebp-18],eax

Ps. Sorry for my bad english i hope you can make some sense out of it Very Happy
Back to top
View user's profile Send private message
omoe
Grandmaster Cheater
Reputation: 8

Joined: 11 Jun 2013
Posts: 547

PostPosted: Sun Apr 06, 2014 10:09 am    Post subject: Reply with quote

About the sound when activating a cheat i think mgr.inz.Player has a post about it ,
About aobscan the found address of the pattern must be stored in a label so you can do further stuff with it.
To get the money simple mov the 9999999 to the pointer ,
Original Code
mov [esi+2C] ,(float)9999999
05C39600 - D9 5E 2C - fstp dword ptr [esi+2C]
05C39603 - E8 B8CDCB07 - call 0D8F63C0
05C39608 - 89 45 E8 - mov [ebp-18],eax

_________________
Hey! , Rep++ .
Back to top
View user's profile Send private message
DDS
Expert Cheater
Reputation: 3

Joined: 10 Feb 2011
Posts: 112
Location: Bill's Planet

PostPosted: Sun Apr 06, 2014 10:25 am    Post subject: Reply with quote

omoe wrote:
To get the money simple mov the 9999999 to the pointer, Original Code
mov [esi+2C] ,(float)9999999
05C39600 - D9 5E 2C - fstp dword ptr [esi+2C]
05C39603 - E8 B8CDCB07 - call 0D8F63C0
05C39608 - 89 45 E8 - mov [ebp-18],eax


Your example is not going to work because the instruction fstp dword ptr [esi+2C] is going to rewrite the new value with the value stored on top of the FPU stack.

_________________
elDarkDragonSlayer
Back to top
View user's profile Send private message Visit poster's website
danrevella
Master Cheater
Reputation: 2

Joined: 11 Jun 2008
Posts: 290

PostPosted: Sun Apr 06, 2014 10:38 am    Post subject: Reply with quote

elDDS wrote:

Your example is not going to work because the instruction fstp dword ptr [esi+2C] is going to rewrite the new value with the value stored on top of the FPU stack.

Ok, but how is the right instruction?
Back to top
View user's profile Send private message
DDS
Expert Cheater
Reputation: 3

Joined: 10 Feb 2011
Posts: 112
Location: Bill's Planet

PostPosted: Sun Apr 06, 2014 11:35 am    Post subject: Reply with quote

danrevella wrote:

Ok, but how is the right instruction?


Im not going to spoonfeed him with opcodes that he is not going to understand.

All he got to do is the fallowing.

1: pop the old value off the fpu stack

2: move the new value into the address that he wants to change

3: load the new value ontop of the FPU stack

4: fstp dword ptr [esi+2C] // ::: Very Happy Store the new value into dword ptr [esi+2C] and pop it from the top of the FPU stack.

Here is more info on floating-point instructions: http://en.wikipedia.org/wiki/X86_instruction_listings#x87_floating-point_instructions

_________________
elDarkDragonSlayer
Back to top
View user's profile Send private message Visit poster's website
omoe
Grandmaster Cheater
Reputation: 8

Joined: 11 Jun 2013
Posts: 547

PostPosted: Sun Apr 06, 2014 12:32 pm    Post subject: Reply with quote

elDDS wrote:
danrevella wrote:

Ok, but how is the right instruction?


Im not going to spoonfeed him with opcodes that he is not going to understand.

All he got to do is the fallowing.

1: pop the old value off the fpu stack

2: move the new value into the address that he wants to change

3: load the new value ontop of the FPU stack

4: fstp dword ptr [esi+2C] // ::: Very Happy Store the new value into dword ptr [esi+2C] and pop it from the top of the FPU stack.

Here is more info on floating-point instructions: http://en.wikipedia.org/wiki/X86_instruction_listings#x87_floating-point_instructions

something like this?
fstp dword ptr[oldfloat]
fld dword ptr[newfloat]
fstp dword ptr [esi+2c]

oldfloat:
dd 0
newfloat:
dd (float)9999999

_________________
Hey! , Rep++ .
Back to top
View user's profile Send private message
STN
I post too much
Reputation: 42

Joined: 09 Nov 2005
Posts: 2672

PostPosted: Sun Apr 06, 2014 1:21 pm    Post subject: Reply with quote

omoe wrote:
About the sound when activating a cheat i think mgr.inz.Player has a post about it ,
About aobscan the found address of the pattern must be stored in a label so you can do further stuff with it.
To get the money simple mov the 9999999 to the pointer ,
Original Code
mov [esi+2C] ,(float)9999999
05C39600 - D9 5E 2C - fstp dword ptr [esi+2C]
05C39603 - E8 B8CDCB07 - call 0D8F63C0
05C39608 - 89 45 E8 - mov [ebp-18],eax


You should just restrict yourself to ripping other trainers as that is what you do best instead of giving advice as you are clearly incompetent at that. Just pathetic

@NanoByte: just above or a few bytes above
05C39600 - D9 5E 2C - fstp dword ptr [esi+2C]

you should see a fld instruction, that is the best way to change the value as the fld will load your value. However, for whatever reason that is not possible, these are valid solutions

fstp dword ptr [esi+2C]
mov [esi+2C], (float)9999999999999999999(your desired money amount)
fld [esi+2C] - optional but might be needed for some games
fstp [esi+2C] - optional but might be needed for some games

Or
fstp(st0)
mov [esi+2C], (float)9999(your desired money amount)
fld [esi+2C]
fstp [esi+2C]

All valid solutions without the need of allocating any new memory. If you know the values in fpu stack, you can modify them instead with fpu instructions so fstp [esi+2C] will write your desired value. This does require knowledge of how fpu stack and few fp instructions (not that hard, just google for fpu instructions)

FSTP instruction copies value from top of current fpu stack to the destination and pops the stack. We need to pop the value first then load our desired value and finally "pop it to our destination (esi+2c)" because otherwise there will be imbalance in fpu stack and game will crash.

DDS is correct as well though he didn't provide any example.

Quote:
this code somehow increase money with the amount i sell item for so i thought can i use it to set my money value to 9999999?


Like i said, there should be a fld and most likely a fadd instruction that increases your value. You should use the mov instruction right before the fld instruction and you won't need to pop the old value. OR you can modify the fadd to add 9999999 (you might not need code injection for this if you like doing it the dirty way).

_________________
Cheat Requests/Tables- Fearless Cheat Engine
https://fearlessrevolution.com
Back to top
View user's profile Send private message
NanoByte
Expert Cheater
Reputation: 1

Joined: 13 Sep 2013
Posts: 222

PostPosted: Sun Apr 06, 2014 1:23 pm    Post subject: :D Reply with quote

Wow thx guys Very Happy

I'm gonna try to follow them instructions Very Happy
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