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 


Need Help Turning A Script Into An Executable

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

Joined: 16 Mar 2012
Posts: 8

PostPosted: Mon Mar 19, 2012 8:00 am    Post subject: Need Help Turning A Script Into An Executable Reply with quote

I'd like to turn this script I found for Deus Ex: Human Revolution into an executable. Currently, I run the game then Cheat Engine and add the script via the Show Cheat Table Lua Script option and everything works fine in game. But I've met with no success at turning this script into an executable.

If possible I would also like the the executable to run the game itself and shut itself down when I quit the game. I also would prefer the executable to not display a menu, not sure that's viable though.

The script:

Code:
-- set this to the max number of batteries to regenerate
local batteries = 5;

local addr = "[[[[dxhr.exe+01723728]+14]+44]+11c]+1fc";
local f = createForm( true );
local t = createTimer( f, true );
timer_setInterval( t, 1000 );

timer_onTimer( t, function( )
local energy = readFloat(addr);
if math.abs(energy % 30.0) < 0.005 and energy < 30*batteries then
writeFloat(addr, energy + 0.01);
end
end );


- Ryan Paul Fialcowitz
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