Help with C++using CE....

Posts 1–15 of 16 · Page 1 of 2
Help with C++using CE....
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!!!

i have an example i picked over the net look that shows the pinball score

__________________________________________________ _______________

Code:
#include<windows.h>
#include<stdio.h>
#include <conio.h>
#include <iostream> // for cout, i'd preffer cout than printf, a little bit slower but more comfortable
int main(void) {
    DWORD dwID;
    HWND hwnd = FindWindow("3D Pinball for Windows - Space Cadet",NULL);
    HANDLE hProcess;
    if (hwnd)
    {
        DWORD proc_id;
        GetWindowThreadProcessId(hwnd, &proc_id);
        hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, proc_id);
    }
    if(hProcess == NULL) //it isn't opened
    {
        std::cout << "OPENPROCESS FAILED";
        return 0; //exit program
    }
    while(true) //infinite loop, you can break program execution only by forcing it to terminate (Alt+F4, Ctrl+C and so on)
    {
        ReadProcessMemory(hProcess, (void *) 0x01020F95, &dwID, sizeof(DWORD), 0);
        printf("Score: %d\n",dwID & 0x000FFFF);
        Sleep(1000); //pauses current thread for 1000ms
    }
    CloseHandle(hProcess); //won't be executed anyway, but always good to remember about that
    return 1;
}
-------------------------------------------------------------------------------------

thats what ii was needing , it works but, it just show

"
Score:2
Score:2
Score:2
"

it doesnt exactly show my score , know whati m saying?

what do i do to this work perfectly?



___________________________________________

whit thati n mind , what do i need to make the health and mana appear?


Rewiew:
1-see whats wrong whit the code i gave up there on the pinball.
2-Using that code up there , how do i make to my health and mana show on cmd just like the "score:" does




TY for the support, happy hacking!
ok ty for the reply, ill make sure to pay attention there, therefore , ill be reading that, if someone still have the asnwer for my problem , please post , as i still dont know what to do.
Quote Originally Posted by aanthonyz View Post
Ok. I had the same issue as well.

Read this:
Beginners Guide to Codecaves

After you learn this, then making the HP/Mana C++ program should be easy.
Nice but code caving is a bit difficult if he can't even Read/Write memory yet.

@wolfguardiann :

The address you're reading from could be wrong, otherwise I don't see anything wrong with it.

Also, why are you doing this? :
Code:
dwID & 0x000FFFF
Hopefully you have some experience with CE and/or any other debugger/disassembler, you should be able to find the correct address.
Quote Originally Posted by Void View Post
Nice but code caving is a bit difficult if he can't even Read/Write memory yet.

@wolfguardiann :

Also, why are you doing this? :
Code:
dwID & 0x000FFFF
Hopefully you have some experience with CE and/or any other debugger/disassembler, you should be able to find the correct address.

nice tut code ? ITS FU.. AWESOME , ill add that as favs , soo ill read every line!!!!!!!!!!

ill add this guy to my REspect list ofor ever!!

________________________

dwID & 0x000FFFF

i did that cuz , it will read the adrees thati putted up there , and show it down there according to the PID , if thats wronig , please, remake for me , so this will leave one lastproblem to be solved , the problem 2 on the Review.


TY!!!!!!!!!!!!!!!!!!!!!!!!!!!
Quote Originally Posted by wolfguardiann View Post
nice tut code ? ITS FU.. AWESOME , ill add that as favs , soo ill read every line!!!!!!!!!!

ill add this guy to my REspect list ofor ever!!

________________________

dwID & 0x000FFFF

i did that cuz , it will read the adrees thati putted up there , and show it down there according to the PID , if thats wronig , please, remake for me , so this will leave one lastproblem to be solved , the problem 2 on the Review.


TY!!!!!!!!!!!!!!!!!!!!!!!!!!!
Are you talking about me or Void?
Quote Originally Posted by aanthonyz View Post
Are you talking about me or Void?
you for giving me that REALLY AWESOME link , it teaches exatctly what i want to do, ill read every line tyvm!!!!!!!

i took a quick read on the the last, and , i want to envolve that with c++!! , it seems to have dll injection :/ , well anyways , ill read all first and then comment.



and i was alknig about the problem 1 to void!
Quote Originally Posted by wolfguardiann View Post
you for giving me that REALLY AWESOME link , it teaches exatctly what i want to do, ill read every line tyvm!!!!!!!

i took a quick read on the the last, and , i want to envolve that with c++!! , it seems to have dll injection :/ , well anyways , ill read all first and then comment.



and i was alknig about the problem 1 to void!
Once you read it, understand, and find your pointers, I will help you ok?

Send me a PM
If you want to verify that your address is correct, use cheat engine and do a couple of scans for your score, then see if the address(es) listed contain yours, and make sure it's green(static pointer), the black ones change every game restart.
dunno, but is this guy trying to run without knowing how to walk?
@'Bruno
if i need help , means i can walk , but not run , im trying to learn to run , so in terms , what i want is help , and thats why im here .

@ALL
and ty everyone for helping me out , ill finish reading the link , and ill take a closer look here, wont take long , im on JMP , when i finish , ill say if i got it , or still having problems

@aanthonyz
Tyvm for you support , ill finish reading ALL the page , really hopnig i learn , after i finish , ill try to make whitout the tutorial , to seee if i understood , if all goes well , ill pm u , if all went well , ill pm u to help me , once mor e, tyvm for the link and the support!
And people is telling you to first find simple address's and pointers with CE, and you are pretty much ignoring (or was...).

And you need help to walk before asking for help to run
Quote Originally Posted by 'Bruno View Post
And people is telling you to first find simple address's and pointers with CE, and you are pretty much ignoring (or was...).

And you need help to walk before asking for help to run
not if u alredy know how to walk.
Quote Originally Posted by wolfguardiann View Post
not if u alredy know how to walk.
oh come on....Brinuz is pro, and I think that he can catch beginers (walkers) or starters (Babies). You have to go slow, really slow if u want a future in programming, specially in C/C++ which is hard as it's powerful (and it's the most powerful language in the world)...
hmmm now i catch the "walk/walking/walker" joke , i thought he was using pharases with me, so i was using it aisnt him , i ever do this , i didnt think he was acctually saying that i wassnt a trash , and yes an begginer.

and so then , what do i do ? i read the link , but , by the end , it said to make DLL , in witch is a harder that i dont even imagine how to do , i only want that my score appear on my CMD , not to inject anything, like that code i gave , there were like 7 gguys aying it works and shows the correct score, in which made me thiknig that , the adrres of the score is wrong.... what do i do then?


EDIT : and it even didnt have to inject anything , only putting it on dev CPp and compiling. and it had like only 60 lines
Posts 1–15 of 16 · Page 1 of 2

Post a Reply

Tags for this Thread

None

Talk with us