Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Perfect World
You last visited: Today at 20:21

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

Advertisement



Memory Question

Discussion on Memory Question within the Perfect World forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2009
Posts: 39
Received Thanks: 0
Memory Question

Hey epvp,


I have been doing a for loop in C from 0 to 769 and my loop has been "crashing" due to an exception.

It took me a while to figure out, but I started to realize that every mob ptr requires you to do the index * 0x4

Code:
0x00AE9944 + 0x1C + 0x1C + 0x24 + 0x50 + i * 0x4 + 0x11C
Now, I figured out that some i * 0x4 simply return ?? in CheatEngine, so I was wondering how to fix this problem, because not every i * 0x4 returns 0 therefore it causes my code to crash.

Does anyone know how this pointer exactly works? The range of the index? The incorrect indexs that return ?? Or simply know a way to fix this.

Am I doing something wrong? Because i * 0x4 would be 0,4,8,12,16,20,24,28,32, and so on, which doesnt seem too reliable to me.

Thanks in advance, I would really like some help on this one since I got everything else to work!
Shortpants is offline  
Old 05/09/2011, 10:48   #2
 
elite*gold: 0
Join Date: Mar 2009
Posts: 112
Received Thanks: 123
Cheat Engine returns ?? for nil (null) pointer. What you need to do in your code is check return values for nil (null) pointer, before trying to use it as a valid pointer (or valid piece of data, whatever it may be).

I haven't been following the latest offsets, but assuming that this:
Code:
0x00AE9944 + 0x1C + 0x1C + 0x24 + 0x50 + i * 0x4
returns pointer to an object's struct, pseudo code would be something like:
Code:
somePointer = 0x00AE9944 + 0x1C + 0x1C + 0x24 + 0x50 + i * 0x4
if somePointer is not nill then
  someObject = read data at somePointer address
Shareen is offline  
Old 05/09/2011, 10:58   #3
 
elite*gold: 0
Join Date: Jul 2009
Posts: 39
Received Thanks: 0
Well, I know its a NULL ptr, but I don't see how I could check whether a ptr has a NULL value before reading it since I'm working at memory level (this is done in a DLL which is injected).
Shortpants is offline  
Old 05/09/2011, 12:04   #4
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
In delphi :

if @somevalue = nil then exit_or_do_whatever_you_wanna_do;

@ is an operator that gives pointer to the variable its applied on. Maybe its simular in your language.
Sᴡoosh is offline  
Old 05/09/2011, 13:37   #5
 
elite*gold: 0
Join Date: Jul 2009
Posts: 39
Received Thanks: 0
Fixed with SEH, thanks all.
Shortpants is offline  
Reply


Similar Threads Similar Threads
Question about memory finding.
08/21/2010 - GW Bots - 1 Replies
Hey,I'm pretty much new at memory finding/reading,I've been trying to do it by myself until now,I decided to seek help here because I am somewhat confused. I know how to find base memory address in Guild Wars and I've found out that 1b4 is the offset for "skill id".However if I use base memory address and 1b4 offset it gives me the skill I AM casting.How do I make it so it displays the skill id my target is casting? I've tried pretty much every possibilty with my "knowledge" but I...
[QUESTION] HP Memory Address
05/17/2009 - CO2 Programming - 18 Replies
Is it possible to get the memory address of HP? I read around and saw that it is DMA but more reading around the AutoIt forums said there's a way around that by getting the memory address of the pointer to HP. I tried cheatengine but not really sure what to look for. I'm now starting to get the hang of programming in general so maybe my terms aren't correct. Anyone understand what I'm looking for? P.S. I'm trying to find out to make a memory-based auto-potter.
Memory Editor question.
08/05/2008 - Conquer Online 2 - 4 Replies
How would I change an item into something like a stancher using a memory editor such as Cheat Engine? And then change it back of course?
[Question] VB.Net and process memory
07/28/2008 - .NET Languages - 5 Replies
Hello, Im having some trouble with read/write process Memory and Im hoping someone here could help me out a little. Code: Dim iMoneyAddress As Integer iMoneyAddress = 90720324 Dim Reader As New MemReader.ProcessMemoryReader() Dim MyProcs As System.Diagnostics.Process() = System.Diagnostics.Process.GetProcessesByName(&quo t;Conquer")
[Question] Memory address of VP?
06/06/2008 - Conquer Online 2 - 24 Replies
Anyone know the memory address for Virtue Points? Or is this stored on the server? How is it that people get it on their tools...



All times are GMT +1. The time now is 20:23.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.