android
  #1  
Old 01-28-2010, 02:19 AM
ThievingSix ThievingSix is offline
Member
 
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 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.

Attached Files
File Type: zip BinDeComp.zip (386.7 KB, 155 views)
File Type: zip paintV1.3.zip (101.0 KB, 57 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]

  #2  
Old 01-28-2010, 03:52 PM
Jan_DK's Avatar
Jan_DK Jan_DK is offline
Junior Member
 
Join Date: Mar 2009
Location: Denmark
Posts: 88
Default

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...


Jan_DK
Reply With Quote

  #3  
Old 01-30-2010, 05:17 AM
bzdbbb's Avatar
bzdbbb bzdbbb is offline
X-Fi2 Development Moderator
 
Join Date: Dec 2009
Location: Gloucestershire, UK
Posts: 94
Default

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
Reply With Quote

  #4  
Old 01-30-2010, 07:13 AM
ThievingSix ThievingSix is offline
Member
 
Join Date: Aug 2008
Posts: 218
Default

Updated.
__________________
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!
Reply With Quote

  #5  
Old 01-30-2010, 02:28 PM
Jan_DK's Avatar
Jan_DK Jan_DK is offline
Junior Member
 
Join Date: Mar 2009
Location: Denmark
Posts: 88
Default

Quote:
Originally Posted by ThievingSix View Post
Updated.
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. :-)


Jan_DK
Reply With Quote

  #6  
Old 01-30-2010, 02:45 PM
kushndonuts kushndonuts is offline
Junior Member
 
Join Date: Jan 2010
Location: Maryland
Posts: 29
Default

great work
Reply With Quote

  #7  
Old 12-02-2011, 12:19 PM
delirius delirius is offline
Member
 
Join Date: Feb 2010
Posts: 131
Default

good job. It keeps my resources organized
Reply With Quote

Reply

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 01:35 AM.