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 


How to turn This script into a working trainer??

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

Joined: 10 Jan 2016
Posts: 9
Location: United Kingdom

PostPosted: Sat Jan 30, 2016 2:09 pm    Post subject: How to turn This script into a working trainer?? Reply with quote

Hey, Im a complete noob at CE to be completly honest, But, I need help turning this script into a working hotkey trainer.
(Again im a complete noob, so dont get mad at me)
Code:
alloc(newmem,2048,"Growtopia.exe"+F67C4)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
movss xmm2, [rdi+0C]

exit:
jmp returnhere

"Growtopia.exe"+F67C4"
jmp newmem
return here


To this:
Code:
alloc(newmem,2048,"Growtopia.exe"+F67C4)
label(returnhere)
label(originalcode)
label(exit)

newmem: //this is allocated memory, you have read,write,execute access
//place your code here
originalcode:
nop
nop
nop
nop
nop

exit:
jmp returnhere

"Growtopia.exe"+F67C4"
jmp newmem
return here


Can anyone help?
And yes, ive tried putting [ENABLE] And [DISABLE], It doesn't work when i generate the trainer.

_________________
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Sat Jan 30, 2016 2:40 pm    Post subject: Reply with quote

Why don't you let CE generate the code for you? That's much easier and prevents you from typing something wrong or missing some colons, like you did in your code ...
Back to top
View user's profile Send private message
Mcclures
How do I cheat?
Reputation: 0

Joined: 10 Jan 2016
Posts: 9
Location: United Kingdom

PostPosted: Sat Jan 30, 2016 4:56 pm    Post subject: Reply with quote

hhhuut wrote:
Why don't you let CE generate the code for you? That's much easier and prevents you from typing something wrong or missing some colons, like you did in your code ...


Wait, I didnt miss anything, I injected it straight from the game
I Went to the memory viewer, and i went to address 1400F67C4, which is a hack, and i changed it to random address, and it let me walk on things i couldnt walk on. its fine, But i cant turn it into a TRAINER

_________________
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Ponypussy was meant for man dick ylko
Back to top
View user's profile Send private message
Rydian
Grandmaster Cheater Supreme
Reputation: 31

Joined: 17 Sep 2012
Posts: 1358

PostPosted: Sat Jan 30, 2016 8:17 pm    Post subject: Reply with quote

http://forum.cheatengine.org/viewtopic.php?t=583856

Part 4 there shows you how to make a generic trainer out of scripts and stuff.

_________________
Back to top
View user's profile Send private message
hhhuut
Grandmaster Cheater
Reputation: 6

Joined: 08 Feb 2015
Posts: 607

PostPosted: Sun Jan 31, 2016 7:00 am    Post subject: Reply with quote

Mcclures wrote:
Wait, I didnt miss anything

Hm, then I wonder why that script is working ...
You declared the label for the backjump as
Code:
label(returnhere)

and jump to it using
Code:
exit:
jmp returnhere


But the actual label declaration is
Code:
"Growtopia.exe"+F67C4"
jmp newmem

return here   //You have an additional space and there's missing the colon at the end of the line to tell CE that it actually is a jump label ...
Back to top
View user's profile Send private message
ParkourPenguin
I post too much
Reputation: 152

Joined: 06 Jul 2014
Posts: 4717

PostPosted: Sun Jan 31, 2016 12:31 pm    Post subject: Reply with quote

CE tried to idiot-proof the AA as much as possible. I suppose in this case it makes it even more confusing for new people since they don't realize their code is wrong even though it may work. It should be something like this:
Code:
...
jmp returnhere

"Growtopia.exe"+F67C4":
jmp newmem
returnhere:

_________________
I don't know where I'm going, but I'll figure it out when I get there.
Back to top
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 222

Joined: 07 Nov 2008
Posts: 4438
Location: W kraju nad Wisla. UTC+01:00

PostPosted: Sun Jan 31, 2016 12:46 pm    Post subject: Reply with quote

I suggested DB to add an ON,OFF option for "PotentialLabels" feature and should be disabled by default (after installing, or after ceregreset). Rejected Crying or Very sad
_________________
Back to top
View user's profile Send private message MSN Messenger
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Sun Jan 31, 2016 1:07 pm    Post subject: Reply with quote

this isn't one of these situations
he did define the label, so the auto assembler will complain that it isn't defined

Code:

Error in line 2 (label(returnhere)) :label returnhere is not defined in the script


also, the address specifier is missing a : so that will fail as well

In short, this script won't even pass the syntax check, let alone edit wrong memory locations

_________________
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
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