Re: [Delphi] Memory Modification Tutorial & Template
As I say you need base address + offset
And one fucntion which may help you:
Code:
function GetAddyfrmpointer(baseaddress:dword;offset:dword):dword;
var
a: dword;
x: dword;
i: integer;
offsetcount: integer;
offsets:array of dword;
b:integer;
maxid:integer;
begin
offsetcount:=1;
b:=0;
setlength(offsets,1);
offsets[b]:=offset;
a:=baseaddress;
i:=0;
while (i<offsetcount) do
begin
if not readprocessmemory(processhandle,pointer(a),@a,4,x) then exit;
inc(a,offsets[i]);
inc(i);
result:=a
end;
end;
and then you can use it like this:
Code:
real_address:=GetAddyfrmpointer($your_base,$your_offset);
Re: [Delphi] Memory Modification Tutorial & Template
Hmm lets see..
Base address: Is this the address of the actual "black" value or is it some sort of starter address of the entire game (to start counting from). In the latter case how do I get it ?
Offset: Is this the "distance" between the base address and the black address ? If so how do I calculate it ?
Re: [Delphi] Memory Modification Tutorial & Template
DJK
You can check [Only registered and activated users can see links. Click Here To Register...] for example how to read data from memory.
Quote:
Originally Posted by wiki
In computer science, an offset within an array or other data structure object is an integer indicating the distance (displacement) from the beginning of the object up until a given element or point, presumably within the same object. The concept of a distance is valid only if all elements of the object are the same size (typically given in bytes or words).
In computer engineering and low-level programming (such as assembly language), an offset usually denotes the number of address locations added to a base address in order to get to a specific absolute address. In this (original) meaning of offset, only the basic address unit, usually the 8-bit byte, is used to specify the offset's size. In this context an offset is sometimes called a relative address.
-- 2010-11-29, 18:17 --
DJK
Your last post is here:
[Only registered and activated users can see links. Click Here To Register...]