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 


Finding incorrect addresses

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

Joined: 16 Jul 2017
Posts: 2

PostPosted: Sun Jul 16, 2017 4:40 am    Post subject: Finding incorrect addresses Reply with quote

I am writing a program in VB that will be changing values of static pointers that I found via Cheat Engine.

But I cannot find valid game address, program shows different that in Cheat Engine.

Code:
Public Class Form1

    Dim address As String

    Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
        ' convert game start address and static address from hex to int
        Dim address1 = Convert.ToInt32(309954, 16)
        Dim address2 = Convert.ToInt32(address, 16)

        ' add start address of game to static address
        Dim finalAddress = "&H" & Hex(address1 + address2)

        MessageBox.Show(finalAddress)
        'WriteMemory(Of Integer)(sum, NumericUpDown1.Value)
    End Sub

    Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
        'Getting address of game

        Dim processName As String = "AoWSM"

        Try
            Dim handle_s As Process = Process.GetProcessesByName(processName).First() 'Get processes with that name to IEnumerable, and get first element
            address = Hex(handle_s.MainModule.BaseAddress) 'Convert address to hex value
        Catch ex As Exception
            MessageBox.Show("An error occurded: " & ex.Message)
            Return
        End Try

        MessageBox.Show("Process address: " & address) '''''''''Showing wrong address
        SetProcessName(processName)
        NumericUpDown1.Enabled = True
        Button2.Enabled = True
    End Sub
End Class


I am using ReadWritingMemory module from: www mpgh.net/forum/showthread.php?t=760779
Back to top
View user's profile Send private message
OldCheatEngineUser
Whateven rank
Reputation: 2

Joined: 01 Feb 2016
Posts: 209

PostPosted: Sun Jul 16, 2017 5:20 am    Post subject: Reply with quote

open cmd, do "tasklist" and press enter.

find your game name, and copy it.

cmd is more accurate than task manager.
(except some symbols wont be shown there)

_________________
About Me;
I Use CE Since Version 1.X, And Still Learning How To Use It Well!
patched cheat engine tutorials
Back to top
View user's profile Send private message
I_dont_remember
How do I cheat?
Reputation: 0

Joined: 16 Jul 2017
Posts: 2

PostPosted: Sun Jul 16, 2017 10:31 am    Post subject: Reply with quote

OldCheatEngineUser wrote:
open cmd, do "tasklist" and press enter.

find your game name, and copy it.

cmd is more accurate than task manager.
(except some symbols won't be shown there)


I don't think that the name is the problem, because what will be AoWSM if not the game? The program is not throwing an exception but giving another address than in cheat engine.

Task name only different is ".exe" extension, but with that, it is throwing an exception, IEnumerable is empty.

PS.
I am editing game RAM, but when I want to change value via the program, game shutdowns immediately.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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