yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] Chainfire:
CFC 0.50

New CFC is out. No changes to the CFC commandline tool, many changes to CFC GUI, most importantly:

There have been changed to the CFC runtime. New libgles_mn is needed! See cfc-support-dll section on first page!
[Windows Mobile Software Development] Laurentius26:
Hi Chainfire thanks for the pm, awsom work!

Grtz,

Leo :)
[Windows Mobile Software Development] jug6ernaut:
Great Update Chainfire :D, cant wait to try this out :D.
[Windows Mobile Software Development] infido:
Big Thanks Chainfire
[Windows Mobile Software Development] onoz:
Hi Chainfire, been loving this tool very much.

I'm a little new with this tool, I get some problem with image quality when I replace some manila images. Please see the attached images.

Is there any setting that I should use?

I'm using CFC GUI & photoshop.

TIA
[Windows Mobile Software Development] Chainfire:
This is a side-effect of the compression algorithm used (QTC). CFC uses its own encoder, you could try using The Compressonator (see start of this thread on how to use it) or m9editor, both of which use a different calculation algorithm to do the actual compression. See if you get a better result for this specific image.

Keep in mind though that QTC is a

lossy

compressions algorithm and the quality will

never

be as good as the source PNG. The question is, do you actually notice this difference on your device?
[Windows Mobile Software Development] onoz:
Most of the time, the result from CFC are great.

But in certain pics, even naked eyes can spot the difference.

Appreciate your reply, I've attached another example for your reference.

Thanks for your great work.
[Windows Mobile Software Development] Chainfire:
I'm not sure what to do with this... I may need to adjust some algorithms for this. Not a high priority for me though. As said, try m9editor or the manual Compressonator method.
[Windows Mobile Software Development] Chainfire:
CFCv2

Meh, running into a bit of a snag with CFCv2...

From my blog:
[Windows Mobile Software Development] Chainfire:
From my blog:
[Windows Mobile Software Development] l3v5y:
Awesome...

TF3D2 is getting rather bulky, would be nice to compress it even more! :D
[Windows Mobile Software Development] shagratt:
Can someone post manila.exe and other modified files for download? cause I patched the one in my rom (original HTC HD rom) and don't start after that :(
[Windows Mobile Software Development] Chainfire:
Update June 5, 2009

CFC and CFC GUI have been updated to 0.55 and 0.55.25 respectively. The CFC runtime files have

not

been updated. Changes:

- Better compression ratio (backwards compatible with old runtime)

- UltraHQ en/de-coding support (CFC)

- "Patch Manila on device" function has been improved to work-around the issue of Manila no longer starting that some people have (CFC-GUI)
[Windows Mobile Software Development] Chainfire:
Please try re-patching with the new CFC GUI.
[Windows Mobile Software Development] onoz:
Great work, been eager for an update on CFC.

Thanks for all your hard work.
[Windows Mobile Software Development] maranell0:
Thank you, Chainfire for the updates.

Wallpapers compressed with UltraHQ are crystal clear.
[Windows Mobile Software Development] hdaackda:
How do I patch my Manila?? I've got an HTC Fuze (raphael), latest HTC fuze rom (may 2009 -> 5.11)

When I run the CFC GUI, it asks me for my manila folder!! although activesync is on, I dont see any manila folder (or device option in the file browser that pops up)..

thanks
[Windows Mobile Software Development] Chainfire:
Create a working folder on your machine, then select that one.
[Windows Mobile Software Development] miammiam:
Hi chainfire,

i have a problem for compress Manila 2.1.38403.2 with new visual kitchen, i have a "folder" Mode9.dll and not a "file", so in cfcgui i have "Mode9.dll" could not be located"....

Have you an idea for resolve my probleme? thanks.
[Windows Mobile Software Development] WarAxe:
I wasn't able to use the CFC DLL files in Visual Studio, but I'm not sure why. VS2008 just says cannot add the DLL.
[Windows Mobile Software Development] GXFX:
Guys , after i edit my manila etc...

how do i cook a CFC Package in a rom ?

bye!
[Windows Mobile Software Development] Chainfire:
CFC and CFC GUI have been updated to 0.60.

Don't forget to donate! ;)
[Windows Mobile Software Development] AdamN:
I patched the manila on my device. That worked fine. Reset the device and still everything worked great.

