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 


disabling speedhack

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
zakusa
Cheater
Reputation: 0

Joined: 09 Sep 2015
Posts: 48

PostPosted: Sun Sep 20, 2015 11:28 am    Post subject: disabling speedhack Reply with quote

hi i need help disabling speedhack like unchecking the checkbox with a script
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Sep 20, 2015 11:31 am    Post subject: Reply with quote

Edit > Settings > Hotkeys > Speedhack speed #

or create your own script:
Code:
[ENABLE]
{$lua}
speedhack_setSpeed(0.0)
{$asm}
[DISABLE]
{$lua}
speedhack_setSpeed(1.0)
{$asm}
Back to top
View user's profile Send private message
zakusa
Cheater
Reputation: 0

Joined: 09 Sep 2015
Posts: 48

PostPosted: Sun Sep 20, 2015 11:35 am    Post subject: Reply with quote

no but i want to like uncheck the box with a script because if the box is checked then my game crashes
Back to top
View user's profile Send private message
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Sep 20, 2015 11:37 am    Post subject: Reply with quote

Edit > Settings > Hotkeys > Toggle the speedhack
Back to top
View user's profile Send private message
zakusa
Cheater
Reputation: 0

Joined: 09 Sep 2015
Posts: 48

PostPosted: Sun Sep 20, 2015 11:50 am    Post subject: Reply with quote

ok that works but i want a script like this because i need a sleep


while sleep() do
speedhack_setSpeed(55)
sleep(3000)
speedhack_setSpeed(uncheck, disable)
end
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25804
Location: The netherlands

PostPosted: Sun Sep 20, 2015 11:57 am    Post subject: Reply with quote

when you disable the checkbox it actually sets the speed to 1.0 , there is no way to actually disable it
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Sep 20, 2015 12:04 pm    Post subject: Reply with quote

Damn you're picky. Smile Set the hotkey to something like Ctrl+Shift+Alt+R.
Code:
keyDown(VK_SHIFT)
keyDown(VK_CONTROL)
keyDown(VK_MENU)
doKeyPress(VK_R)
keyUp(VK_SHIFT)
keyUp(VK_CONTROL)
keyUp(VK_MENU)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25804
Location: The netherlands

PostPosted: Sun Sep 20, 2015 12:07 pm    Post subject: Reply with quote

heh, if you look at ce's source (or just the forms) there's a way easier method than doing that hotkey thing:

Code:

getMainForm().cbSpeedhack.Checked=false


but really, speedhack_setSpeed(1.0) is the same thing. Disabling the checkbox calls speedhack_setSpeed(1.0) and then hides the speedhack controls
(The reason is that because the time has been manipulated, restoring it would result in unpredicted behaviour)

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Sun Sep 20, 2015 12:08 pm    Post subject: Reply with quote

Well sure, if you're lazy and prefer the easy way!
Back to top
View user's profile Send private message
Jou
How do I cheat?
Reputation: 0

Joined: 08 Feb 2013
Posts: 4

PostPosted: Sat Dec 30, 2023 6:56 am    Post subject: Reply with quote

Dark Byte wrote:
heh, if you look at ce's source (or just the forms) there's a way easier method than doing that hotkey thing:

Code:

getMainForm().cbSpeedhack.Checked=false


but really, speedhack_setSpeed(1.0) is the same thing. Disabling the checkbox calls speedhack_setSpeed(1.0) and then hides the speedhack controls
(The reason is that because the time has been manipulated, restoring it would result in unpredicted behaviour)


Perfect! I searched for exactly that. Quite a number of games (around 10 here) run either a bit too fast or a bit too slow when using speedhack_setSpeed(1.0). C&C Kane's wrath, for example, does stutter and seems to run at 95% of the expected speed. Speedhack of 1.04 seems to be the actual 100% speed for this game. But completely disabled (on hotkey) gives me the perfect result.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 470

Joined: 09 May 2003
Posts: 25804
Location: The netherlands

PostPosted: Sat Dec 30, 2023 11:03 am    Post subject: Reply with quote

So disabling the speedhack is better instead of setting speed to 1?

If so, the difference is in your mind

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Jou
How do I cheat?
Reputation: 0

Joined: 08 Feb 2013
Posts: 4

PostPosted: Sat Dec 30, 2023 11:20 am    Post subject: Reply with quote

Dark Byte wrote:
So disabling the speedhack is better instead of setting speed to 1?

If so, the difference is in your mind


You are free to visit me here, and I will show you the difference. Try with C&C 3, both normal and Kane's wrath (albeit here in 4k). C&C Generals, for example, is as you say: No difference, even though the engine is similar.
On another thing, not related to this: An update in sight to make speedhack work with newer unity / unreal engine games? Would be worth another "beer box money spending", the last was for version 6.3, or whenever you added the higher precision to speedhack (i.e. allowing 0.333333333333.... and not just 0.3, and you fixed it fast back then after I reported/suggested it) Very Happy.
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 Lua Scripting 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