The Corsair User Forums  

Go Back   The Corsair User Forums > Corsair Product Discussion > Corsair Utility Engine (CUE) 1.x and 2.x > CUE 1.x and 2.x SDK

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 10-22-2015, 04:43 PM
Jkraghify's Avatar
Jkraghify Jkraghify is offline
CORSAIR Beta Team
Jkraghify's PC Specs
 
Join Date: Jan 2015
Location: Salinas CA
Posts: 923
POST ID # = 815810
Jkraghify Reputation: 10
Default Small Tutorial Request

Hey peeps,

So I would say I am an intermediate/beginner C++ creator. I know how to use libraries and all the basics of programming (loops, recursion, etc) from my three programming courses, but I have never touched program interactivity other than user input.

Would one of you more advanced users be able to help me figure out how to read process memory from a game? Let's take for example, Battlefield 4. I would like to display HP, vehicle HP, Ammo, and mag Ammo on the keyboard. I have a general idea of the layout, but that's not where I am having trouble.

I have no idea how to read this information from the game, and not a clue how to do it efficiently. I've never touched this low level stuff before, but from my googling around I see "ReadProcessMemory," "Process ID," and "Memory Addresses" thrown around a lot. Would somebody please show me how these fit together, or am I in way over my head?

Thanks, Computer Science Dieties
__________________
K95 and K70 RGB keyboard cover mod! Make your own :D
Glorious Build Log - Atom14
K95 RGB [SDK Project] Binary Clock
  #2  
Old 11-25-2015, 02:26 PM
Whattf Whattf is offline
Registered User
 
Join Date: Nov 2015
Posts: 25
POST ID # = 822116
Whattf Reputation: 10
Default

You would need to basically find the value of the variable you wish to look at in the memory of that application. It's not really a trivial task considering most game dev's don't want you do that. You can look into something called Cheat Engine to examine the game's variables in memory during runtime. However, these will most likely change in each patch/revision- http://wiki.cheatengine.org/index.ph...emory_Scanning
  #3  
Old 11-25-2015, 02:39 PM
Jkraghify's Avatar
Jkraghify Jkraghify is offline
CORSAIR Beta Team
Jkraghify's PC Specs
 
Join Date: Jan 2015
Location: Salinas CA
Posts: 923
POST ID # = 822120
Jkraghify Reputation: 10
Default

I'll just have to make sure having cheat engine open while in a game is okay. I'll try this with bf4 single player first I think. Compare the memory adresses used for ammo, mag ammo, health, and vehicle health for single player to multiplayer. I'd bet they are the same
__________________
K95 and K70 RGB keyboard cover mod! Make your own :D
Glorious Build Log - Atom14
K95 RGB [SDK Project] Binary Clock
  #4  
Old 11-25-2015, 03:21 PM
Whattf Whattf is offline
Registered User
 
Join Date: Nov 2015
Posts: 25
POST ID # = 822129
Whattf Reputation: 10
Default

Quote:
Originally Posted by Jkraghify View Post
I'll just have to make sure having cheat engine open while in a game is okay. I'll try this with bf4 single player first I think. Compare the memory adresses used for ammo, mag ammo, health, and vehicle health for single player to multiplayer. I'd bet they are the same

Yes, I expect those values would be stored in the same place for single versus multiplayer.
  #5  
Old 11-25-2015, 03:27 PM
Jkraghify's Avatar
Jkraghify Jkraghify is offline
CORSAIR Beta Team
Jkraghify's PC Specs
 
Join Date: Jan 2015
Location: Salinas CA
Posts: 923
POST ID # = 822130
Jkraghify Reputation: 10
Default

Thanks for the help! Now I've gotta do it xD
__________________
K95 and K70 RGB keyboard cover mod! Make your own :D
Glorious Build Log - Atom14
K95 RGB [SDK Project] Binary Clock
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:45 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.