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 


Swapping values / addresses?
Goto page 1, 2, 3, 4  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Gamehacking
View previous topic :: View next topic  
Author Message
Ozzy25
Cheater
Reputation: 0

Joined: 07 Nov 2012
Posts: 34

PostPosted: Wed Nov 07, 2012 9:27 pm    Post subject: Swapping values / addresses? Reply with quote

Hello guys


So I have this game and I started using cheat engine. I managed to modify some small things, nothing too serious.

Now I'd like to change some "bigger" things.

Alright so I have some cars for example. Some are not directly obtainable.

Let's say I have unblocked one vehicle. Only one, out of 20. Is there a possibility that I would find the number of the car I'm in, and change the value with a number from 1-20 and where each number stands for a different car? That would mean I'd be able to drive them without unlocking.

I've searched also for the names of the cars. I'm not sure how exactly this works with text. Let's say the first and only car that I can drive (as said before) is a Chevrolet Caprice. Now I'd like to drive the Mercedes SLS which I haven't unlocked for example. I searched through the text option for "Chevrolet" and for "Caprice" and also for "Mercedes" and "SLS" (those are the values). I tried swapping the values, and also swapping the addresses but it didn't work. I think I'm going totally wrong there, right?

Ideally I should find something that defines which car it is, with a number from 1-20 like I said before, for example. But I doubt I will ever find this haha.


So could anyone perhaps point me in the right direction?


Thanks very much guys I really appreciate it Smile
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu Nov 08, 2012 1:25 am    Post subject: Re: Swapping values / addresses? Reply with quote

Ozzy25 wrote:
Let's say I have unblocked one vehicle. Only one, out of 20. Is there a possibility that I would find the number of the car I'm in, and change the value with a number from 1-20 and where each number stands for a different car?
That depends how the game is made. This approach works in Flatout Ultimate Carnage, but not in Ridge Racer Unbounded (they have a pointer to a CCar object that defines your car).

Ozzy25 wrote:
So could anyone perhaps point me in the right direction?
I'd say:
-unlock a second car
-go to your garage or car selection screen
-search for unknown initial value type 4 byte
-change car
-search for changed value
-continue changing/not changing cars, and filtering accordingly.
-learn how your game works, and improvise.

OR

-hack money/respect/whatever (if applicable), and buy all cars

OR

-see if your game is moddable, and if it is mod it so all cars are unlocked right off the bat (works in Flatout Chaos and Destruction).
Back to top
View user's profile Send private message
Ozzy25
Cheater
Reputation: 0

Joined: 07 Nov 2012
Posts: 34

PostPosted: Thu Nov 08, 2012 5:24 pm    Post subject: Reply with quote

Hello and thanks!

Actually I'm also doing this because there is some cars you can't obtain. Well, or at least not yet… Smile

Searching for a value here is basically impossible I think, I get tons of results for pretty much every number. Sad

Is it not possible to make changes by searching text and doing something with the address? This would be so much easier.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Thu Nov 08, 2012 9:54 pm    Post subject: Reply with quote

Ozzy25 wrote:
Searching for a value here is basically impossible I think, I get tons of results for pretty much every number. Sad
You shouldn't use the "exact value" search method here since you don't know if a given car is car1, car0, or even car23. The first car in the garage might not be the first car in the car list. Instead you'd better go with the 1st method I explained.

Ozzy25 wrote:
Is it not possible to make changes by searching text and doing something with the address? This would be so much easier.
Definitely not with your current knowledge of the inner workings of your game.
Later IF this game works like RR:Unbounded you MIGHT be able to deduce the address of the CCar object from the string address. But all in all, it's very unlikely that strings will be of any use.
Back to top
View user's profile Send private message
Ozzy25
Cheater
Reputation: 0

Joined: 07 Nov 2012
Posts: 34

PostPosted: Sat Nov 10, 2012 8:36 pm    Post subject: Reply with quote

Alright thanks, will do it that way! Smile
Back to top
View user's profile Send private message
Ozzy25
Cheater
Reputation: 0

Joined: 07 Nov 2012
Posts: 34

PostPosted: Sun Nov 25, 2012 2:50 am    Post subject: Reply with quote

Hello again Smile

Sadly the search for unknown value method did not work. There's a zillion values that change. I even tried changing all of them that seemed to be realistic, but nothing changed.

I guess for this game too, this method applies:

Quote:
they have a pointer to a CCar object that defines your car


But how do I go on about this, and where do I start? Smile

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

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Sun Nov 25, 2012 4:58 am    Post subject: Reply with quote

Ozzy25 wrote:
There's a zillion values that change. I even tried changing all of them that seemed to be realistic, but nothing changed.
Did you try:
-filtering
-changing from car A to car B
-changing from car B to car A
-filtering with "unchanged value"?
AND
-filtering
-alt+tab from cheat engine to game
-alt+tab from game to cheat engine
-filtering with "unchanged value"?
AND
-filtering
-waiting
-filtering with "unchanged value"?

Simply put: when there are lots of value that change, filtering with "unchanged value" can have drastic effects.

But anyway do expect to have to filter a lot. If really you reach a point where you absolutely can't decrease the number of suspects, well, add them all, freeze half of them, see if you can change car, and delete the frozen/not frozen ones accordingly. Rinse and repeat.


Ozzy25 wrote:
Quote:
they have a pointer to a CCar object that defines your car
But how do I go on about this, and where do I start?
It starts with changed/unchanged scans, except that:
-a pointer has a big weird value so if you want to freeze those that "seem realistic", switch to hexadecimal display, and freeze those who have a value that looks like it could be an address. If your game is 32bit I guess you could assume the pointer value to be between 0x10000=65536 and 0x7fffffff=2147483647.
-a pointer MAY be different after changing back and fro one car (I mean changing to car B then back to car A). You'll have to try both cases.

Sorry not to be able to give you the ray of hope you expected...
Back to top
View user's profile Send private message
Ozzy25
Cheater
Reputation: 0

Joined: 07 Nov 2012
Posts: 34

PostPosted: Wed Nov 28, 2012 4:20 am    Post subject: Reply with quote

Alright this helped me a lot, thanks Smile

I managed to find two long values, but they seem to be changing (like, when I started the game next time, they weren't there anymore) and also nothing happened when I froze them or anything.

So what exactly do I do with it now? Smile I guess it's part of this whole pointer story.

Sorry, and thanks for all the help. You definitely DO give me the way of hope haha! Very Happy
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Wed Nov 28, 2012 7:49 am    Post subject: Reply with quote

Excuse me but, if freezing those addresses has no effect on changing cars, what's the point?
Back to top
View user's profile Send private message
Ozzy25
Cheater
Reputation: 0

Joined: 07 Nov 2012
Posts: 34

PostPosted: Wed Nov 28, 2012 7:52 am    Post subject: Reply with quote

Huh? Well I didn't know nothing would happen when I freeze them Neutral
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Wed Nov 28, 2012 9:51 am    Post subject: Reply with quote

Ozzy25 wrote:
I managed to find two long values, [...] and also nothing happened when I froze them or anything.
then
Ozzy25 wrote:
Well I didn't know nothing would happen when I freeze them
I'm a bit lost there Rolling Eyes...
Why were you interested in those values in the first place?
What's their values when you select car A? And car B?
Back to top
View user's profile Send private message
Ozzy25
Cheater
Reputation: 0

Joined: 07 Nov 2012
Posts: 34

PostPosted: Wed Nov 28, 2012 9:56 am    Post subject: Reply with quote

Oh I get your point, you mean they had nothing to do with the cars.

Well my point was that I figured out those two values are the two cars that I've been selecting because I could clearly see them changing when I selected the first car and the second.

So I thought I was kinda sure that this would be the cars.

And the values for both cars were very long, but between 65536 and 2147483647 like you said. Are that the big weird values you were talking about?
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Wed Nov 28, 2012 10:40 am    Post subject: Reply with quote

Ozzy25 wrote:
Oh I get your point, you mean they had nothing to do with the cars.
I was rather thinking that even if they are car-related, as long as you can't alter the game's behavior using those values, they are of little interest.

Ozzy25 wrote:
Well my point was that I figured out those two values are the two cars that I've been selecting because I could clearly see them changing when I selected the first car and the second.

So I thought I was kinda sure that this would be the cars.
If they ONLY change when you change cars, there is some relationship. Problem is figuring out if we can make something out of it.

Ozzy25 wrote:
And the values for both cars were very long, but between 65536 and 2147483647 like you said. Are that the big weird values you were talking about?
Maybe, right click on them->show as hexadecimal, and post the values, I'll tell you if it looks like a pointer.
Also I know their addresses keep changing, but could you post them too?

Once you're using the hex display, copy the hex value, go to the memory viewer, click on the lower pane (hex dump), press ctrl+G and paste the hex value.
If you see a lot of "??" your value isn't a pointer.
Otherwise, change cars, did the lower pane just turn into a sea of "??" ?
if yes: you cant' make anything out of freezing this pointer because the previous car's data was just erased.
if no: freeze this address, change your car, and play anyway: which car did you get? Is there anything abnormal, like the wrong skin or the wrong name?
Back to top
View user's profile Send private message
Ozzy25
Cheater
Reputation: 0

Joined: 07 Nov 2012
Posts: 34

PostPosted: Wed Nov 28, 2012 10:44 am    Post subject: Reply with quote

Alright you know what I will try to go it again and then post the values here as I don't have them anymore anyway.

Another thing before I start — is it better if I have the game set to fullscreen and I switch between the game and cheat engine (it automatically pauses the game), or is it better if I play the game in a smaller window, which means that it won't be pausing it while going to cheat engine?

I'm not sure if this is of any importance but I thought I'd mention it anyway.
Back to top
View user's profile Send private message
Gniarf
Grandmaster Cheater Supreme
Reputation: 43

Joined: 12 Mar 2012
Posts: 1285

PostPosted: Wed Nov 28, 2012 10:50 am    Post subject: Reply with quote

Usually, I like using window mode when I hack because I don't like waiting until the game reinitializes the 3d adapter.
In cheat engine's settings you can set a hotkey to pause/resume the process, which will totally freeze/unfreeze the game, whether it is in fullscreen of windowed mode.
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
Goto page 1, 2, 3, 4  Next
Page 1 of 4

 
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