View previous topic :: View next topic |
Author |
Message |
mattherat909 How do I cheat?
Reputation: 0
Joined: 07 Apr 2015 Posts: 5
|
Posted: Wed May 13, 2015 11:31 pm Post subject: Finding address of unkown value |
|
|
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 |
|
 |
Rydian Grandmaster Cheater Supreme
Reputation: 31
Joined: 17 Sep 2012 Posts: 1358
|
Posted: Tue May 19, 2015 8:49 pm Post subject: |
|
|
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 |
|
 |
Rapunzel How do I cheat?
Reputation: 0
Joined: 18 May 2015 Posts: 4
|
Posted: Wed May 20, 2015 2:12 am Post subject: |
|
|
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
|
|
Back to top |
|
 |
mattherat909 How do I cheat?
Reputation: 0
Joined: 07 Apr 2015 Posts: 5
|
Posted: Sat May 23, 2015 4:43 pm Post subject: |
|
|
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 |
|
 |
|