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 limit values

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

Joined: 04 Nov 2013
Posts: 4

PostPosted: Mon Nov 04, 2013 11:02 am    Post subject: Finding hard limit values Reply with quote

Hi there!

I'm trying to find a value in my game that never changes (right from the beginning to the end). I've, in fact, actually found this line of code in the game files; however, it cannot be edited without recompiling the game itself (SDK is not provided for it).

This code that I want to find is actually the so-called "hard limit". Let's say my gun can hold a maximum of 400 bullets. Or the maximum health I can have is 1000. I want to change the maximum value of the 400 bullets. Or, I want to change the maximum value of the 1000 health.

I'm fairly new to cheat engine, but I have figured out how to change values that can be manipulated easily. Thing is though, I find max values hard to find because they're unchanging.

Is there a tutorial for this? Or can someone point me in the right direction?

Thanks!
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Mon Nov 04, 2013 1:45 pm    Post subject: Reply with quote

Can you post the whole functions that implements those limits?

Aside that 2 things I'd try if I wanted to find such limits:
1-finding what writes my ammo/health and looking up the assembly code to see a comparison between my ammo and a constant, or a constant address.
2-getting max ammo/health, and finding what reads it when and only when I walk over a pickup, assuming you can't pickup ammo when you have 400 bullets.

I know it's vague, I could give more accurate tips if I had the function's code and/or the game.

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
MrStinky001
How do I cheat?
Reputation: 0

Joined: 04 Nov 2013
Posts: 4

PostPosted: Mon Nov 04, 2013 6:54 pm    Post subject: Reply with quote

Gniarf wrote:
Can you post the whole functions that implements those limits?

Aside that 2 things I'd try if I wanted to find such limits:
1-finding what writes my ammo/health and looking up the assembly code to see a comparison between my ammo and a constant, or a constant address.
2-getting max ammo/health, and finding what reads it when and only when I walk over a pickup, assuming you can't pickup ammo when you have 400 bullets.

I know it's vague, I could give more accurate tips if I had the function's code and/or the game.


Thanks for the reply!

Sorry that I wasn't very specific, but I'm trying to host a mini-games server with my friends on ______________. However, there is a "hard limit" on the number of Rex's that can spawn in 1 match. That "hard limit" is 3.

The game was made in Unreal Engine 3.

function OnRexSelect()
{
local PCPawnDino_TRex P;
local int RexCount;

if((((PC_Controller(Owner).GetTeamNum() == 1) && RexCount < 3) && !PC_Controller(Owner).bInQueue) && !PC_Controller(Owner).bIsPlayerSelectingClass)

The value I was interested in modifying is the "3" within "RexCount < 3".

I have tried the first method of scanning for the number of Rexes in the match and altering the count value, but it doesn't seem to work. So, I'm interested in trying to change the "hard limit", 3.

Sorry if it's not enough information. I had to cut out a lot of the code to allow my message to be posted.


Last edited by MrStinky001 on Tue Nov 05, 2013 2:12 pm; edited 1 time in total
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Tue Nov 05, 2013 1:33 am    Post subject: Reply with quote

Ack, unreal engine, more complicated than I expected. The tips I posted in my previous post will not work in your case (or for any limit that's defined in a script, no matter what scripting language).

Try to open your script in UE explorer, normally it should tell you at what offset of the unreal package your script start. Then go there and look for 03 00 00 00 (3 as a 4 byte integer) there will probably be several matches and you'll have to try them to find the right one.

And if UE explorer doesn't work, well, I guess you'll have to try every 3 of the file and redecompile it until the limit changes.

If it can help you, there should be a 1 before that 3, doing a wild UNreliable guess I'd say this 01 00 00 00 should be in the 20-32 bytes before the 3.

Tip: cheat engine can also do scans on files (main menu->file->open file), so you can use it to locate all 3 and change a bunch of them at once. Don't forget to turn off the "fast scan" option.

EDIT: your game seems to be multiplayer-only, better wipe its name to comply with the forum's rules (see the FAQ).

_________________
DO NOT PM me if you want help on making/fixing/using a hack.
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Tue Nov 05, 2013 12:20 pm    Post subject: Reply with quote

Sometimes, if you're lucky, data like this can be found in external files (e.g. .dat files) in the game's sub-folders. If you find it, you can change the value in the .dat file, load up the game, search for exact value (game process), change the value back, reload the save game and search for exact value...repeat as needed. By doing so, you can write a script that will alter the values that handle these limits within the game's code, without having to patch external files etc.
Back to top
View user's profile Send private message
MrStinky001
How do I cheat?
Reputation: 0

Joined: 04 Nov 2013
Posts: 4

PostPosted: Tue Nov 05, 2013 3:04 pm    Post subject: Reply with quote

Thanks for letting me know! I've taken out the game's name.

Also, thanks for the tip! I've tested your advice for the limit on the Rex's health and it altered the maximum health!

Now to change the limit on the Rex/Spino count.
Back to top
View user's profile Send private message
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