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 

Supreme Commander 2
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Tables
View previous topic :: View next topic  
Author Message
Geri
Master Cheater
Reputation: 11

Joined: 05 Feb 2010
Posts: 337

PostPosted: Thu Jul 29, 2010 7:40 pm    Post subject: Re: Supreme Commander 2 Reply with quote

Geri wrote:

4. God Mode

NOTE: It will make Your and Your allies units invincible.
God Mode will also give You an "instant build" cheat as a side effect.


This is because my god mode option will write the friendly units health to full and so they will be ready immediately.

Your units/buildings will be built when they have reached full health.

_________________
My trainers and flash game cheat hints can be found on Személyes Integráció http://www.szemelyesintegracio.hu/cheats

If You are interested in any of my crappy articles/tutorials about CE and game hacking, You can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles
Back to top
View user's profile Send private message
encover
How do I cheat?
Reputation: 0

Joined: 29 Jul 2010
Posts: 3

PostPosted: Fri Jul 30, 2010 12:49 am    Post subject: Reply with quote

No, what I was trying to ask was is how to get the script to have an instant build option, but with out the God Mode attached? It seems Mop has been able to do it but I am wondering what method I might be able to use to obtain it. By the way, can you show me your method for finding god mode in this game?
Back to top
View user's profile Send private message
Geri
Master Cheater
Reputation: 11

Joined: 05 Feb 2010
Posts: 337

PostPosted: Fri Jul 30, 2010 6:07 am    Post subject: Reply with quote

I know You were asking for instant build only, but I did not bother with it when I have made my cheats. So all I know about the building process is that if You build something and it is reaching full health, it will be ready. I do not know where could be the building timer, if there is any at all.

Well that is all the info I have for making an "instant build" option, and I do not even have the game anymore on my comp and most likely I will NEVER install it again. It was a huge dissappointment for me (unlike the first game and the expansion which is awesome).

Making a God Mode cheat was easy for this game. The health of the units and buildings is Float type value, so You can easily find a unit's health.
Then I have checked the code which is writing to the health and it was

movss [esi+0000008c],xmm2

This code is used for the computer players units too of course.
Then the next step was to observe the data around the health of some units. Of course I used the "data dissection" option in CE. I have observed the data for enemy units and for my own units and here is what I have found:

The max health of the unit is right after the actual health.
And there is a player ID for the units too a bit further in the data structure.
The exact locations are:
[esi+0000008c] health
[esi+00000090] max health
[esi+00000148] player ID

If the player ID = 2, it means that the unit is friendly unit. That was enough to write a script which is checking the player ID and if the unit is friendly, change the actual health to its max health, thus giving max health to the unints if the health is changed.

As a side effect, as the units got max health instantly, they have been built instantly too, which was good for me, I did not have to mess with instant build too, was good enough for me.

I have made it a bit more complicated with the instant kill cheat, because in that case, the health is changed to 0 only if the health is decreasing and it is unchanged for increasing values. So if something is built, it will be built normally but if something is taking damage, it will be destroyed immediately.

You could think about reversing this effect, so increasing values will be maxed out, but this would also give You god mode, because all units are gaining health constantly in this game.

Building timers are not always decreasing values, they can be increasing values too. Actually they are increasing values in most of the startegy games that I have played. They can be 4 byte or Float values too so try experimenting with them if You want.
In some games (like Generals Zero Hour, Armies of Exigo) the timer for buildings is showing how much percent is complete from the building. So it starts from 0 and going until 100. The units on the other hand are different from building, for eg. in Exigo it looks like this:
Swordsman takes 30 seconds to be built. The timer for this is a float value and when it has reached 30000 , the unit is ready. So every second is counted as 1000 for the timer.

It is usual in other games too, but with a different multiplier. Like in Generals ZH, the multiplier is 60. The ranger can be built in 5 seconds, so if the timer (which is a 4 byte value) is reaching 300, the ranger will be ready.

I guess You see from these examples that the timer is different in almost every game so You need to be a bit creative to find them.

_________________
My trainers and flash game cheat hints can be found on Személyes Integráció http://www.szemelyesintegracio.hu/cheats

If You are interested in any of my crappy articles/tutorials about CE and game hacking, You can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles
Back to top
View user's profile Send private message
encover
How do I cheat?
Reputation: 0

Joined: 29 Jul 2010
Posts: 3

PostPosted: Fri Jul 30, 2010 3:55 pm    Post subject: Reply with quote

Ya, I know what you mean, I have SupCom FA and it is great, though I tend to look at SupCom 2 as a different game. And thanks for helping me geri.
Back to top
View user's profile Send private message
Geri
Master Cheater
Reputation: 11

Joined: 05 Feb 2010
Posts: 337

PostPosted: Fri Jul 30, 2010 3:59 pm    Post subject: Reply with quote

You are welcome, good luck for the trainer making.
_________________
My trainers and flash game cheat hints can be found on Személyes Integráció http://www.szemelyesintegracio.hu/cheats

If You are interested in any of my crappy articles/tutorials about CE and game hacking, You can find them here:
http://www.szemelyesintegracio.hu/cheats/41-game-hacking-articles
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Tables All times are GMT - 6 Hours
Goto page Previous  1, 2
Page 2 of 2

 
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