| View previous topic :: View next topic |
| Author |
Message |
L!GHTBL4DE How do I cheat?
Reputation: 0
Joined: 06 May 2012 Posts: 3
|
Posted: Sun May 06, 2012 12:54 pm Post subject: [VB.NET] Help with pointer |
|
|
Hi i have been following this tutorial here: cheathappens.c om/tut_visualbasicne t.a sp?tutID=14
My problem is that i am trying to use the pointer found in cheat engine, to update an address with my value.
The pointer cheatengine gives me is: "MyGame.exe"+024044F0 Offset 9D
I have tried P4Bytes(&H24044F0, &H9D, 999)
Why won't it work? I assume it's because i need to add the base address to "24044F0"? What am i doing wrong?
Thanks |
|
| Back to top |
|
 |
661089799107 Expert Cheater
Reputation: 3
Joined: 25 Jan 2009 Posts: 186
|
Posted: Sun May 06, 2012 2:03 pm Post subject: |
|
|
| Code: | | read(read(modBaseAddress + 0x24044F0) + 0x9D); |
You need to loop through the modules till you find "MyGame.exe", and then use the base address for it.
- CreateToolhelp32Snapshot
- Module32First
- Module32Next
Or you could just use CE to get the base address of "MyGame.exe", and use that instead. However I don't think it's guaranteed to always load at that address. |
|
| Back to top |
|
 |
L!GHTBL4DE How do I cheat?
Reputation: 0
Joined: 06 May 2012 Posts: 3
|
Posted: Mon May 07, 2012 4:40 am Post subject: |
|
|
Can i have a code sample please? I'm unsure ;/
I'd really like to get this trainer working as soon as possible as it's currently useless since i can't write to those pointers.
Thank you. |
|
| Back to top |
|
 |
Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Mon May 07, 2012 1:20 pm Post subject: |
|
|
It can all be done with system diagnostics.
To get a basic idea
| Code: | Dim Proc As Process() = Process.GetProcessesByName("someprocess")
For Each _Module As ProcessModule In Proc(0).Modules
If (_Module.ModuleName = "SomeModule") Then
'do Something with _Module.BaseAddress
'_Module.BaseAddress + &h24044F0
End If
Next |
So you're after the BaseAddress of a module in the collection. Get the process and loop the modules. Once you have the base address of the module you're after, just add the offset.
Do some reading
http://msdn.microsoft.com/en-us/library/system.diagnostics.processmodule.aspx _________________
|
|
| Back to top |
|
 |
L!GHTBL4DE How do I cheat?
Reputation: 0
Joined: 06 May 2012 Posts: 3
|
Posted: Fri May 11, 2012 3:59 am Post subject: |
|
|
| Been testing some stuff out the past few days with no success, any ideas??? |
|
| Back to top |
|
 |
Pingo Grandmaster Cheater
Reputation: 8
Joined: 12 Jul 2007 Posts: 571
|
Posted: Fri May 11, 2012 4:16 am Post subject: |
|
|
Post some code, it would be easier to see whats wrong. _________________
|
|
| Back to top |
|
 |
Tricky How do I cheat?
Reputation: 0
Joined: 25 Aug 2012 Posts: 3
|
Posted: Sat Aug 25, 2012 4:48 pm Post subject: |
|
|
| Same problem... no sulution so far... i found it working taking the addres just leff to the one you are using ->XXXXXXX and all the offsets, worked, but that address changes every time restarts |
|
| Back to top |
|
 |
|