• twitter
  • facebook
  • rules
  • news
 
Page 1 of 4 123

[UTILITY] Manila 3D Kitchen [BETA, with rhodium manila support]

  • Retweet Thread
  • Vote for Thread to be Featured on the XDA Portal
Default [UTILITY] Manila 3D Kitchen [BETA, with rhodium manila support]

Hi!

There a lot of kitchens avaialable for ROM building. Now this one is to ease TouchFlo3D building.

This kitchen uses the knowledge and works of 6Fg8, D-MAN666, xboxmod, chainfire and many others who are involved in Manila hacking.

If you use this kitchen and/or any of the decompiled scripts then be so kind and share back the source code of your modified scripts too!

This kitchen (v1.5) has the following utilities included:

  • 6Fg8's mode 9 editor (v3.3.0.1)
  • sztupy's mode9 converter (v1.0)
  • chainfire's CFC compressor (v0.46)
  • MKT: a tool for batch converting/compressing/compiling mode9,qtc,png,xml,lua files (v1.1)
  • LuaDec (2.0)
  • A work in progress lua and xml IDE
  • And various other tools

In the center of this kitchen stands MKT aka manila_kitchen_tool, which is like 'make' but for manila kitchen developement.

It has the following functionality:
  • split hased _manila files back to their original filenames
  • join a bunch of files in a directory back to their hashed form
  • mass decompile mode9 files back to xml and save their lua scripts
  • mass convert qtc files to/from png files
  • mass compile lua files

It works like 'make' in sense that only the modified files will be recompiled/recompressed so after the firts setup it might be ideal for manila development.

The output of the kitchen was tested with the Rhodium manila (WVGA version) on a HTC raphael device and it works, so this project is no longer a prototype, but is still considered beta stuff

Kitchen set up

I uploaded a complete Rhodium2 Manila kitchen in case you want to use that as a base (download both the kitchen and the rhodium files, then copy them to the same directory), but of course you can use any other manila pakcage you get across. To set up the kitchen copy the package into the 'pkg' directory then run:

Code:
mkt split

to split the hashed files back into their filenames. (For this conversion it uses the same table as m9editor uses.)

You will get a "bin" directory. This will hold all "compiled" stuff, so here you will find all the files that don't need more preprocessing, and can be hashed/installed to the device

Next you want to get some editable files out from the luac, mode9 and qtc files, so use:

Code:
mkt -x bin frommode9

To decompile mode9 files back to XML (it will also extract the scripts out of the package)

Next:

Code:
mkt -c d,qp fromqtc
or
mkt fromqtc

Will convert all qtc files to png files. (the first type will work on cfc compressed qtc files, the second will work on non cfc compressed files)

After this only the scripts are remaining. Unfortunately these can't be decompiled easily, so grap the decompilation of someone (like me ), and put these files into the "insrc" directory. After this run

Code:
mkt -d insrc -o src split

so all the hashed _manila files will be converted back to their original filenames to ease searching through them.

After this you're ready with your prepared kitchen. These things were already done with the Rhodium manila so you might use that package to start manila modding.

Compiling

You can use tomode9, compile and toqtc commands to compile these files back to their binary counterpart. Alternatively you can use:

Code:
mkt -c pq,c,p make

to run this three command after each other. It's like a Makefile, so it will only compile things that have changed. Of course you might want to 'make all':

Code:
mkt -a -c pq,c,p make

This will build all files from the "src" directory into the "bin" directory

Creating the package
After you're done you can use

Code:
mkt -o outdir join

to hash all files from the bin directory back to hashed form, and put it into the 'outdir' directory. Next add the binaries and you're ready to flash

Alternatively I included createpkg that will create a cab package from the OEM apckage found in the 'pkg' directory

Download and other stuff: http://winmo.sztupy.hu/manilakitchen.html

__________________
http://winmo.sztupy.hu

The guy behind the Lua 5.1 decompiler.

The usual "If you like my work give money" link

Phones: Omnia, Galaxy S, Touch Pro

Last edited by sztupy; 16th March 2009 at 08:24 PM.

Sounds great! Downloading now. Thanks sztupy!

Yeah, good job sztupy, this will be a great addition.

nice...gotta buy a bigger house...so many kitchens

__________________
current projects:
pcarvalho eXtreme WM65 ROM
pcarvalho youtube channel
pcarvalho twitter follow me here

___________________________________________

htcclassaction.org TF3D-QVGA
___________________________________________

PAYPAL
Donations are never required, but always appreciated.

Originally Posted by pcarvalho  View Post

nice...gotta buy a bigger house...so many kitchens :d

roflcopter

Originally Posted by pcarvalho  View Post

nice...gotta buy a bigger house...so many kitchens

what you need is a microwave :P

__________________
http://winmo.sztupy.hu

The guy behind the Lua 5.1 decompiler.

The usual "If you like my work give money" link

Phones: Omnia, Galaxy S, Touch Pro

Originally Posted by sztupy  View Post

Missing functionality / bugs:

  • Embedded decompiled scripts can't be re-embedded into mode9 files automatically (this would need a command line mode9 editor

I can help you out with that. Not that it's already done but copying the relevant parts from m9editor together isnt the big deal.

Originally Posted by 6Fg8  View Post

I can help you out with that. Not that it's already done but copying the relevant parts from m9editor together isnt the big deal.

I hoped so

unfortunately it's hard to tell a command line tool where to inject the scripts... An XML export/import function would be cool (export it to XML, without the binary scripts, then add the decomp'd scripts, and the importer would do its job esolving everything), but I know that won't be possible until you resolve the mode9 files completely...

__________________
http://winmo.sztupy.hu

The guy behind the Lua 5.1 decompiler.

The usual "If you like my work give money" link

Phones: Omnia, Galaxy S, Touch Pro

Originally Posted by sztupy  View Post

I hoped so

unfortunately it's hard to tell a command line tool where to inject the scripts... An XML export/import function would be cool (export it to XML, without the binary scripts, then add the decomp'd scripts, and the importer would do its job esolving everything), but I know that won't be possible until you resolve the mode9 files completely...

hm, didnt do much with xml, but i think i can figure that out. mode9 is almost done, there's only one bytegrave at the end of a mode9 file still unknown to me.

Originally Posted by 6Fg8  View Post

hm, didnt do much with xml, but i think i can figure that out. mode9 is almost done, there's only one bytegrave at the end of a mode9 file still unknown to me.

your visualization of the m9 files look like xml, that's why I thought about that (but yaml could be a good serializator too). But this is just an idea, if you can tel me an easy way to tell a command line script where to inject a script that would be fine

And a command line CFC compressor is also needed

__________________
http://winmo.sztupy.hu

The guy behind the Lua 5.1 decompiler.

The usual "If you like my work give money" link

Phones: Omnia, Galaxy S, Touch Pro

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 Rules
Forum Jump
 
All times are GMT +1. The time now is 04:01 AM.