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 


Question regarding scripting in Game Trainer Studio.

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

Joined: 04 Aug 2008
Posts: 6

PostPosted: Mon Nov 17, 2008 4:08 pm    Post subject: Question regarding scripting in Game Trainer Studio. Reply with quote

Hi, I'm still working on that trainer of mine. I achieved my previous goal, which was to make the trainer display health without the person who uses it to be able to edit it. Now, I want to make it more advanced.

So, you see, the game usually runs in fullscreen as it's more comfortable that way. However, keeping the trainer running would require me to play in windowed mode so I can see stuff. Then I decided to use GTS's scripting features. For a certain amount of HP, the trainer should change a string in game. This string is useless otherwise but it could display the information I need. I found it's address and I wrote the code. Unfortunately, GTS doesn't have a help file and all I could look at were the demo trainers included with it. That's the script I made up:

Code:
ReadMemory DWORD 5A54C2
<code> .if eax == 00
Poke 129060B 7C 7C 4F 48 50 00
<code> mov Version, 1
<code> .elseif eax == 1
Poke 129060B 7C 7C 31 48 50 00
<code> mov Version, 2
<code> .elseif eax == 2
Poke 129060B 7C 7C 32 48 50 00
<code> mov Version, 3
<code> .elseif eax == 3
Poke 129060B 7C 7C 7C 33 48 50 00
<code> mov Version, 4
<code> .elseif eax == 4
Poke 129060B 7C 7C 7C 34 48 50 00
<code> mov Version, 5
<code> .elseif eax == 5
Poke 129060B 7C 7C 7C 7C 35 48 50 00
<code> .elsif
<code> .endif


It's a custom code I set up for an EditBox. It looks fine for me, it reads the health and for every one of the cases listed, it sets 129060B (the string) to the text I want it to. Health, that is. It appears something's wrong and it can't be compiled. It's an EditBox and I thought it couldn't compile because that was I had left it empty. I added Func s.SetText 'text goes here' in the beginning and it compiled. I ran it, but the code seemed to do nothing. I am sure those addresses and values are correct as they work fine in Cheat Engine.

Where am I wrong?

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