AltairPL Newbie cheater
Reputation: 2
Joined: 25 Jan 2014 Posts: 24
|
Posted: Tue Feb 04, 2014 8:55 am Post subject: Simple values converter |
|
|
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 . 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 .
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.
Description: |
|
Filesize: |
13.3 KB |
Viewed: |
4683 Time(s) |

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