View previous topic :: View next topic |
Author |
Message |
Hattiwatti How do I cheat?
Reputation: 0
Joined: 14 Oct 2012 Posts: 6
|
Posted: Sun Jan 20, 2013 8:53 pm Post subject: Trainer Keypoll interval? |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Sun Jan 20, 2013 10:32 pm Post subject: |
|
|
"little tool" == standalone CE trainer
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 |
|
 |
Hattiwatti How do I cheat?
Reputation: 0
Joined: 14 Oct 2012 Posts: 6
|
Posted: Mon Jan 21, 2013 7:49 pm Post subject: |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Jan 22, 2013 9:48 am Post subject: |
|
|
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 |
|
 |
Hattiwatti How do I cheat?
Reputation: 0
Joined: 14 Oct 2012 Posts: 6
|
Posted: Tue Jan 22, 2013 11:45 am Post subject: |
|
|
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 |
|
 |
mgr.inz.Player I post too much
Reputation: 222
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Tue Jan 22, 2013 11:54 am Post subject: |
|
|
"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 |
|
 |
Hattiwatti How do I cheat?
Reputation: 0
Joined: 14 Oct 2012 Posts: 6
|
Posted: Tue Jan 22, 2013 1:35 pm Post subject: |
|
|
Ok, it's back to 4Mb.
Thanks for all the help!
|
|
Back to top |
|
 |
|