Then I tried to update the background using TF3Dv2->Create Background. Now touchflow 3D won't start. Any ideas?
[Windows Mobile Software Development] Spike™:
i'm having this problem too.......

Manila 2.5.19202525.0 on the Blackstone,

or if someone has successfully patched the files could they post them or PM them to me, please,

Thanks

Edit:,

i'm guessing this may have something to do with CFC looks for Mode9.dll,

but in the windows folder it's named as mode9.dll

i placed a renamed Mode9.dll in the windows folder, and it was found but couldn't be saved......
[Windows Mobile Software Development] Chainfire:
Please patch manila manually for now. Instructions on how are in the tech thread.
[Windows Mobile Software Development] Spike™:
will do mate, thanks for the reply,
[Windows Mobile Software Development] kinnyfaifai:
@ Chainfire:

Using CFC GUI to extract the png images, is there a way to import 16bit images back in? So far everything is encoded at 8bits.

Thanks!
[Windows Mobile Software Development] shark147:
Hi Chainfire

Greats TOOL congratulation!!!!

I have a question, it's possible remove patch manila?? i have manila 2.1 by Yozgatg and i would like remove CFC compress, can you implement on TOOL "reverse patch"

sorry for my bad English..
[Windows Mobile Software Development] stevecn70:
I'm having a bit of a problem, I have a kitchen and I set the folder to:

E:\Windows Mobile\ROMS\Kitchen Sprint Latest\EXT\Rhodium\COMMON\Rhodium_External_Packages\manila_2_1_19202217_5

I was able to patch manila.exe and mode9.dll fine using the auto patch. I did have to rename the mode9.dll folder to something else and then copy the mode9.dll file from it, into the main folder for patching. I then moved it back and renamed the folder back. I verified with a hex editor that libgles_mn.dll appeared in each. It was listed only once in each file. I verified that the other manilla files were padded and compressed. I cooked the ROM and now touchflow has a bunch of white graphics everywhere. Everything that was put to CFC now appears to be just all white.

I tried again using the Manual method but still no luck.

I did this before with the previous version of CFC gui and didn't have the problem.
[Windows Mobile Software Development] HTC_FUZE:
can this tool fix my problem? I want to enlarge date indication area so it can display a complete date format. see pic
[Windows Mobile Software Development] imnuts:
do you have the cfc support dlls in the windows directory too?
[Windows Mobile Software Development] the_scotsman:
I've read all the bits on CFC compression and I'd like to CFC my manila 2011 from the TMOUS 2.07.

How do I know which files I can and can't compress? I jumped in the deep end and and patched them all in a test ROM, but manila just screws up big time.
[Windows Mobile Software Development] gsm44:
I've posted this in the [APP] thread.

Not sure if I should've posted it here but could some one help me please
[Windows Mobile Software Development] bibbe:
how to put the image

i have edited an image using this now i want to put it on my HD2 how do i do that....?
[Windows Mobile Software Development] king.larry:
i tried to change the file "014758a9_manila" whitch is fount under under "unknown" in the cfc-program. it seems to be the seperator of the agendaview of the calendar. it does not work. all others changes i made worked. has anyone an idea?

i have a hd2 with manila 2.5.19211 rom 1.66

thanks
[Windows Mobile Software Development] bibbe:
change file 11d4e1ae_manila for manila 2.5:):D

enjoy......
[Windows Mobile Software Development] king.larry:
@bibble:

thank you, but the file "11d4e1ae_manila" ist the background. i'm looking for the seperator as it is in the file "014758a9_manila". but when i change this content - nothing happens.

thanks
[Windows Mobile Software Development] bibbe:
what do you want to change?
[Windows Mobile Software Development] bibbe:
any body any idea how i can change the windows logo on the star and other icon on the top bar.......
[Windows Mobile Software Development] Chainfire:
You mean on the task bar at the very top? That's a resource, has nothing to do with Manila (or CFC)
[Windows Mobile Software Development] bibbe:
yes thats what i am talking abt.

is there a way i can change it
[Windows Mobile Software Development] Chainfire:
There probably is, but you are in the wrong thread for that!
[Windows Mobile Software Development] money_711:
Need Help

I am using the CFC Gui and I did my best to follow the steps accordingly. I imported my files by clicking device then import from device. Then i went to an item on the slider 049b06cf_manila which is the Twitter icon.

I clicked it then i selected replace with then i selected the icon i want to replace it with (.png file).

Not sure of last steps

I clicked to device it said success.

