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 


[Please Help] Visual Basic Trainer

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
Zeana
How do I cheat?
Reputation: 0

Joined: 22 Aug 2015
Posts: 6
Location: Poland

PostPosted: Sat Aug 22, 2015 9:56 pm    Post subject: [Please Help] Visual Basic Trainer Reply with quote

Hey! so i'm totally new to coding like this but I'm trying to make a trainer with offsets.. I searched up tutorials but all doesn't work for me.. Either that or I just entered the wrong Address or wrong code

Okay so here's my code in VB

Try
WriteDMAInteger("retardgameonline",&H???????, {&H38, &H15c, &H48c, &H384, &H4c}, TextBox1.Text, 5)
Catch

End Try

I have few questions...
1st:What address do i enter in the area i typed " ???????? "
2nd:This address is in Float. Not 4Byte and the tutorials i searched up is in 4Byte. so maybe my code is wrong?
3rd:Someone said i should enter the static address in " ??????? " I tried that and it doesn't work

I attatched a screenshot of my pointers

Maybe some of you will say my pointers are wrong, but I'm pretty sure they are right, on cheat engine it works totally fine.

Or that my process name is wrong. No i assure u it's 100% right.

Please help i'm stuck at this for hours.. I tried entering most addresses i saw on the screen to " ??????? "

Thank you so much!



pointer.PNG
 Description:
 Filesize:  51.3 KB
 Viewed:  10417 Time(s)

pointer.PNG



_________________
Total crap at programming xD
Back to top
View user's profile Send private message
Daijobu
Master Cheater
Reputation: 13

Joined: 05 Feb 2013
Posts: 301
Location: the Netherlands

PostPosted: Sun Aug 23, 2015 2:31 am    Post subject: Reply with quote

1. You're attempting to memory edit an online MMORPG. Wrong forums.
2. Visual Basic.
3a. "WriteDMAInteger" is not part of the MSDN library.
3b. Copy and Pasted public function(s) which have been around since a year or 5 to 6.
4. You're attempting to memory edit an online MMORPG. Wrong forums.

I'm pretty sure you can't just slap a bunch of offsets together and expect them to work. But I can't see your function so I can only assume it looks like the one I found at Google result #1.

In which case you can't just go and stack offsets in one line. You'll have to add them using multiple variables (or the update the same).

_________________
Scripts/tables from scratch. Relation to other scripts is coincidental. Use of posted code is credited properly.
Euro Truck Simulator 2 Backwards Compatible Cheat
American Truck Simulator Backwards Compatible Cheat
Back to top
View user's profile Send private message
Zeana
How do I cheat?
Reputation: 0

Joined: 22 Aug 2015
Posts: 6
Location: Poland

PostPosted: Sun Aug 23, 2015 2:51 pm    Post subject: Reply with quote

Hey thanks for your reply.
In CE, this pointer work perfectly.
If i write to the static address without offsets, It works too in VB.


Daijobu wrote:
1. You're attempting to memory edit an online MMORPG. Wrong forums.
2. Visual Basic.
3a. "WriteDMAInteger" is not part of the MSDN library.
3b. Copy and Pasted public function(s) which have been around since a year or 5 to 6.
4. You're attempting to memory edit an online MMORPG. Wrong forums.

I'm pretty sure you can't just slap a bunch of offsets together and expect them to work. But I can't see your function so I can only assume it looks like the one I found at Google result #1.

In which case you can't just go and stack offsets in one line. You'll have to add them using multiple variables (or the update the same).

_________________
Total crap at programming xD
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Aug 23, 2015 5:14 pm    Post subject: Reply with quote

Read the integer at "THEADSTACK+whatever".
Add &H4C to that value.
Read the next integer, using the previous value as the address.
Add &H384 to that value.
Read the next integer, using the previous value as the address.
Add &H48C to that value.
etc. etc. etc.
Back to top
View user's profile Send private message
Zeana
How do I cheat?
Reputation: 0

Joined: 22 Aug 2015
Posts: 6
Location: Poland

PostPosted: Sun Aug 23, 2015 6:45 pm    Post subject: Reply with quote

