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 


Trainer Keypoll interval?

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

Joined: 14 Oct 2012
Posts: 6

PostPosted: Sun Jan 20, 2013 8:53 pm    Post subject: Trainer Keypoll interval? Reply with quote

So I've been creating this little tool that takes coordinates from the user and moves the camera to that position with linear interpolation, but then I though it'd be good to have the ability to move around freely.

I tried creating a hotkey through the table and createHotkey (Which would be better since the user would be able to set the speed too) but both of them were very laggy and slow when activated.

Is there a good solution to my problem?
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 20, 2013 10:32 pm    Post subject: Reply with quote

"little tool" == standalone CE trainer Question

It's possible. You need newest lazarus and CE6.2 source.
Then go to hotkeyhandler.pas. At line 50-something there will be:

Code:
var hotkeythread: THotkeythread;
CSKeys: TCriticalSection;

hotkeyPollInterval: integer=100;
hotkeyIdletime: integer=100;


Change those "100" to your liking, then compile your own ce.

Unfortunately, it will change hotkey "delays" globally, not only for chosen hotkeys.


Another way:
use assembler and this GetAsyncKeyState API (search forums).

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

Joined: 14 Oct 2012
Posts: 6

PostPosted: Mon Jan 21, 2013 7:49 pm    Post subject: Reply with quote

Yes, the "little tool" is a .exe trainer that I created with CE tools.

Well, I got the newest source and Lazarus, but compiling a working version is a problem. When I finally got a working version, it couldn't load the old tables without crashing (Project Cheat Engine 6.2 raised exception class 'External: SIGSEGV'. At address 404370"
So I saved the forms separately, loaded them and copy-pasted the code. I tried executing the script and the trainer worked fine, until I tried giving it the Z coordinate address (Pointers were impossible to find, so the trainer asks for one of the coordinate's address and calculates the others, after which it shows the current coordinates with readFloat) then it crashed with Project Cheat Engine 6.2 raised exception class 'External: SIGSEGV'." at address 6243E5. Seems like it crashes when it tried doing getProperty.
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: Tue Jan 22, 2013 9:48 am    Post subject: Reply with quote

How old are CT files? Better make all forms again.

For compiling, do not use newest revision, try from dec or nov 2012 (link)

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

Joined: 14 Oct 2012
Posts: 6

PostPosted: Tue Jan 22, 2013 11:45 am    Post subject: Reply with quote

I got it working now, thanks!

Now the only problem seems to be the big filesize (20mb, when it was 4Mb earlier) but I guess that's not a huge problem, since everything else works just fine.
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: Tue Jan 22, 2013 11:54 am    Post subject: Reply with quote

"Big filesize"

You removed "dissect data/structures" from final CT? Are you using images inside forms - change them to png or jpg.


Or you meant compiled exe file size? In that case, use "release" build mode. It's under project properties: ctrl+shift+F11, "build modes".

You can change it with notepad too. If you want, do this:
1) open cheatengine.lpi (preferably notepad++)
2) search for (line 20-something)

<BuildModes Count="3" Active="debug">
or
<BuildModes Count="3" Active="debug-nomt">


and change it to:
<BuildModes Count="3" Active="release">

3) save

4) open Lazarus and compile again.

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

Joined: 14 Oct 2012
Posts: 6

PostPosted: Tue Jan 22, 2013 1:35 pm    Post subject: Reply with quote

Ok, it's back to 4Mb.
Thanks for all the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine 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