CE and dll pointers

You can find tutorials and ask questions about memory editing here. You may also post any game-specific information you find (ie. cheat tables or addresses).
Post Reply
Message
Author
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

CE and dll pointers

#1 Post by lisa » Thu Dec 10, 2015 11:38 pm

Ok so pretty much most of my CE usage was in RoM and the pointer statics were always client.exe but I have been playing around with a game lately and every single pointer result is a .dll

Ok so I have a pointer which has been reliable and works fine in CE and uses "OpenAL64.dll" + #####
So is there a way to use the dll name to get the value of where to start pointer? The value changes every time I start game.

I have found a static which seems to be the value of the "OpenAL64.dll" and I will probably do some testing using that to see if it's reliable or not but getting the value of the .dll like CE has would make it easier/more reliable.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: CE and dll pointers

#2 Post by BlubBlab » Fri Dec 11, 2015 3:23 am

You mean this ?
number process.getModuleAddress(number procId, string moduleName)

Look up the address of a module within a process and return its origin address. Often this is used to lookup the location where a DLL is loaded. 'moduleName' should be the full name. i.e. "whatever.dll" If the function fails or it could not locate the module, it returns nil.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: CE and dll pointers

#3 Post by lisa » Fri Dec 11, 2015 5:46 am

ahh yeah I didn't know that would be called a module =)

I'll have to play with it more, currently getting nil

Code: Select all

local procid = process.findByWindow(window.find(targetWindowName, targetWindowClass))
-- procid works fine as it is used in other areas such as
proc = process.open(procid)

process.getModuleAddress(procid, "OpenAL64.dll")
-- is nil, copy pasted name from CE so it has to be right.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
Administrator
Site Admin
Posts: 5306
Joined: Sat Jan 05, 2008 4:21 pm

Re: CE and dll pointers

#4 Post by Administrator » Fri Dec 11, 2015 12:35 pm

I suppose it could be because it's a 64-bit version and the code might not account for that. Can you test this with another 32 and 64 bit application?

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: CE and dll pointers

#5 Post by BlubBlab » Sat Dec 12, 2015 2:21 am

You can also try

Code: Select all

/*	process.getModules(number procId)
Returns (on success):	table(name => address pairs)
Returns (on failure):	nil

Returns a list of all available modules in a process as key/value pairs.
*/
One thing to note doing this with the 32-bit version of MM2 to an 64-bit process won't work only the other way around.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests