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 


need help with visual basic and CE

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions
View previous topic :: View next topic  
Author Message
Cerberus|Humanity First
How do I cheat?
Reputation: 0

Joined: 17 Jul 2018
Posts: 3

PostPosted: Tue Jul 17, 2018 11:02 am    Post subject: need help with visual basic and CE Reply with quote

so i believe i found the base address for a game called total war warhammer 2 for gold but when i enter it into VB with the code it doesnt work my question is do i need a different code or am i missing the correct base address? here is the file of the screenshot. thank you for your time and help i really want to create programs for people but it just isnt working with either this code or i didnt use the right method for finding the base address.


testtest22.PNG
 Description:
 Filesize:  11.22 KB
 Viewed:  2275 Time(s)

testtest22.PNG


Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Tue Jul 17, 2018 11:52 am    Post subject: Reply with quote

Perhaps this helps? https://www.cheatengine.org/forum/viewtopic.php?p=5690556&sid=cb3d52e7c44fbf78ef04afbd62890b18#5690556
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Cerberus|Humanity First
How do I cheat?
Reputation: 0

Joined: 17 Jul 2018
Posts: 3

PostPosted: Tue Jul 17, 2018 1:14 pm    Post subject: Reply with quote

sadly i got errors doing the one in the link is there another way?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Tue Jul 17, 2018 9:37 pm    Post subject: Reply with quote

¯\_(ツ)_/¯ that was just the first thing I found when I googled for an example of WriteDMAInteger.

Have you looked into what errors you're getting and what they mean?

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 199

Joined: 25 Jan 2006
Posts: 8518
Location: 127.0.0.1

PostPosted: Wed Jul 18, 2018 12:53 pm    Post subject: Reply with quote

Aside from potentially being a base address issue, make sure that you start Visual Studio as an administrator. (Right-Click > Run as Administrator) Otherwise, it will not be able to access other processes with calls such as OpenProcess/ReadProcessMemory/WriteProcessMemory etc.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Cerberus|Humanity First
How do I cheat?
Reputation: 0

Joined: 17 Jul 2018
Posts: 3

PostPosted: Thu Jul 19, 2018 6:42 pm    Post subject: Reply with quote

the errors i am getting using the links code is a overflow error here is what part of the code is causing it Return pMod.Item(i).BaseAddress.ToInt64
the original code works for 32 bits but i need 64 bit
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Thu Jul 19, 2018 6:52 pm    Post subject: Reply with quote

What exactly is overflowing? The return type Integer?

hm... googling, I'd guess that's the case since this says it's a 4 byte integer, try using Long/ULong instead of Integer, or as the actual docs for the BaseAddress says: IntPtr (since that's what https://msdn.microsoft.com/en-us/library/system.diagnostics.processmodule.baseaddress(v=vs.110).aspx says it actually is).

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 199

Joined: 25 Jan 2006
Posts: 8518
Location: 127.0.0.1

PostPosted: Fri Jul 20, 2018 3:04 pm    Post subject: Reply with quote

Cerberus|Humanity First wrote:
the errors i am getting using the links code is a overflow error here is what part of the code is causing it Return pMod.Item(i).BaseAddress.ToInt64
the original code works for 32 bits but i need 64 bit


Make sure you are compiling for 64bit then. And you need to ensure all types used with the code you are attempting to use a 64bit value with are meant for a 64bit value.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General Discussions 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