Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 04:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



vb.net Multi-Level pointer diffrent result than the one in Cheat engine? help

Discussion on vb.net Multi-Level pointer diffrent result than the one in Cheat engine? help within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2010
Posts: 3
Received Thanks: 0
vb.net Multi-Level pointer diffrent result than the one in Cheat engine? help

Hello,
Im trying to read a value of a multi-level pointer using Vb.net but my result in VB comes out much different than the one in CE. I have tried this same method on other games ( SaintsRowTheThird, Titan Quest, and Eden Eternal) and it works perfectly but not on Tera. The value is either something negative like (-621185984) or 0.

Code:
  
Declare Function ReadProcessMemory Lib "kernel32" Alias "ReadProcessMemory" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByRef lpBuffer As Integer, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
    Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer

    Public phandle As Integer
    Public gbaseid As Int32
    Public GAMEEXE As String = "Tera"
    Private m_hProcess As IntPtr = IntPtr.Zero
    Public Function ReadMemANdOffset()
        Dim TeraProcess As Process = Process.GetProcessesByName(GAMEEXE)(0)
        Dim TeraProcessMainIndex As Integer = 0


        For i = 0 To TeraProcess.Modules.Count - 1
            If TeraProcess.Modules.Item(i).ModuleName.ToLower = GAMEEXE Then
                TeraProcessMainIndex = i

                Exit For
            End If
        Next

        phandle = TeraProcess.Handle
        gbaseid = TeraProcess.Modules.Item(TeraProcessMainIndex).BaseAddress.ToInt32()

        Dim OFFSETS As String() = {"01716B5C", "29c", "724", "30", "c", "48"}
        Dim CurMem As Integer = 0
        Dim CurAdd As Integer = gbaseid

        For i As Integer = 0 To OFFSETS.Length - 1
            Dim CurOFFset As Int32 = Int32.Parse(OFFSETS(i), System.Globalization.NumberStyles.HexNumber)
            If i = 0 Then
                ReadProcessMemory(phandle, CurAdd + CurOFFset, CurMem, 4, 0)
            Else
                ReadProcessMemory(phandle, CurMem + CurOFFset, CurMem, 4, 0)
            End If
        Next
        Dim FinalResult As Integer = CurMem
        Return FinalResult

    End Function

Pointer For HP:

<Address>"TERA.exe"+01716B5C</Address>
<Offset>48</Offset>
<Offset>C</Offset>
<Offset>30</Offset>
<Offset>724</Offset>
<Offset>29C</Offset>


What am I doing wrong here?
Please advise, im stuck.
Dinospy is offline  
Old 05/22/2012, 23:18   #2
 
qickly's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 351
Received Thanks: 57
What is your OS?
qickly is offline  
Old 05/22/2012, 23:55   #3
 
elite*gold: 0
Join Date: Mar 2010
Posts: 3
Received Thanks: 0
Im running on Windows 7 64bit
Dinospy is offline  
Old 05/23/2012, 16:55   #4
 
qickly's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 351
Received Thanks: 57
I found the problem... You can not read memory addresses on this way on windows vista or 7.
qickly is offline  
Thanks
1 User
Old 05/23/2012, 19:40   #5
 
elite*gold: 0
Join Date: Mar 2010
Posts: 3
Received Thanks: 0
Are you sure? Because it does work with some games just not tera. Is there another method that does work with win7?
Dinospy is offline  
Old 05/24/2012, 22:37   #6
 
qickly's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 351
Received Thanks: 57
I do not know a way to code it for this Os's.
Maybe download VMWare and use a virtual machine for reading the process memory in Windows XP...
WriteProcessMemory is supported by all OS's included Vista and 7.
qickly is offline  
Old 05/31/2012, 12:24   #7
 
P5yl0's Avatar
 
elite*gold: 0
Join Date: Feb 2010
Posts: 113
Received Thanks: 12
wrong cause that are wrong offsets...

"TERA.exe"+Base Adress >> changes >> actual.. rev.1729

"TERA.exe"+01744E94
Pointer1=0x14
Pointer2=0x30
Pointer3=0xC
CurrentHP=0x48

so have fun searching the others..^^

if anyone has..Offsets for
-TargetName
-Gathering (gatherable object yes/no)

would help me a lot^^
ty

cya
P5yl0 is offline  
Reply


Similar Threads Similar Threads
Cheat Engine Pointer Problem
04/03/2012 - General Coding - 8 Replies
Hallo E*Pvp, Ich hab da ein problem mit Cheat Engine. Wenn ich auf eine adresse rechtsklick mache und auf "Find out what accesses this adress" oder das andere klicke dann fragt er mich ob ich das wirklich machen will da der debugger von cheat engine attached. Ich drücke auf continue und dann öffnet sich ein fenster. Alles gut soweit. In einem TuT stand, man soll dann eine aktion durchführen die was am value verändert. Sobald ich das mache schließt sich mein Spiel. Das heißt ich kann den...
HP - Pointer mit Cheat Engine suchen ?
03/19/2011 - Flyff - 3 Replies
Hi Leute, ich lerne schon seit einiger Zeit C++ und würde mich nun gerne an einen Bot für Flyff heranwagen. Nun probierte ich, den Pointer für die HP mit Cheat Engine zu suchen, doch immer wenn ich gerade den ersten Offset gefunden habe, stürzt mein Spiel ab. Jetzt meine Frage: Woran liegt das und wie kann man es beheben ? Oder gibt es eine andere Möglichkeit diese Pointer zu suchen ? Ich habe die Neuz.exe sowie die flyff.exe (welche ist die richtige ?) schon mal in Ollydbg und IDA Pro...
Cheat Engine Pointer für 4story Eg
09/09/2010 - 4Story Hacks, Bots, Cheats & Exploits - 7 Replies
Habe es rausgenommen
Pointer setzen (Cheat Engine)
05/03/2010 - General Coding - 0 Replies
Hi Leute, versuche gerade einen Pointer bei Cheat Engine zu setzen, bekomme es aber nicht hin, hab auch schon viele Tutorials angeschaut, aber da siehts immer ganz anderes aus : http://img402.imageshack.us/img402/5551/bildln.jpg Kann mir jetzt jemand sagen wie ich dort einen gescheiten Pointer hinbekomme, wäre sehr nett .(Geht um den Attack Speed btw) MFG Double777
Cheat Engine Pointer
11/19/2009 - General Coding - 11 Replies
Hi Ich hab mir Cheat Engine 5.5 herunter geladen und mir ein paar Tuts rein gezogen und nachgemacht. Ein paar Skill/Punkte werte bei Flashgames etc. kann ich schon verändern. Allerdings weiß ich nicht genau wie ich nen Pointer finde. Ich hab mir beim Solitär Tutorial nen Pointer gemacht das konnte ich aber nur weil der Maker das so schön vorgemacht hat. Ich habe aber noch nicht ganz kapiert wie ich alleine einen Pointer finde. Ich hab mir das Pointer Vid-Tut von Vulcanraven bereits angesehen...



All times are GMT +1. The time now is 04:37.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.