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 


[Help]Acess some values

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

Joined: 23 Jan 2011
Posts: 25

PostPosted: Thu Feb 03, 2011 10:52 am    Post subject: [Help]Acess some values Reply with quote

Im trying to do a bot do play one game for me, but I dunno how to tell my program to acess some values from memory, like this value:



when I use the adress 1F60F0D4 I get only 8585216, how can I get the value 2 ?
Thanks ^^
Back to top
View user's profile Send private message
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu Feb 03, 2011 11:58 am    Post subject: Reply with quote

You need to tell people what language your using for this. There is no way for anyone to know what to reply.
Back to top
View user's profile Send private message
Geri
Moderator
Reputation: 111

Joined: 05 Feb 2010
Posts: 5627

PostPosted: Thu Feb 03, 2011 12:17 pm    Post subject: Re: [Help]Acess some values Reply with quote

xNef wrote:
Im trying to do a bot do play one game for me, but I dunno how to tell my program to acess some values from memory, like this value:

[img]img718.imageshack.us/img718/5039/ce1.png[/img]

when I use the adress 1F60F0D4 I get only 8585216, how can I get the value 2 ?
Thanks ^^



The value of 2 is not stored 1F60F0D4 but on 1F60F0D8. Notice that one line in the memory browser is 16 bytes.
The first byte is stored on 1F60F0D4, the second is 1F60F0D5, and the 5th byte (where Your value is stored) is 1F60F0D8.
If You right-click on Your value and choose "Add this address to the list", then You will see.

_________________
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
Labyrnth
Moderator
Reputation: 10

Joined: 28 Nov 2006
Posts: 6301

PostPosted: Thu Feb 03, 2011 8:18 pm    Post subject: Reply with quote

Well from what I see in the top window and in the bottom window.
You have 2 different address's. And in the top window and address is selected indicating that is the address you found.

Looking in the lower window, if in fact that is what you have found. You are in allocated memory. This address will not work again because it will change.
Back to top
View user's profile Send private message
xNef
Cheater
Reputation: 0

Joined: 23 Jan 2011
Posts: 25

PostPosted: Fri Feb 04, 2011 1:37 pm    Post subject: Reply with quote

Thanks all for the reply its really helped me a lot ^^
and about the language Im using C++, now everything works fine.
Just one thing that I didnt like it when I compiled my program,
Im declaring this variable

Quote:
LPCVOID lpAddress = (LPCVOID0x1F63AF34);


then I want to declare other variable with value 0x1F63AF54, so I have to move the pointer 32 bytes,
so:

Quote:
LPCVOID lpAddress2 = lpAddress + 32;


Everythings works fine and when I do one printf I get the adress 0x1F63AF54, but I cnt use pointer of type 'void *' in arithmetic , so I get one warning, but the compiler ignores.
Anyone know how I can solve this?
Thanks =)
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Fri Feb 04, 2011 5:29 pm    Post subject: Reply with quote

LPVOID is just a pointer, it has no 'type' so you get the error because it has no known method of handling operators.

Just cast it before applying any arithmetic's to it, for example:

Code:
LPVOID lpAddress2 = reinterpret_cast< LPVOID >( reinterpret_cast< DWORD >( lpAddress ) + 32 );


If you injected into the application you can just use direct pointers as well.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
xNef
Cheater
Reputation: 0

Joined: 23 Jan 2011
Posts: 25

PostPosted: Fri Feb 04, 2011 7:06 pm    Post subject: Reply with quote

Thank you about the pointer information ^^
Now my program is almost done, now only one thing is missing, I cant find the adress for this bar:

[img]img196.imageshack.us/img196/6751/41681410.gif[/img]

I think the value changes every 1 ms, anyone can give some hints to find the correct adress? I need the value when the circle comes in white region for my program.
Thanks.
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sat Feb 05, 2011 9:28 am    Post subject: Reply with quote

Use Cheat Engines ability to pause the process, it will help with finding bars like that. Typically a bar is stored as a float. (This can differ so be sure to check other value types too if you have issues with floats.)

You can pause the process by going into the advanced options (button on the bottom left of the main Cheat Engine window) and click the pause button.

1. Search for unknown initial value.
2. Unpause and let the bar move some.
3. Pause again, search for unknown increased value.
4. Repeat 2 and 3 until the bar resets.

When the bar resets, search for unknown decreased value. And repeat the above again.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
xNef
Cheater
Reputation: 0

Joined: 23 Jan 2011
Posts: 25

PostPosted: Sat Feb 05, 2011 3:50 pm    Post subject: Reply with quote

I tried this, I found 2 adress(I frozen to verify if was correct) for the bar, the problem is that when Im playing in first level, the bar is slow, the circle gets in white region about value 380, when I go to third level, the bar gets more fast, the circle gets in white region with value 210, if its keeping more level the value decrease, I dunno what to do, since the levels are random, Rolling Eyes
If u have any ideia I will apreciate. ^^
Thanks =)
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