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 


Finding hard to find team flags

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
sandsmaster
Newbie cheater
Reputation: 1

Joined: 21 Jan 2021
Posts: 24

PostPosted: Sun Sep 26, 2021 5:12 pm    Post subject: Finding hard to find team flags Reply with quote

Hello to everyone!

In this thread, I'm trying to find a way to the team flag for "8-bit Armies".
I noticed this in "Realpolitiks 2" and "Age of Empires" also, however
here's how I typically go about finding this flag:


    - I find the health of a building
    - I find out what acceses this address and the instruction for damage
    - I find out what addresses are accessed by this instruction
    - I take a few values and find out which is mine and which isn't in-game
    - A quick check of the registers for diffs
    - find commonalities / dissect structure or both
    - check of the stack for differences
    - and testing / repeat


Unfortunately it works for some games, but rarely for strategic ones. I think that since all the teams go through the same function, the same way, (e.g. the takeDamage() function takes just current health and damage) they don't have the team flag overall, because it's not needed to apply the damage to the building.
Weird thing is, that I couldn't find it in the stack either though. These functions will need to know something to know where to apply, but I think that's the player # in the list of players on the map, but not the team flag

But that's just a theory. I read a guy had some problem with that same thing in "Realpolitiks 2" and he found a function called IsFriendlyPlayer() (might not be exactl name) and that's how he distinguished allies and enemies. Unfortunately I'm not sure how to go about that. I'd be happy to get help and return the favour, if I can.

P.S.: I did my best with formatting, so it's easy to read Very Happy
Cheers!

_________________
I don't post too much. yet.
Back to top
View user's profile Send private message Send e-mail
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