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 Custom Value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jun 11, 2014 4:48 pm    Post subject: Speedhack Custom Value Reply with quote

Is there any way to incorporate a custom variable for setSpeed, such as with a symbol? For example...

Code:
[Enable]
registersymbol(custom_value)
label(custom_value)

custom_value:
dd 0

LUACALL(speedhack_setSpeed(custom_value))

[Disable]
LUACALL(speedhack_setSpeed(1.0))

unregistersymbol(custom_value)


Thanks.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Jun 11, 2014 4:56 pm    Post subject: This post has 1 review(s) Reply with quote

speedhack_setSpeed(readFloat("symbolname"))
_________________
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
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jun 11, 2014 5:49 pm    Post subject: Reply with quote

Thanks, Darkbyte. Is there any way to have readFloat run constantly?

Maybe I am doing something wrong, but the only way I can get this to work is by registering the symbol with a separate script, first...setting the value...then enabling the speedhack script. If I edit the custom_value, the only way to get the speedhack script to recognize the new value is by disabling and re-enabling the speedhack script.

Thanks, again.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Jun 11, 2014 6:56 pm    Post subject: Reply with quote

You can also just do speedhack_setSpeed(value)
That way you don't need to write the value first

_________________
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
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jun 11, 2014 7:07 pm    Post subject: Reply with quote

I'd like to set up the speedhack so that the value can be edited on-the-fly, to anything. Is this not possible, or am I overlooking something? To clarify...I'd like users to be able to enter a value in a text box, for example, and apply that value.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Wed Jun 11, 2014 7:33 pm    Post subject: Reply with quote

Then use a full lua script.
Show the form with the editbox, and when the editbox gets changed, or an button is pressed, call speedhack_setSpeed with the editbox value

_________________
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
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Wed Jun 11, 2014 8:17 pm    Post subject: Reply with quote

Not sure I can get that to work if changing the symbol value and hitting enter doesn't work without re-enabling the speedhack script. Anyway, I know I'm out of my element...was just hoping for an easy solution.

No worries. I appreciate your 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 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