I restarted tflo nothin happen tried to compress and trim then to device. restarted tflo nothin changed.

Please let me know where i went wrong.

I understand that this is really not for noob's as but I will stay a noob if I don't give it a try.

Thanks!
[Windows Mobile Software Development] bibbe:
try this do wat you just did bt this time after replacing the file from cfc gui copy the file mannualy to ur phone's memory card. then stop the tflo, copy the file to windows root from the memory card and then restart tflo.

this helped me hope it dose for u.

one more thing do not compress, trim or any other leave as it is by defult.
[Windows Mobile Software Development] money_711:
Although i just shut down my laptop i am on the desktop so i will have to try this tomorrow but i did actually drag and drop the file to the windows folder. My only problem is I don't have a memory card. Should i possibly disable touchflo then drag and drop and then enable it? I will boot my laptop back up won't get no sleep if i don't do it now.

Let me know your thoughts!

Thanks!
[Windows Mobile Software Development] bibbe:
tflo must be stopped before replacing the file.
[Windows Mobile Software Development] money_711:
ok one other question...

After i replace the image does it automatically save the image?

Just to make sure it is all down pack (waiting on files to import)

Disabled sense (running windows default)

Replace image

Drag and drop manila file into windows directory via activesync (no memory card)

Enable sense

Icon should be change on the slider correct?

Is there a specific way to identify the slider icons as opposed to scrolling through all of them?

Thanks really appreciate your help!
[Windows Mobile Software Development] money_711:
Got it!!!! It was the wrong file I was editing I wonder what I was editing!!!

Also I it is taking up the entire slider so if i play with the resolution i should be ok right????

Thanks for your help here!!!!

Not A NOOB anymore!!!!

YESSSSSSS!!!!!!
[Windows Mobile Software Development] money_711:
Guess I spoke to soon!!!:confused:

Ok so now I stuck again tried different resolution of the image but image stayed the same.

How do I fix this in the screen shot the icon for twitter on the slider?

I going to bed!!!!

Thanks again for the help!!!
[Windows Mobile Software Development] bibbe:
you want to chnage the icon on the slide bar right?

you need to replace with a file that has the same size.
[Windows Mobile Software Development] pongster:
I tried patching manually via the CFCGui Tool and got a Mode9.dll not found in \Windows error... Manil2.exe was also not found.. how do I get around this? This means my Manila was NOT patched right?
[Windows Mobile Software Development] money_711:
what size is the original file i forgot to save the original file. what is the normal size of the slider icons do anyone know i will do some searching to see if ican find out.

Thanks!
[Windows Mobile Software Development] bibbe:
i did get the same msg fro one of the hd2 i edited but did work for me
[Windows Mobile Software Development] bibbe:
128x128

enjoy
[Windows Mobile Software Development] shafizal:
you have to recmode those files before patching ....manila2.exe not found its common message just recomode all folders in manila core and patch it agian it will be ok..................
[Windows Mobile Software Development] ProjektFuze:
i have to watch this one
[Windows Mobile Software Development] Luggruff:
Hi,

-I downloaded and ran the 'cfc-0.60+gui-0.60.35.zip' (the app within, CFC GUI) -I extracted a .cab with both .png and QTC-files to a folder of it's own, checked and all the files were there

-I then selected the folder in CFC GUI

-I then replaced all the manilla files with .PNG's where I wanted changes

-I pressed 'Finish Up' and then selected 'trim' in the end.

..now the manilla files are gone from the folder, and when I go to [Device]->[Export Changes to CFC/QTCs]->[Select folder (original one)] and there I get an error.. reading:

'Error: Could not Initialize RAPI!

Done!'

What am I doing wrong? All I want to do is take a slider-.cab and change the graphics, all the .PNG's are changed but without difference, so I have to change the graphics in the manilla-files.....

I DO NOT WANT TO DIRECTLY REPLACE SYSTEM FILES! I WANT TO HAVE THE MANILLA FILES ON MY PC FOR .CAB CREATION!!

Thankfull for positive response! (I'm pretty clueless so please explain point-by-point and not in any internal lingo..)
[Windows Mobile Software Development] playground25:
hmm

This might be a silly question or not. But on roms's theres a list of what files are for what. I realize asking the following is phone dependent and time consuming, but has anybody made a list of manila files for phones so we know exactly what we are looking for?
[Windows Mobile Software Development] airxtreme:
You mean this?
[Windows Mobile Software Development] Chainfire:
Unfortunately, I did all this work at the office and I have vacation right now, so I can't really look it up for you. Add to that that I would normally bring my laptop (which is pretty much my office desktop's mirror) home with me during vacations but that it is in the shop for repairs (mobo dead). I wont be able to help you figure this out until I return to the office, which will be like January 5th.

