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 address of unkown value

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

Joined: 07 Apr 2015
Posts: 5

PostPosted: Wed May 13, 2015 11:31 pm    Post subject: Finding address of unkown value Reply with quote

I would like to make a hack that allows me to attack faster in a RTS type game. Kind of like starcraft there is a bunch of different troops. Every unit has it's own base attack rate, for example one unit will attack maybe once every 2 seconds, the other once every 1.5 seconds (unkown exact value). I would like to increase that rate to once every second.

If I search initial value unknown but the value doesn't change for every unit, for some units you can upgrade once and the attack rate will slightly increase (still unknown by how much), so you can search for increased or decreased on the 2nd scan, but there's still millions of results.

The built in speed hack that comes with cheat engine does indeed make my units attack faster, but they also move faster (and not just me, everyone). The game clock also moves faster, so basically the game just moves faster.

I highly doubt that there is no way to do this and I probably just lack the knowledge, any help would be appreciated!
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Tue May 19, 2015 8:49 pm    Post subject: Reply with quote

Speedhack does make the whole program move faster (or slower), that's the point. It's not meant to be a "your unit's X game speed" hack.

Focus on a single unit. Is there a sort of timer that starts when they attack, counts down, and when it hits 0 they can attack again? A lot of games I've seen do something like this, and you can make a code edit so that the "cooldown" is always set to 0.1 seconds (instead of the unit's actual attack delay).

http://forum.cheatengine.org/viewtopic.php?t=570083

Though you'd need to learn more assembly to do checks in the custom code to make sure the edit is only done for your side and not the enemy side (the tutorial has something for this).

_________________
Back to top
View user's profile Send private message
Rapunzel
How do I cheat?
Reputation: 0

Joined: 18 May 2015
Posts: 4

PostPosted: Wed May 20, 2015 2:12 am    Post subject: Reply with quote

Well i think is perfectly doable, but i would like to know more about how the game handles that cold down.

It maybe has a gettickcount event that every time you successfully hit stores itself in a variable that afterwards the game compares with a new gettickcount that gets when you are trying to hit again. If the difference between this two is higher or equal to 2000ms then it lets you hit again. If this is the case you should be searching for a 4 bytes that increases every time you hit.

If the games stores each "unit hit time" value in an array you might be able to change it killing the unit and replacing it with a new one with a different "hit time" value.

You can also try using the Unchanged value option to narrow your results down and use the change value when you get the upgrade that lets you attack faster or trying to use the value between option (values are probably in MS so you should take that into account)

GL and keep posting if you find anything new Very Happy
Back to top
View user's profile Send private message
mattherat909
How do I cheat?
Reputation: 0

Joined: 07 Apr 2015
Posts: 5

PostPosted: Sat May 23, 2015 4:43 pm    Post subject: Reply with quote

Basically the units fall into a few different categories. For example, there are ~ 20 type of units, and they fall under 3-5 different classes (mage, swordman, archer etc). Most units of the same class have the same base attack speed of generally 1 attack every 2 seconds (based on the attack animation) but I know for a fact that it's not always the case and some units attack is slightly higher or different than the others of the same class. There is 1 upgrade that makes archers attack faster, and 1 upgrade that makes mages attack faster by roughly ~15%. You can only upgrade it once per game. There is no written values anywhere in the game (basically the upgrade says that it will make the mage type class attack faster). The attack animation becomes faster (can tell visually) once the upgrade is finished and that's all there is to it. I have no clue how to find the address for each class to then modify them and make them attack faster. Thanks for your feedback!
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