View previous topic :: View next topic |
Author |
Message |
Niateph How do I cheat? Reputation: 0
Joined: 04 Sep 2014 Posts: 3
|
Posted: Thu Sep 04, 2014 5:33 am Post subject: speedhack precision |
|
|
Hi everyone,
I'm kinda stuck after various tries and many struggles. Here is what I'm trying to do :
I want to change the precision of the speedhack and the speedhack hotkeys (from .2f to .5f)
For the main speedhack and its slider values, no problem but for the hotkeys that's a different matter.
I can already change the format they are initialized, treated adn displayed inside CE but once I validate the changes in the Settings menu (through the ok button or Enter) and open it back the changes are gone and the speedhacks from 1 to 5 and speedhacks delta +/- revert to a .2f.
I suppose it's because of the way they are stored in the registry but I can't find where the "Savec changes" occurs.
Sorry if I'm bad at explaining and thanks to whoever can point me to this "save changes" location |
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Sep 04, 2014 10:05 am Post subject: Re: speedhack precision |
|
|
Niateph wrote: | I validate the changes in the Settings menu (through the ok button or Enter) and open it back the changes are gone |
You must click another function in that list (ListBox object).
For example: if you want to change "speedhack speed 1" speed, change value, DO NOT press ENTER, DO NOT CLICK OK, you must highlight something else, e.g. "new scan", now you can click OK.
Because saving is triggered inside "OnSelectionChange" event of ListBox object. _________________
|
|
Back to top |
|
|
Niateph How do I cheat? Reputation: 0
Joined: 04 Sep 2014 Posts: 3
|
Posted: Thu Sep 04, 2014 10:41 am Post subject: |
|
|
The problem has just gotten more mysterious then :
the change indeed never takes place.
But I already cycled through all the code opened via Lazarus and already changed every speedhack related variablesfrom .2f to .5f
Do you know where the conversion occurs ? |
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
Posted: Thu Sep 04, 2014 11:14 am Post subject: |
|
|
You meant format function?
Of course you can modify speed by using Lua code:
speedhack_setSpeed(0.0003)
If you want to change source code, give me a minute..
EDIT:
Did you try
frameHotkeyConfigUnit.pas
line 100, 105, 110, 115, 120, 133, 135
change from '%.2f' to '%f'
EDIT2:
if above won't work, change
Code: | edtSHSpeed.text:=format('%.2f',[newspeedhackspeed1.speed]); |
to
Code: | edtSHSpeed.text:=floattostr(newspeedhackspeed1.speed); |
and so on
_________________
|
|
Back to top |
|
|
Niateph How do I cheat? Reputation: 0
Joined: 04 Sep 2014 Posts: 3
|
Posted: Thu Sep 04, 2014 1:59 pm Post subject: |
|
|
I tried the two last ones but :
frameHotkeyConfigUnit.pas does not exist in my folders, probably because I'm on the v6.4
and
edtSHSpeed doesn't exist so I did the change to what seemed the same thing in my code : editsh2.Text := floattostr(speedhackspeed1.speed);
but still no luck
I will deactivate the CE hotkeys and switch to lua then.
Thanks anyway. |
|
Back to top |
|
|
mgr.inz.Player I post too much Reputation: 218
Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
|
|
Back to top |
|
|
|