I can tell you that all these file types are handled by plugins, when I downloaded The Compressonator myself it included the ATC plugin (perhaps it no longer does?). I can hardly believe they would remove this functionality.

You may want to look for the following 'file types' in the box, though:

ATC

ATC Textures

ATITC

ATI Texture Compression

They're all the same thing, and I've seen all those names at various points for ATC files. If I recall correctly just opening an ATC file without selecting anything worked for me though, but alas I cannot check it right now.
[Windows Mobile Software Development] AF241:
Thanks for the reply. Hope you get the laptop soon. I'll be waiting till then. Can't seem to figure it out myself.
[Windows Mobile Software Development] eidolen:
Hi,

I was having the exact same problem. It took me a few hours of experimenting and finding links to older versions but I was finally able to find the correct version. There were only 2 versions I found that had the ATC plugin and the highest one was version 1.41.

I also tried upgrading to 1.50 on top of it to see if it would keep the older plugins but no joy. I believe the plugin is built into the "ATICompressor.dll" which gets overwritten on upgrade so I don't think there is a way to use it with any version except 1.41. Which is fine as it performs as stated in this thread.

I'm not sure if there would be a violation in posting it here or not so I will err on the side of caution. If a mod says it's ok I will do it then. Until then feel free to send me a PM or do a search for "compressonator.2007-12-18-v1.41.1409.msi"

GL'

Eidolen
[Windows Mobile Software Development] AF241:
Eidolen you're the man. Thanks a million for the hint. I have found it at last and yes now it's working. Googling for "compressonator.2007-12-18-v1.41.1409.msi" only points to this thread and a page on siteadvisor.com. But when I googled for "2007-12-18-v1.41.1409.msi" only, it pointed to a German forum with the link.
[Windows Mobile Software Development] Chainfire:
Glad you got this resolved already :) I have checked out the plugins themselves, to see if I could just take the original DLL and use that instead of hopping through The Compressonator all the time, but IIRC it was quite complicated and didn't think the effort spent on it would be worth the benefits.

By the way, yes, I do believe ATICompressor.dll is the correct file.

Strange they removed this from the newer versions, but perhaps it has something to do with ATI shutting down their mobile graphics chipset division. AFAIK, this texture format is

specifically

made for devices like our phones and not supported by "normal" ATI cards, so that would in a weird way make sense.
[Windows Mobile Software Development] 6Fg8:
ha, that one gave me a laugh tough ...

tried to play around with compressonator and ran into the same pitfall with 1.50 (yes, next time i'll read more carefully).

So, tried to google for v1.41 with no luck ... desperately i gave yahoo a shot and bingo! Funny thing is, it comes directly from the amd developer site :D
[Windows Mobile Software Development] Chainfire:
In that case, please be so kind as to post the link to the correct file on AMD's site :)
[Windows Mobile Software Development] 6Fg8:
ok, wasnt sure if thats good manners here, but as youre a highly decorated member i'll trust you :)

So, here it is: http://download-developer.amd.com/GPU/executables/compressonator.2007-12-18-v1.41.1409.msi

BTW i found the only DLL's needed are CTES.dll and GDI.dll, everything else can be disabled.

After installing, you may copy the thing whereever you want it, even to another machine, it wont bother.

I verified that CLES.dll has been removed in v1.50. After upgrading the dll was gone. Anyway had a copy :)
[Windows Mobile Software Development] pcarvalho:
very nice tool and info...thanks Chainfire...you are the man!!! :)

...well this aint the best thread to post this but since its aimed to theme makers here it goes...

there is a very nice tool TF3D manila mode9 editor (still in very early stage) made by 6Fg8 that will open new possibilities to theme makers and make things even better...

just for you guys to get the picture...i could have the idiamond mod http://xdaforums.com/showthread.php?p=3077363 ported to my polaris in a matter of time (and even change it while porting it ;))

here is a link to what i did in around 1h after patching

only

the new HD manila.exe, no dll proxy here, havent got any other resolution device else would have tried other then QVGA...

