Jump to content

MemoryRead works, but not _MemoryPointerRead


Recommended Posts

Hello,

i want to know the match length of a Mugen fight. They accidentally removed logging in their latest version and will not update any further. So obviously i don't have any bad game hacking intentions.

My code:

#Include <Array.au3>
#include "nomadMemorynew.au3";
#include "MemoryGetBaseAddressUDF.au3";

SetPrivilege("SeDebugPrivilege", 1)

Global $Game_ID=WinGetProcess("M.U.G.E.N")


;TimeLeft address is: 02692750
;Pointer is: "mugen.exe"+00103398

$Address=0x02692750
$result = _MemoryOpen($Game_ID)

$CurrentScore=_MemoryRead($Address,$result)
ConsoleWrite ( 'Process Identifier1 ' & $Game_ID & @CRLF)
ConsoleWrite("Time Left " & $CurrentScore & @CRLF)

;~ _MemoryWrite($Address,$result,12345678)

_MemoryClose($result)

;^^^^^ THIS WORKS





$pid = ProcessExists("mugen.exe")
ConsoleWrite ( 'Process Identifier2 ' & $pid & @CRLF)

Global $Offset1[2]
$Offset1[0] = 0 ; Is ALWAYS 0.
$Offset1[1] = Dec("778") ; Stattic ADDR offset

$StaticOffset = Dec("00103398")
ConsoleWrite ( "StaticOffset = " & $StaticOffset & @CRLF)

$openmem = _MemoryOpen($pid) ; Open the memory
$baseADDR = _MemoryGetBaseAddress($openmem, 1)
ConsoleWrite ( "BaseAddress = " & $baseADDR & @CRLF)
$finalADDR = "0x" & Hex($baseADDR + $StaticOffset) ; Creates the final static address you read from.
ConsoleWrite ( "final: " &  $finalADDR  & @CRLF)
$Value = _MemoryPointerRead($finalADDR, $openmem, $Offset1)
_MemoryClose($openmem)
ConsoleWrite ( "Address = " & $Value[0] & @CRLF & "Value = " & $Value[1] & @CRLF)

Console Output:

Process Identifier1 7812
Time Left 3834
Process Identifier2 7812
StaticOffset = 1061784
BaseAddress = 0
final: 0x00103398
Address = 0x0000000000000778
Value = 0

Since 2 days i searched these forums over and over and can't figure it out. Hopefully someone can help me. Thanks in advance!

*Edit* No Screenshot i guess

 

 

Edited by TheScarletDevil
Link to comment
Share on other sites

Sorry @TheScarletDevil,

even if you talk about good intentions, you use Cheat Engine like you show us as screenshot (which is related to games, hacks, bots). This is simply not allowed here.
I guess the moderators would give you the same hint. I am sorry, but that's my point of view 😔 .

Best regards
Sven

FYI: @Jos, @Melba23, @JLogan3o13

Stay innovative!

Spoiler

🌍 Au3Forums

🎲 AutoIt (en) Cheat Sheet

📊 AutoIt limits/defaults

💎 Code Katas: [...] (comming soon)

🎭 Collection of GitHub users with AutoIt projects

🐞 False-Positives

🔮 Me on GitHub

💬 Opinion about new forum sub category

📑 UDF wiki list

✂ VSCode-AutoItSnippets

📑 WebDriver FAQs

👨‍🏫 WebDriver Tutorial (coming soon)

Link to comment
Share on other sites

16 minutes ago, TheScarletDevil said:

obviously i don't have any bad game hacking intentions

if you don't, ( and you've been a member of this forum for over a decade ), presenting the real goal will be the way to go, as otherwise this thread will be closed as per forum rules. But you know that, right ?

Follow the link to my code contribution ( and other things too ).
FAQ - Please Read Before Posting.
autoit_scripter_blue_userbar.png

Link to comment
Share on other sites

14 minutes ago, argumentum said:

if you don't, ( and you've been a member of this forum for over a decade ), presenting the real goal will be the way to go, as otherwise this thread will be closed as per forum rules. But you know that, right ?

Thank you for your reply. My real goal is to get how long the match lasted. Mugen is not even an online game that i could cheat on. I run simulated fights on it. I can remove anything you want from my post and just ask how to convert pointer adress to current adress or something. But i did not want to make a post without any information, sorry.

Link to comment
Share on other sites

  • Developers

Lets keep things simple: you are interacting with the game through mem reading so are interacting with the game..  so topic closed.

This is just so i can keep my sanity.

Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

  • Jos locked this topic
  • Moderators
6 hours ago, SOLVE-SMART said:

Sorry @TheScarletDevil,

even if you talk about good intentions, you use Cheat Engine like you show us as screenshot (which is related to games, hacks, bots). This is simply not allowed here.
I guess the moderators would give you the same hint. I am sorry, but that's my point of view 😔 .

Best regards
Sven

FYI: ...

BTW, there is this handy-dandy report feature you can utilize, no need to send us all a page.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...