Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 08:54

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Multilayer Point C++

Discussion on Multilayer Point C++ within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Dec 2009
Posts: 3
Received Thanks: 0
Multilayer Point C++

Can anyone tell me why this crashes my game? Or perhaps a better way to do this.

Code:
	DWORD thefirst = (*(DWORD*)Base + 0x1343794);
	DWORD thesecond = (*(DWORD*)thefirst + 0);
	DWORD thethird = (*(DWORD*)thesecond + 0x11c);
	DWORD theresult = (*(DWORD*)thethird + 0x228);
	
	
	char msg[12];
	sprintf (msg, "%i", theresult);
	MessageBox(NULL, msg, NULL, MB_OK);
Pwno_ is offline  
Old 09/13/2012, 09:02   #2
 
elite*gold: 0
Join Date: Apr 2006
Posts: 6,597
Received Thanks: 1,830
attach a debugger and then you see where it crashes.

maybe you are reading from a memory space without the reading rights. check out virtualprotectex
Medix is offline  
Old 09/13/2012, 13:56   #3




 
Omdi's Avatar
 
elite*gold: 1
Join Date: Apr 2010
Posts: 13,772
Received Thanks: 15,036
Use VirtualProtectEx and IsBadCodePtr ;-)
Omdi is offline  
Old 09/14/2012, 03:56   #4
 
elite*gold: 0
Join Date: Dec 2009
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by Neeya Nanaa View Post
Use VirtualProtectEx and IsBadCodePtr ;-)
Haha, I have little experience in coding, is there a superior way to code multi-level pointers?
Pwno_ is offline  
Old 09/14/2012, 06:17   #5
 
elite*gold: 9
Join Date: Dec 2009
Posts: 1,071
Received Thanks: 819
In a loop?
.Infinite is offline  
Old 09/14/2012, 13:51   #6
 
elite*gold: 258
Join Date: May 2010
Posts: 847
Received Thanks: 3,940
Quote:
Originally Posted by Neeya Nanaa View Post
Use VirtualProtectEx and IsBadCodePtr ;-)
Never use IsBadCodePtr ...
-PinkiWinki- is offline  
Old 09/14/2012, 15:25   #7
 
Dr. Coxxy's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
Quote:
Originally Posted by -PinkiWinki- View Post
Never use IsBadCodePtr ...
using it is better than using nothing.
and pls dont tell about page-faults etc. its a ******* hack, who cares anyway?

@topic
you may short the pointer deref'ing:

Code:
DWORD thefirst = (*(DWORD*)Base + 0x1343794); // i guess you forgot a () here... that may cause your crash. casting and deref is executed before the addition look here: http://www.cplusplus.com/doc/tutorial/operators/
// correct would be: DWORD thefirst = *(DWORD*) (Base + 0x1343794);
// same could be for the others, dunno how it originally was...
DWORD thesecond = (*(DWORD*)thefirst + 0);
DWORD thethird = (*(DWORD*)thesecond + 0x11c);
DWORD theresult = (*(DWORD*)thethird + 0x228);
is the same as:
Code:
DWORD theresult = *(DWORD*) ((*(DWORD*) ((**(DWORD**) (Base + 0x1343794)) + 0x11C)) + 0x228);
EDIT:
you may show us a screenshot of the cheatengine/whatever program you found this multilevel pointer, and we may assist you with creating correct code.
Dr. Coxxy is offline  
Thanks
3 Users
Old 09/17/2012, 02:35   #8
 
elite*gold: 0
Join Date: Dec 2009
Posts: 3
Received Thanks: 0
Its a ID pointer for mouse over in Firefall.
Pwno_ is offline  
Reply


Similar Threads Similar Threads
[FS] FREESTYLE street Basketball 3 Point, Rebound, and 2 point Hack
06/11/2012 - General Gaming Discussion - 133 Replies
My cousin was just hired as product manager for levelup philippines, he says the team for freestyle philippines knows all the available hacks and cheats, including the: 1. 3 point hack 2. rebound hack 3. and he even told me theres a 2 point hack they need to know these hacks for them to solve it. i will share these hacks and cheats in a little while.
Mw2 Multilayer
01/20/2012 - Call of Duty - 7 Replies
So ich habe gestern mal wd Mw2 Online gespielt war Rang 29 ( hacke nicht weil es sonst lw ist) Komme auf den ersten server und bin auf einmal prestige 7 lvl 70 da habe ich mir gedacht WTF!!?? was könnte da passiert sein ?^^



All times are GMT +1. The time now is 08:54.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.