its very bad port, but, the main thing to note is that

i made very basic WVGA to QVGA port in 1h

, but i can now for example increase the clock size while maintaining the rest as is or increase, change or move position of any element i choose...

this was done "my way" as said by Chainfire (just kidding here, you are very good at what you do and thank God you and others alike existe)...

this method requires more time to fix char sizes and some layout issues...but its possible to make WQVGA, SQUARE, WHAT EVER Aspect Ratios now plus change elements, making the

your own personal

layout possible...

by the way Chainfire...your port to QVGA used a proxy dll that cut everything in half, can that dll be made to use multi-resolution or you would have to make a new dll for each new resolution, and, is the dll proxy version, is it manila version specific? before you even answer i say thanks for your reply

link to my screens in TF3D manila mode9 editor thread

Yes! if only "the one" or someone could do this fix...would make TF2D go home running to mommy :D

FYI...TF3D takes 13secs to start, while TF2D takes 45secs, in my polaris...thats fast by my rules, really hope drivers issues get fixed, i'd like to help but dont know where to go...adding this graphic tool to the new mode9 editor...wow! i'm waiting to see what nice things will come...
[Windows Mobile Software Development] Chainfire:
@6Fg8

Thanks. Yeah this sort of link is alright. While I won't say XDA allows all links, even though they do allow some links that are surely copyright violations, you are linking to a file directly on the author's (ATI, these days part of AMD) web servers. Can't imagine anyone could have a problem with that.

@pcarvalho

Weird you never noticed this thread... I wrote it when we were all fixing up TF3D for QVGA in IRC a few months ago. I know you were there :)

Interesting stuff. However, for a proper port I think you should combine both methods. Remember a lot of the stuff I did was to get TF3D to perform better, this includes the source imagine scaling and the extra compression. Stuff like that reduces disk size, and more importantly, improves performance (note to self: finish up the VGA version of the optimizations, for gawds sake!). Fix up the resolution issues (as WVGA is not a 'multiple' of QVGA like VGA is) with this new editor, then use my method to optimize the imagery to be as fast as possible on a QVGA device.

The proxy DLL is not really manila version specific, though obviously it was not tested with many different versions. It should work with other versions than the one we used as it's fairly generic, but they of course they could have changed something between different versions that breaks it. The proxy DLL works by changing gfx coordinates and sizes as well as input coordinates, mostly in the OpenGL layer. That should work 'in general', but there are no guarantees in this 'API hijacking, reverse engineering and patching' game.

You should note however, that we did patch the EXE file as well. "the one" as you so aptly call him modified some hardcoded values in there - if I recall correctly this was only the viewport resolution, but I'd have to ask him to make sure.

The proxy DLL itself is also hardcoded to take VGA and convert it to QVGA in some places, but it should be adjustable to other resolutions. The problem is, if the target resolution is not *1/x or *x times the source resolution, you'd get aspect ratio issues. For example, if you'd use this method to take the HD version of TF3D to run it on QVGA, you'd get everything on the screen, but the screen is not as tall compared to how wide it is on the HD. This will make it look stretched horizontally. (widthHD / heightHD != widthDiamond / heightDiamond)

However, if somebody ported the HD's WVGA version to normal VGA (using this editor you speak of?), it'd be easy for me to port it to QVGA. (Perhaps they did; to be honest, I don't pay that much attention to it, I just like to 'make stuff')

As far as I know he's still working on it. Don't worry if you don't know how to help, it's complicated (and hairpullingly infuriating) stuff to do. Maybe he/we'll figure it out, but there's a good chance we won't. Fingers crossed :)
[Windows Mobile Software Development] pcarvalho:
i did see it but lost track of it cause of other projects :)

it got broke in the last version of manila, at least i tried and it didn't start, so i patched the hardcoded WVGA in the exe and modded the viewport in the mode9 files...by doing so there is no need to have proxy dll cause manila itself does the work...

this is were the mode9 editor will solve these aspect ratio problems as one can rearrange the diferent elements...i did a simple widthQVGA / heightQVGA = windthHD*0.5 / heightHD*0.4...its close but as i said i only work an hour on it just to see how it worked out...i would even say that if i were a HD owner i would rearrange some pages cause they seem a bit empty...

got more fingers??? :D hope he can do it...if you/he need help please let me know...i dont know a thing about this yet...but i never know about lots of things and i still get them done...you could say i'm a fast learner...