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 


Greed Corp - money hack help

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Kremnari
Newbie cheater
Reputation: 0

Joined: 25 Oct 2007
Posts: 20

PostPosted: Wed Dec 15, 2010 7:20 pm    Post subject: Greed Corp - money hack help Reply with quote

Yes, I know there is an unlimited money cheat out (thank you geri). This is more for a learning experience.

Background: The money comes from two sources; a simple turn based income (which I have found the value for) and a tile based generation (# of tiles * 2).

Goal: I want to find the "*2" instruction and be able to modify the "*2"

Thought process: I have located both the current money total and the turn based income. My thought was that between the two I could locate an instruction that would add the turn based and tile based values together then add them to the total.

I was unable to track the flow between the two.

I do know some assembly, but apparently not enough.

I have CE 5.6.1 and IDA Pro 5.5 with Hexrays 1.1


Any help (direction) would be greatly appreciated.
Kremnari

_________________
Peace in your Journeys
Kremnari
Back to top
View user's profile Send private message Send e-mail
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Wed Dec 15, 2010 11:02 pm    Post subject: Reply with quote

What You are trying to figure out is actually pretty hard in this game due to the coding of the program. If You still want to give it a go, I definitely advise to use CE 6 (even though it is in beta stage), because the debugger is more stable with this game with CE 6.

As for tracing back the code, You will have a hard time. The code which is reading the money is used very frequently. And both the reading and writing code is part of a small function that is only a few lines of codes. It will not be easy to trace it backwards, I am sure that the code is full of calls.

EDIT:
Maybe You can try to check "how many tiles are harvested" or "how much money do You get from harvesting". I don't know if they are saved on some memory address or calculated "on the fly" and appearing on a temporary address only. I would suggest to use a manual breakpoint on the code which is writing to the money and when You get cash at the start of the level, the game will stop. In this state, while the game is freezed, try to search for the values that I have mentioned. It may happen that You will find some temporary values only which will be thrown out a second later if You continue the game, but it may still be useful.

_________________
My trainers can be found here: 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

Don't request cheats or updates.
Back to top
View user's profile Send private message
Kremnari
Newbie cheater
Reputation: 0

Joined: 25 Oct 2007
Posts: 20

PostPosted: Thu Dec 23, 2010 2:09 pm    Post subject: Reply with quote

Thank you Geri! This was enough information that I was able to find what I was looking for.

Goto address 00401B4B, this points to the "02" (in a stack?) that is added each time a harvested tile is processed. I can change this to
Code:
add eax, num
and it would change the added value.

My question is now, how do I make a cheat out of this? Preferably by allowing the user to change the added value.

Thanks again!

_________________
Peace in your Journeys
Kremnari
Back to top
View user's profile Send private message Send e-mail
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Thu Dec 23, 2010 2:33 pm    Post subject: Reply with quote

00401B4B is probably a read-only static address. You could make a script which is changing this value, or just add it as a value to a table/trainer which can be changed, but that would probably mean that it would change for the enemy too.
As to make a player-sided cheat, I didn't look into this kind of cheat, but if You check my CE table, You see what did I use as player ID for the money.

_________________
My trainers can be found here: 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

Don't request cheats or updates.
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