Prev Previous Post   Next Post Next
Old 01-28-2010, 02:19 AM
ThievingSix ThievingSix is offline
Join Date: Aug 2008
Posts: 218
Default X-Fi2 Resource Compiler/Decompiler

Yea, yea..not useful...etc. Oh well!

Basically it's a compiler/decompiler tool for the resource files used in Creative LUA applications. They have used it in both their applications and it can slim down the number of files you use by quite a bit if images are used heavily in your applications.

Basically you can use it simply by setting the res file via image.setresource("MyRes.bin") and loading images via MyImage = image.load("MyRes/myimage.png").

If you need more info on the image table check out

I've uploaded two files. The first is a zip file containing the Compiler/Decompiler(shown in the picture below), the source to that file if anyone is interested, and the white paper documenting the file format of the resource bin file. The second is an example usage with cilmaviel's paint application(found here). I hope you don't mind, lemme know if you want it removed.

The usage is quite simple. To compile click the Add File button until all your images are added, next click the Ellipses Button(". . .") to select the output file location and name, and finally hit the Save Bin File button. To decompile click the Ellipses Button(". . .") to select the bin file you wish to decompile, look at the files contained if you are so pleased, and finally click the Save All Files button which will prompt you to select a folder to save them in.

Edit 1: Added multiple file select for the compile tab.

Attached Files
File Type: zip (386.7 KB, 159 views)
File Type: zip (101.0 KB, 58 views)
Only ONE more functions in the Wiki need addressing!
Zen X-Fi2 LUA Wiki
Want to protect your applications? Click Here!
Tower Defense Thread
Zen Lock - Protect Your Zen!

Last edited by ThievingSix; 01-30-2010 at 07:13 AM.
Reply With Quote

Advertisement [Remove Advertisement]


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 03:07 AM.