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 


speedhack precision

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

Joined: 04 Sep 2014
Posts: 3

PostPosted: Thu Sep 04, 2014 5:33 am    Post subject: speedhack precision Reply with quote

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
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Thu Sep 04, 2014 10:05 am    Post subject: Re: speedhack precision Reply with quote

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
View user's profile Send private message MSN Messenger
Niateph
How do I cheat?
Reputation: 0

Joined: 04 Sep 2014
Posts: 3

PostPosted: Thu Sep 04, 2014 10:41 am    Post subject: Reply with quote

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
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Thu Sep 04, 2014 11:14 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
Niateph
How do I cheat?
Reputation: 0

Joined: 04 Sep 2014
Posts: 3

PostPosted: Thu Sep 04, 2014 1:59 pm    Post subject: Reply with quote

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
View user's profile Send private message
mgr.inz.Player
I post too much
Reputation: 218

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

PostPosted: Thu Sep 04, 2014 2:25 pm    Post subject: Reply with quote

It exists:

https://code.google.com/p/cheat-engine/source/browse/trunk/Cheat%20Engine/frameHotkeyConfigUnit.pas


EDIT:
try this patch
http://pastebin.com/Fq7b0rp6 (direct download http://pastebin.com/download.php?i=Fq7b0rp6 , just rename that file from something.patch.txt to something.patch and use TortoiseDiff )

_________________
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 -> Cheat Engine Source 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