abi>>forums (http://www.anythingbutipod.com/forum/index.php)
-   Zen X-Fi2 Applications & Development (http://www.anythingbutipod.com/forum/forumdisplay.php?f=221)
-   -   X-Fi2 Resource Compiler/Decompiler (http://www.anythingbutipod.com/forum/showthread.php?t=51963)

ThievingSix 01-28-2010 03:19 AM

X-Fi2 Resource Compiler/Decompiler
3 Attachment(s)
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 http://en.wikipedia.org/wiki/User:Th...ua#Image_table

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.


Jan_DK 01-28-2010 04:52 PM

I'm lost for words :-), last evening when I was playing with the X-Fi2
and loading a lot of images into a table manually, and then looking at the
folder full of files, I thought those Res file might be good for something
after all, and I remember your white-paper.

But the thought of making a Res builder, was not encouraging
compared to what I was doing, So it's sure nice to visit ABI and
find the tool all ready made.

Time to try it out...


bzdbbb 01-30-2010 06:17 AM

Thank you :) this really useful in making games easier to install. You'll notice I used it with mastermind. One suggestion tho, can you enable multiple file selection in the file selection window as when you have a lot of image files it takes forever to add them all :P

ThievingSix 01-30-2010 08:13 AM


Jan_DK 01-30-2010 03:28 PM


Originally Posted by ThievingSix (Post 437259)

Thanks for that update, adding multiple file's in one go, was going to be
my "request" too, later on, and ding there it is. :-)


kushndonuts 01-30-2010 03:45 PM

great work

delirius 12-02-2011 01:19 PM

good job. It keeps my resources organized :)

All times are GMT -5. The time now is 05:26 AM.