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 with C++using CE [read]
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
wolfguardiann
Newbie cheater
Reputation: 0

Joined: 09 Mar 2011
Posts: 13

PostPosted: Wed Mar 09, 2011 8:36 pm    Post subject: Help with C++using CE [read] Reply with quote

well i want to code a program in C/C++ that , in game , shows my health and mana (firstly)

what do i have to acctually do ? idk even where to start , all i know , is that , the game im trying to do his is n online game, and that , in order to make the hp and mana to be shown on the CMD ( as its c/c++ ) i need the game adresses.

u cant make false nunbers and say " ah this is myhealth" no , i want to pick in my game the Health and mana adresses , and put it in a code of C/C++ to show both there . if someone can help me whit that i would love!!!



TY for the support, happy hacking!
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Mar 09, 2011 8:48 pm    Post subject: Reply with quote

Moving to general programming and please don't tag your shit [READ], it's not going to help and it's obnoxious tbh.

You want
http://msdn.microsoft.com/en-us/library/ms680553(v=vs.85).aspx
http://msdn.microsoft.com/en-us/library/ms681674(v=vs.85).aspx

and related functions. Don't get it? Not surprised. Expect to learn.
Back to top
View user's profile Send private message
wolfguardiann
Newbie cheater
Reputation: 0

Joined: 09 Mar 2011
Posts: 13

PostPosted: Wed Mar 09, 2011 8:57 pm    Post subject: Reply with quote

slovach wrote:
Moving to general programming and please don't tag your shit [READ], i





sorry ,as the title have <maxlengh> i cant type the rest there...............thats why the read..........

but , theproblem stills , i saw the links but , whaere should i start?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8586
Location: 127.0.0.1

PostPosted: Wed Mar 09, 2011 9:11 pm    Post subject: Reply with quote

Pick a programming language you wish to learn. Your best choice for this topic is C++ since it is the most covered language with similar things to what you want to do. Simply put, it's not going to be something you will have done in a day, a week, or probably even a year if you have no idea what you are doing already.

Expect it to take time and expect to actually have to try and learn.

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

Joined: 09 Mar 2011
Posts: 13

PostPosted: Wed Mar 09, 2011 9:15 pm    Post subject: Reply with quote

Wiccaan wrote:
Pick a programming language you wish to learn. Your best choice for this topic is C++ since it is the most covered language with similar things to what you want to do. Simply put, it's not going to be something you will have done in a day, a week, or probably even a year if you have no idea what you are doing already.

Expect it to take time and expect to actually have to try and learn.


i understood, but , to make the hp and mana appear , i will need the functions that vou send up there on the links , got it , but , would happen if u or someone have just a base , so i can understand , pick the base , and code my own ?

i wouldnt like acctually a step-by-step fistly cuz noone will do it , only if its on good mood,

all i want is to my hp and mana show on the cmd prompt ( cu z ill code on C/c++)((both are equal , but only some comands are name changed)).
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8586
Location: 127.0.0.1

PostPosted: Wed Mar 09, 2011 10:00 pm    Post subject: Reply with quote

wolfguardiann wrote:

i understood, but , to make the hp and mana appear , i will need the functions that vou send up there on the links , got it , but , would happen if u or someone have just a base , so i can understand , pick the base , and code my own ?


You need to learn the language you are programming in first before you even begin writing things like this. Simply put go and study the language, learn how to use it, then come back to things like this.

wolfguardiann wrote:

all i want is to my hp and mana show on the cmd prompt ( cu z ill code on C/c++)((both are equal , but only some comands are name changed)).


C and C++ are not "equal". And certainly not just 'some command names changed'.

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

Joined: 09 Mar 2011
Posts: 13

PostPosted: Wed Mar 09, 2011 10:12 pm    Post subject: Reply with quote

Wiccaan wrote:
wolfguardiann wrote:

i understood, but , to make the hp and mana appear , i will need the functions that vou send up there on the links , got it , but , would happen if u or someone have just a base , so i can understand , pick the base , and code my own ?


You need to learn the language you are programming in first before you even begin writing things like this. Simply put go and study the language, learn how to use it, then come back to things like this.

wolfguardiann wrote:

all i want is to my hp and mana show on the cmd prompt ( cu z ill code on C/c++)((both are equal , but only some comands are name changed)).


C and C++ are not "equal". And certainly not just 'some command names changed'.


well tbh , i program using C , is this possible to program on C? cuz , C++ i dont know much... but , C i do know .

is this posible to do using C then ? as vog gavethe links there , theese can be used on C to make whati wish?
Back to top
View user's profile Send private message
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Wed Mar 09, 2011 10:47 pm    Post subject: Reply with quote

the win32 api is C, so if you understood C then you wouldn't be here asking.
Back to top
View user's profile Send private message
wolfguardiann
Newbie cheater
Reputation: 0

Joined: 09 Mar 2011
Posts: 13

PostPosted: Wed Mar 09, 2011 11:14 pm    Post subject: Reply with quote

slovach wrote:
the win32 api is C, so if you understood C then you wouldn't be here asking.



iknow , i know, but , all i want is an " HOw" can i make that , give me the code (or at least what comands i need to use , so i can build my hp and mana thing...)