Hey xD Thanks for your reply. <3

So if i understand you properly.. you are saying that I should do this

"THREADSTACK1"-00000B60

So, 00000B60 + 4C in a Hex Calculator? And after i get the answer,
Answer + 384 then
Answer+ 48C

And I keep repeating this till i added all my ofsets and i'll get a final address and that is the address i'll use at the place i type " ?????? "
? Very Happy

I'm not really sure about this it's my first time doing Pointers and using them on VB Very Happy


Zanzer wrote:
Read the integer at "THEADSTACK+whatever".
Add &H4C to that value.
Read the next integer, using the previous value as the address.
Add &H384 to that value.
Read the next integer, using the previous value as the address.
Add &H48C to that value.
etc. etc. etc.

_________________
Total crap at programming xD
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Aug 23, 2015 9:05 pm    Post subject: Reply with quote

I do not know how your WriteDMAInteger code looks.

First, you need to find the address of "THREADSTACK1".
Let's say this address is 01230000.

Subtract &HB60 from that address. This gives us 122F4A0.
Read the integer at address 122F4A0.

Lets say that call returns the value 03456700.
Add &4C to that value. This gives us 0345674C.

Now keep doing that using all of the offsets in your list.

Looking back at your screenshot and the code you posted, your offsets appear to be backwards.
I would think it should have been:
WriteDMAInteger("retardgameonline",&H???????, {&H4C, &H384, &H48C, &H15C, &H38}, TextBox1.Text, 5)
You apparently still need some other code to get the address of: "THREADSTACK1"-00000B60
Back to top
View user's profile Send private message
Zeana
How do I cheat?
Reputation: 0

Joined: 22 Aug 2015
Posts: 6
Location: Poland

PostPosted: Sun Aug 23, 2015 10:35 pm    Post subject: Reply with quote

sooo.. the Address of THREADSTACK1 is 00000B60? since it is
"THREADSTACK1"-00000B60

And How do i read the integer of an address?


Zanzer wrote:
I do not know how your WriteDMAInteger code looks.

First, you need to find the address of "THREADSTACK1".
Let's say this address is 01230000.

Subtract &HB60 from that address. This gives us 122F4A0.
Read the integer at address 122F4A0.

Lets say that call returns the value 03456700.
Add &4C to that value. This gives us 0345674C.

Now keep doing that using all of the offsets in your list.

Looking back at your screenshot and the code you posted, your offsets appear to be backwards.
I would think it should have been:
WriteDMAInteger("retardgameonline",&H???????, {&H4C, &H384, &H48C, &H15C, &H38}, TextBox1.Text, 5)
You apparently still need some other code to get the address of: "THREADSTACK1"-00000B60

_________________
Total crap at programming xD
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Aug 24, 2015 4:02 pm    Post subject: Reply with quote

You take a Visual Basic class to learn what you are coding.
Until then, use Cheat Engine...


Last edited by Zanzer on Mon Aug 24, 2015 4:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Zeana
How do I cheat?
Reputation: 0

Joined: 22 Aug 2015
Posts: 6
Location: Poland

PostPosted: Mon Aug 24, 2015 4:13 pm    Post subject: Reply with quote

could you just help me with this please
i really have to complete this..

_________________
Total crap at programming xD
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Aug 24, 2015 4:22 pm    Post subject: Reply with quote

I can't, I don't know how your code works.
Back to top
View user's profile Send private message
Zeana
How do I cheat?
Reputation: 0

Joined: 22 Aug 2015
Posts: 6
Location: Poland

PostPosted: Mon Aug 24, 2015 6:17 pm    Post subject: Reply with quote

Well.. I'm using ReadWritingMemory.vb that i got from some youtube tutorial

And here's a screenshot of my code in VB



1.PNG
 Description:
 Filesize:  42.03 KB
 Viewed:  10094 Time(s)

1.PNG



_________________
Total crap at programming xD
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Mon Aug 24, 2015 6:37 pm    Post subject: Reply with quote

We do not support online / multiplayer hacking on this site.
http://forum.cheatengine.org/faq.php#0

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    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