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 


what is wrong with this script? >_>

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

Joined: 22 May 2009
Posts: 9

PostPosted: Sat May 23, 2009 7:27 pm    Post subject: what is wrong with this script? >_> Reply with quote

i'm currently using the following code, to get from a base pointer to the value, i'm looking for, but the script still throws out different values, then my cheatengine(wich shows them exactly how i want them), can you see any mistakes in it? $1 is the only thing, wich is shown right(as in cheatengine), from $2 on, the returned value is wrong, so i think it has something to do with the offsets... Razz

Code:
#include <Array.au3>
#include <NomadMemory.au3>
SetPrivilege("SeDebugPrivilege", 1)
$ID=_MemoryOpen(ProcessExists("alefclient.exe"))
$Address = 9023416
$OFFSET1 = 1188
$OFFSET2 = 92
$OFFSET3 = 36
$OFFSET4 = 116
$OFFSET5 = 1824
$1 = _MemoryRead($Address, $ID)
$2 = _MemoryRead($1 + $OFFSET1, $ID)
$3 = _MemoryRead($2 + $OFFSET2, $ID)
$4 = _MemoryRead($3 + $OFFSET3, $ID)
$5 = _MemoryRead($4 + $OFFSET4, $ID)
MsgBox(0,"My value", $5)
_MemoryClose($ID)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 474

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

PostPosted: Sat May 23, 2009 8:09 pm    Post subject: Reply with quote

perhaps the order of offsets is wrong
remember that ce's pointer window goes from bottom to top
(also, you're not using $offset5)

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
mildblue
How do I cheat?
Reputation: 0

Joined: 22 May 2009
Posts: 9

PostPosted: Sun May 24, 2009 4:30 am    Post subject: Reply with quote

it was the fergotten offset, thank you! Smile
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