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 


Simple values converter

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
AltairPL
Newbie cheater
Reputation: 2

Joined: 25 Jan 2014
Posts: 24

PostPosted: Tue Feb 04, 2014 8:55 am    Post subject: Simple values converter Reply with quote

I'm fully aware that tool like this probably already exists, but I wanted to learn lua a bit and this seemed like a good idea, and since it's done I might as well share it. Sample screen-shot and table attached. I'm not posting script code here because it's too long - download the table if you want to take a peek Wink. Bug reports, suggestion, ideas, etc. are welcome.

Few notes:
- at the beginning of the script there are a few variables, which can be used for customization - it's a good material for .ini file (along with default window position, etc.), but I don't have time for this right now, so I'll probably do this somewhere along the line;
- Qword values (8 Bytes) are somewhat limited by lua and I don't have any bright ideas at the time on how to work this around;
- Float and Double values are not fully tested, so I'm not sure if they work as they should every time;
- If you want to save the table as .exe, select huge version - don't know why yet, but small version crashes at start with 202 error;
- This table creates temporary file in table folder named hcSubFormTemplate.frm, so make sure that file with that name is not already used or change name of temporary file in script (TemplateFileName somewhere in the beginning of the script);

That's about it, have fun and happy converting Wink.

EDIT: Of course it just had to happen, there was slight bug with 1 Byte values, which reared its ugly head just after release. Attachment updated.



dhc.png
 Description:
 Filesize:  13.3 KB
 Viewed:  4683 Time(s)

dhc.png



dhConv.CT
 Description:

Download
 Filename:  dhConv.CT
 Filesize:  15.53 KB
 Downloaded:  666 Time(s)

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