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 


how to find display value?

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

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Thu Sep 22, 2016 1:31 pm    Post subject: how to find display value? Reply with quote

I made a trainer for a game with a feature called "add gold". What it does is add gold to the current amount. The value changes but the display value doesn't. I tried to find the display value so people see how much they have after adding but cant, every time I search for it and then change the amount I cant find it again so for example if I had 150750 gold and search for it, if I change the amount by either collecting gold or spending it all the addresses I found get the value 0 and if I try to search for the new amount example 150200 it will come up with nothing. How would it be found?
Back to top
View user's profile Send private message
mgostIH
Expert Cheater
Reputation: 3

Joined: 01 Jan 2016
Posts: 159

PostPosted: Thu Sep 22, 2016 2:14 pm    Post subject: Re: how to find display value? Reply with quote

rog9001 wrote:
I made a trainer for a game with a feature called "add gold". What it does is add gold to the current amount. The value changes but the display value doesn't. I tried to find the display value so people see how much they have after adding but cant, every time I search for it and then change the amount I cant find it again so for example if I had 150750 gold and search for it, if I change the amount by either collecting gold or spending it all the addresses I found get the value 0 and if I try to search for the new amount example 150200 it will come up with nothing. How would it be found?


Not every game has a memory allocated for the visual value. It could just get updated by the game graphical engine when the function for modifying the value gets called.

There's 2 ways you can fix this:

The simplest way is to show that value on another window, like your hack console or whatever you are using to distribute your programs.
The other way much more complex but with a neater result would be to hook the game's Graphical Engine and either update the score yourself (if you find the right function to do that) or outputting it on screen somewhere comfortable to see.

The function to be hooked are Present() for DirectX and wglSwapBuffers() for OpenGL.

_________________
Do you need to ask me something? Feel free to join my discord server at: https://discord.gg/At4VZXA or ask me something in my YouTube channel: https://www.youtube.com/c/mgostIH
Back to top
View user's profile Send private message
rog9001
Expert Cheater
Reputation: 2

Joined: 22 Dec 2015
Posts: 214
Location: Jupiter

PostPosted: Thu Sep 22, 2016 3:03 pm    Post subject: Re: how to find display value? Reply with quote

mgostIH wrote:

Not every game has a memory allocated for the visual value. It could just get updated by the game graphical engine when the function for modifying the value gets called.

There's 2 ways you can fix this:

The simplest way is to show that value on another window, like your hack console or whatever you are using to distribute your programs.
The other way much more complex but with a neater result would be to hook the game's Graphical Engine and either update the score yourself (if you find the right function to do that) or outputting it on screen somewhere comfortable to see.

The function to be hooked are Present() for DirectX and wglSwapBuffers() for OpenGL.


Oh I see... well then I really can not be bothered to find it. Instead I will just make a box in my trainer where the user will insert their current amount and when they add gold the number in that box will increase by the amount they add.
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