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 


CoH Found something for Instant Build but what now?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
MaZy
Newbie cheater
Reputation: 0

Joined: 19 Jun 2008
Posts: 10

PostPosted: Mon Sep 26, 2011 12:22 pm    Post subject: CoH Found something for Instant Build but what now? Reply with quote

Hi guys,
I was looking for the instant build adress and I found something. Well now, I have to look in my codelist and read with "Find out what addresses this code reads from". Then I can see adress of the timer (cooldown) when is unit finished.

Memory Viewer shows this:
Quote:
5D0753DE - d9 5c 24 14 - fstp dword ptr [esp+14]
5D0753E2 - d9 45 2c - fld dword ptr [ebp+2c]
5D0753E5 - d9 44 24 14 - fld dword ptr [esp+14]
5D0753E9 - d9 c0 - fld st(0)
5D0753EB - de ea - fsubp st(2),st(0)
5D0753ED - d9 c9 - fxch st(1)
5D0753EF - d9 5d 2c - fstp dword ptr [ebp+2c] ; << This is it where it begins
5D0753F2 - d9 ee - fldz
5D0753F4 - d9 c0 - fld st(0)
5D0753F6 - dd ea - fucomp st(10)


My goal is to "nop" or change something that I can build without looking for address, because like you know the address are from buildings to buildings not same. But I don't know continue. The all fstp, fldz, everything is new for me. ( Am also not pro at this Razz) fsubp is looks like substract.. but thats all.. :S

Game: Company of Heroes: Opposing Fronts

Maybe you can help me continue this ? :S
Back to top
View user's profile Send private message
mibiz
Cheater
Reputation: 0

Joined: 14 Jun 2009
Posts: 31

PostPosted: Mon Sep 26, 2011 11:47 pm    Post subject: Re: CoH Found something for Instant Build but what now? Reply with quote

MaZy wrote:
Hi guys,
I was looking for the instant build adress and I found something. Well now, I have to look in my codelist and read with "Find out what addresses this code reads from". Then I can see adress of the timer (cooldown) when is unit finished.

Memory Viewer shows this:
Quote:
5D0753DE - d9 5c 24 14 - fstp dword ptr [esp+14]
5D0753E2 - d9 45 2c - fld dword ptr [ebp+2c]
5D0753E5 - d9 44 24 14 - fld dword ptr [esp+14]
5D0753E9 - d9 c0 - fld st(0)
5D0753EB - de ea - fsubp st(2),st(0)
5D0753ED - d9 c9 - fxch st(1)
5D0753EF - d9 5d 2c - fstp dword ptr [ebp+2c] ; << This is it where it begins
5D0753F2 - d9 ee - fldz
5D0753F4 - d9 c0 - fld st(0)
5D0753F6 - dd ea - fucomp st(10)


My goal is to "nop" or change something that I can build without looking for address, because like you know the address are from buildings to buildings not same. But I don't know continue. The all fstp, fldz, everything is new for me. ( Am also not pro at this Razz) fsubp is looks like substract.. but thats all.. :S

Game: Company of Heroes: Opposing Fronts

Maybe you can help me continue this ? :S

'nop'ing is not a really good idea as it may lead to infinite build time. Some games look at the 'HP' while others may have a separate timer for the building of units/structures. What you want is change the code so that it reaches the final value instantly.

fld = load floating point value from the current pointer position in the floating point register stack to said location
fstp = store floating point value at said location ... in the case of fstp st(0), it means to clear the value at floating point register stack location 0. In your code, it means to store the value of the current floating point register pointer to the address location dword ptr [ebp+2c].

Right click on the code 5D0753EF - d9 5d 2c - fstp dword ptr [ebp+2c] and click on 'What addresses this code writes to' When CE finds the addresses, look at each address and check the registers' (including floating point) values. If it matches what you're looking for, you can then begin to filter out player vs AI as I doubt you'll want the AI to have instant build too.

NOTE: Some games such as Empire Earth III, god mode and instant structure build is the same code because it looks at the % of HP. Making that % 100 gives instant structure build and god mode for units and structures.
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