im here askig for help , not to make enemies.... all i want is what codes , when , and how i use them , if it take too much to write, ok , say that it take too much , ill wait, after u did , put it here with explanation that are usefull to know .

all i want is a simple thing , ima a newb ok , but , everyone starts from here .... make my day please... i just need help...
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8586
Location: 127.0.0.1

PostPosted: Wed Mar 09, 2011 11:15 pm    Post subject: Reply with quote

Possible yes, but as slov said if you do program at all you wouldn't be hear asking a fairly basic question like that. Actually knowing a language, and knowing how to (say print to a console) is two entirely different things. As I suggested, you should dig deeper into the language first before attempting things like this.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
hcavolsdsadgadsg
I'm a spammer
Reputation: 26

Joined: 11 Jun 2007
Posts: 5801

PostPosted: Thu Mar 10, 2011 1:00 am    Post subject: Reply with quote

wolfguardiann wrote:
slovach wrote:
the win32 api is C, so if you understood C then you wouldn't be here asking.



iknow , i know, but , all i want is an " HOw" can i make that , give me the code (or at least what comands i need to use , so i can build my hp and mana thing...)

im here askig for help , not to make enemies.... all i want is what codes , when , and how i use them , if it take too much to write, ok , say that it take too much , ill wait, after u did , put it here with explanation that are usefull to know .

all i want is a simple thing , ima a newb ok , but , everyone starts from here .... make my day please... i just need help...


I gave you the necessary functions in the first reply
Back to top
View user's profile Send private message
wolfguardiann
Newbie cheater
Reputation: 0

Joined: 09 Mar 2011
Posts: 13

PostPosted: Thu Mar 10, 2011 11:17 am    Post subject: Reply with quote

slovach wrote:
wolfguardiann wrote:
slovach wrote:
the win32 api is C, so if you understood C then you wouldn't be here asking.



iknow , i know, but , all i want is an " HOw" can i make that , give me the code (or at least what comands i need to use , so i can build my hp and mana thing...)

im here askig for help , not to make enemies.... all i want is what codes , when , and how i use them , if it take too much to write, ok , say that it take too much , ill wait, after u did , put it here with explanation that are usefull to know .

all i want is a simple thing , ima a newb ok , but , everyone starts from here .... make my day please... i just need help...


I gave you the necessary functions in the first reply


i understood that the base is those codes , but , how can i start whitout help ?

its like giving a book of japanese to a kid of 6 old , she will look at all that and will look to u whit an ass-face and will say" wth i do with this? can u help with that ?"

i want a base IN code , so i can just change what i need and then ill try to make , if u dont want, dont need explanations , ill jsut google and ok , but i need a base .
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Thu Mar 10, 2011 11:24 am    Post subject: Reply with quote

To get your base start with CE, scan your program find your address offsets, take those offsets into C/C++ and make your program.
_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
Back to top
View user's profile Send private message
wolfguardiann
Newbie cheater
Reputation: 0

Joined: 09 Mar 2011
Posts: 13

PostPosted: Thu Mar 10, 2011 1:07 pm    Post subject: Reply with quote

AhMunRa wrote:
To get your base start with CE, scan your program find your address offsets, take those offsets into C/C++ and make your program.



thats the help i was trying to ask for , but , i alredy knew thati would need the adresses offsets
like,
1-step
(THIS IS AN EXAMPLE JUST FOR U UNDERSTAND!!!)

the adress offset rsponsable for Pinball 3D score is "01050017c"

so the offsets would be "0x01050017c" right , this i know .

2-step

put this adress offset on C++

3-step
Starting coding .

im stuck on step 3 , i know what codes to use , cuz he gave me the links ,ok , but , i dont know how to use them IN/TO code this thing i want , got it ?

i need help to Code , not for find the adress , i did the tutorial of CE , course , like everyone did once , but im stuck on WHAT to use , HOW to use the codes that he gave up there on the 2 links.
Back to top
View user's profile Send private message
AhMunRa
Grandmaster Cheater Supreme
Reputation: 27

Joined: 06 Aug 2010
Posts: 1117

PostPosted: Thu Mar 10, 2011 1:15 pm    Post subject: Reply with quote

Code:
BOOL WINAPI ReadProcessMemory(
  __in   HANDLE hProcess,
  __in   LPCVOID lpBaseAddress,
  __out  LPVOID lpBuffer,
  __in   SIZE_T nSize,
  __out  SIZE_T *lpNumberOfBytesRead
);
hProcess would be the handle of the process you are working with
lpBaseAddress is the address you are reading from your health and mana
lpBuffer is pointer to the buffer recieving
nSize is the size to read
lpNumberOfBytesRead into the buffer


So an example would be
Code:
 
HWND hwnd = FindWindow("Pinball",NULL);

   if (hwnd)
   {
      DWORD proc_id;
      GetWindowThreadProcessId(hwnd, &proc_id);
      HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id);

      ReadProcessMemory(hProcess, (void *) lpAddress, buf, len, 0);
     CloseHandle(hProcess);
   
   }

_________________
<Wiccaan> Bah that was supposed to say 'not saying its dead' lol. Fixing >.>
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 programming All times are GMT - 6 Hours
Goto page 1, 2  Next
Page 1 of 2

 
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