Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Search adress with offset Cheat Engine
Results 1 to 6 of 6

Thread: Search adress with offset Cheat Engine

  1. #1

    Search adress with offset Cheat Engine

    Hi I have problem with find addres. I found it in cheat engine and find pointer, but i can't copy this to program, because there are 5 offsets and i dont know how use it.






    I found a way :
    Code:
    PID := core.Clients.list[0].PID;
    ProcessHandle := OpenProcess(PROCESS_ALL_ACCESS, false, pid);
     ReadProcessMemory(ProcessHandle, Ptr(integer(core.Clients.list[0].base) + $003AB874), @myVar, SizeOf(myVar), NumberOfBytesRead);
     ReadProcessMemory(ProcessHandle, Ptr(myVar + $5c8), @myVar, SizeOf(myVar), NumberOfBytesRead);
     ReadProcessMemory(ProcessHandle, Ptr(myVar + $330), @myVar, SizeOf(myVar), NumberOfBytesRead);
     ReadProcessMemory(ProcessHandle, Ptr(myVar + $35c), @myVar, SizeOf(myVar), NumberOfBytesRead);
     ReadProcessMemory(ProcessHandle, Ptr(myVar + $4), @myVar, SizeOf(myVar), NumberOfBytesRead);
     ReadProcessMemory(ProcessHandle, Ptr(myVar + $7e0), @myVar, SizeOf(myVar), NumberOfBytesRead);

  2. #2
    Senior Member
    Join Date
    Mar 2007
    Posts
    367

    RE: Search adress with offset Cheat Engine

    Whta's the type of myVar ?
    You should be reading 4 bytes so if myVar is smth else than integer then you've got to change that.

    Besides in the screeny you've got the starting pointer address = $3FBB14, yet in the code posted you have $3AB874, and different offsets...

  3. #3

    RE: Search adress with offset Cheat Engine

    I search again (next pointer) and change values.
    myVar DWORD
    NumberOfBytesRead Integer
    In code where is $5c8 it is last line in cheat engine, its on picture + 14

  4. #4
    Senior Member
    Join Date
    Mar 2007
    Posts
    367

    RE: Search adress with offset Cheat Engine

    You should be reading the pointer values from down to top looking at the CheatEngine.
    So from what you're saying seems like you're ok with that.
    DWORD is also sizeOf = 4 so it's ok.

    Try making one more, final RPM:
    Code:
    ReadProcessMemory(ProcessHandle, Ptr(myVar), @myVar, SizeOf(myVar), NumberOfBytesRead);
    In the pic, you've posted, you can see that offset $7F0 leads you to a memory address $020984D8.
    And at the top of the box you see value of that address is 5.
    So you're simply missing the final ReadProcessMemory (as noted above).


    HTH

  5. #5

    RE: Search adress with offset Cheat Engine

    you can do that
    Var
    myvar : integer;
    begin
    myvar := readinteger($3AB874 + base);
    myvar := readinteger(myvar +$5c8);
    ...
    myvar:= readinteger(myvar + $7e0);
    I find it in Muttley's source Insanus bot with zoom map.
    http://code.google.com/p/insanusbot/source/browse/trunk/Objects/GUI/GUIMap.pas
    27 to 32 line

  6. #6
    Senior Member
    Join Date
    Mar 2007
    Posts
    367

    RE: Search adress with offset Cheat Engine

    Yes, you can...
    But the result you get your way (with your pointer) is memory address of the value instead of the value itself.

    Muttley's source pointer you brought up is alot simplier pointer than yours thus the fewer number of RPM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •