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 


[Visual Basic]Modify double and float addresses?

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

Joined: 12 May 2013
Posts: 5

PostPosted: Sun May 12, 2013 12:45 pm    Post subject: [Visual Basic]Modify double and float addresses? Reply with quote

I'm trying to make a game trainer with Visual Basic 2010. As far as using cheat engine goes, I know what I'm doing. I'm just having trouble making a visual basic program that does the job correctly.
I've been able to get it to modify the byte values of stuff but I need to get it to modify the float and double value on addresses.
I'm also using the ReadWritingMemory.vb file that is in the description on a youtube video. It's not letting me post urls yet, but you can get to the video i'm talking about by going to google, typing "make game trainer" and clicking on the first youtube video you see. It's 5:24 long.

Code:
Try
            WriteInteger("Crysis3", &H90F5F70, somevalue)

        Catch ex As Exception

This will modify the byte values of that address. When I test it, cheat engine shows that the byte values of that address got changed to the value of "somevalue" while showing that the double value just went to zero. This results in nothing happening in the game that I'm trying to modify. I need it to change the double to the value of the variable "somevalue" instead of the byte value in order to work.
Does anyone know how to do this? Thanks in advance.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25807
Location: The netherlands

PostPosted: Sun May 12, 2013 4:27 pm    Post subject: Reply with quote

change the writeInteger function to write 8 bytes and to take a double as input variable for the 3th parameter
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Mon May 13, 2013 5:53 am    Post subject: Reply with quote

I had a look at that memory class, it doesn't have anything for Double so you'l need to add that.
It did have WriteFloat so you can try that atleast.

_________________
Back to top
View user's profile Send private message
Veraster
How do I cheat?
Reputation: 0

Joined: 12 May 2013
Posts: 5

PostPosted: Mon May 13, 2013 10:09 am    Post subject: Reply with quote

Pingo wrote:
I had a look at that memory class, it doesn't have anything for Double so you'l need to add that.
It did have WriteFloat so you can try that atleast.

Thanks a lot. That worked when I used WriteFloat Mr. Green The address with the double value changed itself after it saw that the float changed so I don't need to change the double after all.
Back to top
View user's profile Send private message
Mal1t1a
Cheater
Reputation: 0

Joined: 03 Jan 2010
Posts: 40

PostPosted: Sun May 26, 2013 9:31 pm    Post subject: Reply with quote

I was just browsing these forums, saw a visual basics related thread, looked at this, noticed a familiar function name with familiar parameters, saw a very familiar filename, looked at the file from the video, and it blew my mind. I created that class that they are using Shocked

I've since updated and added more useful functions to add more functionality and control over the memory. It's not really documented well, but I thought that hopefully the arguments to the functions would be clear (as they seem to be).
Back to top
View user's profile Send private message
Pingo
Grandmaster Cheater
Reputation: 8

Joined: 12 Jul 2007
Posts: 571

PostPosted: Mon May 27, 2013 6:23 pm    Post subject: Reply with quote

Mal1t1a wrote:
I was just browsing these forums, saw a visual basics related thread, looked at this, noticed a familiar function name with familiar parameters, saw a very familiar filename, looked at the file from the video, and it blew my mind. I created that class that they are using Shocked

I've since updated and added more useful functions to add more functionality and control over the memory. It's not really documented well, but I thought that hopefully the arguments to the functions would be clear (as they seem to be).

Probably one of those leecher noobs on mpgh that posted your class.
btw you can't just go by the function name pff
WriteInteger isn't exactly a unique name.
Procname, address and value are also common parameters.

_________________
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