Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[VB.NET] Help with pointer

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
L!GHTBL4DE
How do I cheat?
Reputation: 0

Joined: 06 May 2012
Posts: 3

PostPosted: Sun May 06, 2012 12:54 pm    Post subject: [VB.NET] Help with pointer Reply with quote

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
View user's profile Send private message
661089799107
Expert Cheater
Reputation: 3

Joined: 25 Jan 2009
Posts: 186

PostPosted: Sun May 06, 2012 2:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
L!GHTBL4DE
How do I cheat?
Reputation: 0

Joined: 06 May 2012
Posts: 3

PostPosted: Mon May 07, 2012 4:40 am    Post subject: Reply with quote

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
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Mon May 07, 2012 1:20 pm    Post subject: Reply with quote

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
View user's profile Send private message
L!GHTBL4DE
How do I cheat?
Reputation: 0

Joined: 06 May 2012
Posts: 3

PostPosted: Fri May 11, 2012 3:59 am    Post subject: Reply with quote

Been testing some stuff out the past few days with no success, any ideas???
Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Fri May 11, 2012 4:16 am    Post subject: Reply with quote

Post some code, it would be easier to see whats wrong.
_________________
Back to top
View user's profile Send private message
Tricky
How do I cheat?
Reputation: 0

Joined: 25 Aug 2012
Posts: 3

PostPosted: Sat Aug 25, 2012 4:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites