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 


Trying to find particularly tricky instruction, out of ideas

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

Joined: 30 Nov 2015
Posts: 2

PostPosted: Mon Nov 30, 2015 9:56 pm    Post subject: Trying to find particularly tricky instruction, out of ideas Reply with quote

Hi there, I am trying to find the instruction in Company of Heroes (New Steam Version) that toggles enemy units through the fog of war. I am brand new to CE (completed the tutorial, watched a few videos and read a little around here) so I am probably doing things very wrong, but I am incredibly frustrated and at a dead end.

I'm trying to do a value search whilst enemy units are revealed through FoW. I start with an unknown initial value, get enemy units to be revealed in the FoW and search increased value - when they are no longer revealed, I do decreased value - rinse and repeat. I have gone through this process multiple times getting down to 10-15 addresses each time, but none of them are ever correct, so I must be making a misstep somewhere. I have also tried starting w/ unknown initial value, then searching decreased when revealed, increased when not etc. in case the instruction behaves like that, but I doubt it does as there's an old hack that used to work (before steam version) which shows that the value is increased when units are revealed. There's a thread for that old hack on another site that actually shows the instruction that used to work, and I would link that here but I'm not sure that's allowed. I'm sure this is actually very simple for someone that understand CE better than I do, but it's driving me insane as I know the pieces are right in front of me I just can't put them together! I'm just left scratching my head trying to figure out how the instruction was found in the first place.

Any help at all would be greatly appreciated, and I'd be happy to better explain myself/what I'm trying to do if need be.


Last edited by SinuousSnake on Tue Dec 01, 2015 7:25 am; edited 1 time in total
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue Dec 01, 2015 4:12 am    Post subject: Reply with quote

Instead of increased/decreased, do changed, then do some unchanged scans while the status is still the same to filter out other junk.
_________________
Back to top
View user's profile Send private message
SinuousSnake
How do I cheat?
Reputation: 0

Joined: 30 Nov 2015
Posts: 2

PostPosted: Thu Dec 03, 2015 9:35 am    Post subject: Reply with quote

Thanks Rydian, using changed/unchanged has definitely helped in cutting down the results significantly faster. I've still not been able to find the correct value, as 3 or 4 times now I have gotten it down to 20-25 results, and two different problems have come up. The first two times I'd gotten it down this far, as I went through the various possible addresses changing the values to test which toggles units through FoW, I'd changed something that caused the game to crash and thus lost all of my progress. The other times I'd gotten that far, I inexplicably got to a point where all 25 results disappeared when I scanned for changed value the final time - obviously in that case I had made a mistake somewhere, but I'm not sure where because I never scanned for changed if I hadn't gone from units not revealed in FoW to revealed, and I never scanned unchanged if vice versa. It's incredibly frustrating because each time I try this it takes a good hour+, am not really sure what mistakes I am making and as a result I never feel any closer to figuring this out.

Also, as previously mentioned there is an old hack that used to work, and from a certain thread on another site I've discovered the on/off values for the instruction in the old hack - it was 256 for units in FoW off, and 257 for units in FoW on. Could I find the current instruction by searching for those exact values, or would the values have changed with the various patches since that old hack last worked? I have tried searching for those exact values briefly, but for some bizarre reason they turn up several results where the value is 0 (I am searching all value types, so it's not that.) Very confusing.

Also from that same thread, the old instruction for what I am looking for was:


Code:
WW2Mod.std::_Mutex::_Mutex+7279 - 88 81 AC040000 - mov [ecx+000004AC],al


Any way I could use this to find the current instruction at all?

Regardless, I very much appreciate the help! Any other red flags in what I am doing wrong you can see, and would like to point out would also be greatly appreciated, as I'd really like to get this figured out!
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Thu Dec 03, 2015 11:03 am    Post subject: Reply with quote

When dealing with units in an RTS, it can be helpful to work your way backwards through the address list, trying the highest ones first (as the first/lower addresses will usually be engine things, while stuff allocated last/lowest will be temporary/new things like unit data).

Also what type have you scanned for? Generally I'd think visibility would be a byte value but it could be in a bitfield or a float for a gradient or something.

256/257 sounds like 0/1 in a different way for me, but I don't have experience with the game.

"_Mutex+7279" isn't going to help unfortunately, it's a bunch of crap in a single massive function so it won't get you close to it.

However "88 81 AC040000" may work. You can try to search for Array of Byte and type that in and see if it gets any results. You may need to uncheck "writable" for the scan.

_________________
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu Dec 03, 2015 5:00 pm    Post subject: Reply with quote

Company of heroes is built on the dawn of war engine, and I remember that for dawn of war some of my colleagues hacked the FoW on/off variable in replay mode, somehow their hack also affected normal gameplay mode.
See if you can do something like that in CoH.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
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