hounder Posted August 16, 2009 Share Posted August 16, 2009 (edited) alright, so ive search the forums for a bit and couldn't find a solution. heres my problem,im creating an application that reads memory address and such from a game. by using cheat engine to scan for values, i get things like this,now when i use "0x30477318" i have no problems. but i need to use the original address that cheat engine determines which is "Game.dll+557318". I've tried using the method posted with _MemoryModuleGetBaseAddress, but that doesn't seem to work. here is a snippet of the code im using,$iPID = ProcessExists("SomeGame.bin") $sModule = "Game.dll" $StaticOffset = Dec("557318") $dllbase = _MemoryModuleGetBaseAddress($iPID, $sModule) + $StaticOffset If $dllbase = @error Then _GUICtrlEdit_AppendText($Edit1,@CRLF & "" & "Failed to get memory module" & @CR) Else _GUICtrlEdit_AppendText($Edit1,@CRLF & "" & "Memory DLL Base Is:" & $dllbase & @CR) EndIfthis returns a value of "5600024" which im pretty sure is not what im looking for.if anyone can give me any insight on this i would be extremely grateful. Edited August 16, 2009 by hounder Link to comment Share on other sites More sharing options...
hot202 Posted August 16, 2009 Share Posted August 16, 2009 this is the problem that i have been having 2 hopw some 1 can work this out Link to comment Share on other sites More sharing options...
Belfigor Posted August 16, 2009 Share Posted August 16, 2009 http://www.autoitscript.com/forum/index.php?showtopic=78834&st=0&p=568869&#entry568869 try to look here [size="1"]My bear is so cute asleep in the closet, not even drinking vodka. My nuclear bomb name is Natasha.[/size] Link to comment Share on other sites More sharing options...
hounder Posted August 16, 2009 Author Share Posted August 16, 2009 http://www.autoitscript.com/forum/index.php?showtopic=78834&st=0&p=568869&#entry568869try to look herethis method seems to work with an exe, but not dll's. as i stated in my first post ive already tried the second method for dll's posted in that thread, but it doesnt seem to work. Link to comment Share on other sites More sharing options...
Szhlopp Posted August 16, 2009 Share Posted August 16, 2009 this method seems to work with an exe, but not dll's. as i stated in my first post ive already tried the second method for dll's posted in that thread, but it doesnt seem to work. Hey man. Without knowing the game, or having it to test off of. This should work: $iPID = ProcessExists("SomeGame.bin") ; You really have a process called "XXX .BIN" ? ;Make sure the PID isn't 0. If it is 0, that's your problem $StaticOffset = Dec("557318") ; Good $dllbase = _MemoryModuleGetBaseAddress($iPID, "Game.dll") ; Just get the address here... MsgBox(0, "", $dllbase) ; Does this say anything? if so, this function is working right ; if memory serves, $dllbase is an int. We convert it to an address by adding '0x' and the int dllbase and the int staticoffset $dllbase = "0x" & Hex($dllbase + $StaticOffset) ; Voala? Hopefully... MsgBox(0, "", $dllbase) You may also want to look at my pointer AU3/CE converter. Writes all this code for you=) Szh RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+' Link to comment Share on other sites More sharing options...
hounder Posted August 16, 2009 Author Share Posted August 16, 2009 (edited) Hey man. Without knowing the game, or having it to test off of. This should work: $iPID = ProcessExists("SomeGame.bin") ; You really have a process called "XXX .BIN" ? ;Make sure the PID isn't 0. If it is 0, that's your problem $StaticOffset = Dec("557318") ; Good $dllbase = _MemoryModuleGetBaseAddress($iPID, "Game.dll") ; Just get the address here... MsgBox(0, "", $dllbase) ; Does this say anything? if so, this function is working right ; if memory serves, $dllbase is an int. We convert it to an address by adding '0x' and the int dllbase and the int staticoffset $dllbase = "0x" & Hex($dllbase + $StaticOffset) ; Voala? Hopefully... MsgBox(0, "", $dllbase) You may also want to look at my pointer AU3/CE converter. Writes all this code for you=) Szh ive just tried this and im not sure its working correctly. the first value i get from $dllbase is 0, and after converting it into an address it returns 0x00557318. these are the same return values ive been getting after trying all the other methods listed on these forums. the $iPID isnt returning as 0 either, so im not sure what the problem is. unfortunately i cannot retrieve any pointers for this game since its protected (the proccess shuts down when attempting to debug, scan or dissamble). and yes, the extension for the process is .bin Edited August 16, 2009 by hounder Link to comment Share on other sites More sharing options...
hounder Posted August 18, 2009 Author Share Posted August 18, 2009 no one else has any ideas? >_ Link to comment Share on other sites More sharing options...
BrettF Posted August 18, 2009 Share Posted August 18, 2009 Doesn't this use gameguard? Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version! Link to comment Share on other sites More sharing options...
hounder Posted August 19, 2009 Author Share Posted August 19, 2009 Doesn't this use gameguard?it does, but it can be disabled pretty easily. hence why im using cheatengine. Link to comment Share on other sites More sharing options...
hot202 Posted August 19, 2009 Share Posted August 19, 2009 yeah there is prob a bypass 4 it or something. have u worked this out yet? Link to comment Share on other sites More sharing options...
hounder Posted August 19, 2009 Author Share Posted August 19, 2009 yeah there is prob a bypass 4 it or something. have u worked this out yet?no i havent found a solution yet. i really dont think gameguard is the issue either since its been disabled. Link to comment Share on other sites More sharing options...
hot202 Posted August 25, 2009 Share Posted August 25, 2009 can any1 help with this? Link to comment Share on other sites More sharing options...
hounder Posted September 5, 2009 Author Share Posted September 5, 2009 bump, still not solved. still looking for a solution. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now