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 


Minecraft gamehacking

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

Joined: 07 Jan 2016
Posts: 272
Location: My house

PostPosted: Sun Jan 08, 2017 8:44 am    Post subject: Re: Minecraft gamehacking Reply with quote

I recommend that you remove the game name from this topic. O had run the risk of being left unanswered.
_________________
...
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8585
Location: 127.0.0.1

PostPosted: Sun Jan 08, 2017 1:24 pm    Post subject: Reply with quote

Minecraft has a single player option so it is fine, as long as the request is not directly specific to multiplayer.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
ulysse31
Master Cheater
Reputation: 2

Joined: 19 Mar 2015
Posts: 324
Location: Paris

PostPosted: Sun Jan 08, 2017 4:23 pm    Post subject: Re: Minecraft gamehacking Reply with quote

Drollex wrote:
Hello, I want to make a minecraft trainer hack for infinite food, my code looks like this, but I have trouble finding the foodADD. I hope u can help me.

#include <iostream>
#include <windows.h>


using namespace std;

DWORD pID;
DWORD foodADD = 0xDC3eFCC4;
int food;
int nfood = food += 20;


int main()
{

cout<<"press arrow key"<<endl;

while(true){

if(GetAsyncKeyState(VK_UP)){


for(;Wink{
HWND hwnd = FindWindowA(0, ("Minecraft 1.8.8"));

GetWindowThreadProcessId(hwnd, &pID);
HANDLE pHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID);

ReadProcessMemory(pHandle, (LPVOID)foodADD, &food, (DWORD)sizeof(food), NULL);
WriteProcessMemory(pHandle, (LPVOID)foodADD, &nfood, (DWORD)sizeof(nfood), NULL);
}


}


}

system("pause");
return 1;
}

Please use code balises the forum offers.
It's unclear where you are stuck, maybe the foodAdd changing every time the game starts is your problem or maybe you are just asking you get your code fixed.
So the problem with your code is those lines :
Code:
int food;
int nfood = food += 20;

Since food is not initialised the value nfood and food hold is completely random.
Since both of those ints are defined globally you are adding 20 to random value at compile time and you will not add 20 to the value read from minecraft which is what you intended.


Code:
#include <iostream>
#include <windows.h>


using namespace std;

DWORD pID;
DWORD foodADD = 0xDC3eFCC4;
int food(0);
int nfood(0);


int main()
{

cout<<"press arrow key"<<endl;

while(true){

if(GetAsyncKeyState(VK_UP)){


for(;;){
HWND hwnd = FindWindowA(0, ("Minecraft 1.8.8"));

GetWindowThreadProcessId(hwnd, &pID);
HANDLE pHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, pID);

ReadProcessMemory(pHandle, (LPVOID)foodADD, &food, (DWORD)sizeof(food), NULL);
nfood = food +20;
WriteProcessMemory(pHandle, (LPVOID)foodADD, &nfood, (DWORD)sizeof(nfood), NULL);
}


}


}

system("pause");
return 1;
}
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