|
Cheat Engine The Official Site of 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
|
Posted: Sun Jul 16, 2017 4:40 am Post subject: Finding incorrect addresses |
|
|
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 |
|
|
OldCheatEngineUser Whateven rank Reputation: 20
Joined: 01 Feb 2016 Posts: 1587
|
Posted: Sun Jul 16, 2017 5:20 am Post subject: |
|
|
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!
Jul 26, 2020
STN wrote: | i am a sweetheart. |
|
|
Back to top |
|
|
I_dont_remember How do I cheat? Reputation: 0
Joined: 16 Jul 2017 Posts: 2
|
Posted: Sun Jul 16, 2017 10:31 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|