yashsingh1/xdaforums huggingface dataset:
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Modifications to qtc files and manila hash names

modding the manila files

For analog clock modding there are three file types relevant: the image files (*.qtc), the mode9 file 1E1A6CCD_manila (former 7c60907d_manila) and the lua script 1EC5924B_manila (former 461d3306_manila). syntax of HTC mode9 files and lua scripts are not documented. The lua version of HTC is not the original version. Some original functions don't exist, some new functions are used. So it is trial and error and reverse engineering. Here is a link for starting

All this files are named by a hashed version of the original name. For this name you can use this tool by NisseDILLIGAF. For further information read Co0kies Name Guide.

QTC-files

First of all you have to create your files with a better image editing program (GIMP is for free). It should have layers function. That's good for later saving the individual images and for working at the images together. CHT uses 256x256 pixel images for the background. Greater dimensions are possible, but they crash with Co0kies design for the different versions of clock/weather. So I don't advice this.

For the hands the standard dimension is 16x256, for clockdot 32x32. You can use greater values (best 32, 64, 128, 256), but then you have to change the values in the mode9 file (see there).

If you use a picture with different layers, align the hands with the background like in the normal clock (the hands should be in the "12" position ), then change the dimensions of the "canvas" to the necessary values and save the different layers as individual images . Only exception are hands which are not in the centre of the clock (like my second hand). These should also be positioned in the centre. The different position is realized in the 1E1A6CCD_manila file.

Now you have to turn these images in manila files.

Franwella made a little guide for the clock background. The steps for the other standard pictures (hands and ClockDot) are the same. As an alternative you can use CFC GUI. Scan the selected folder, you should see all the qtc-manila-files in the left row. Select the manila file, replace (button bar in the right down corner) the image with your PNG image. That's all.

For new manila objects you should create a self-documenting name (f. e. DateDayTens). You have to use this name at all positions, where this object is used (in the mode9 file and the lua script). Use the manilahash program with this string :

\windows\htc\home\assets\images\Home\VGA\Your_Name.qtc

The pdf file in post 2 contains these strings for all the objects I used. Don't let you disturb by the folders. All manila files are in the windows directory.

Take another manila file, copy it in your temporary working directory, rename it with the new hash name, change the picture like above.
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Modifications of the mode9 file

mode9 file 1E1A6CCD_manila (former 7c60907d_manila)

The mode9 files regulates the type, size, position, location and some times color . Thanks to poyensa there is already a guide for changing colors in text objects. Here we look at the analog clock objects. I use m9editor . After some clicking you find this

In this Group there are several "GLESSprite2D" objects and one "GLESText" object. This are the description for the analog clock objects and the AMPM field. I opened the secondHand for a moving object and the analogclock for an unmoved object. The difference is the <Property> line for Center Value which unmoved objects didn't have. Notice that moving means also rotate in a

constant

position.

new objects and order of objects

For adding of new objects simply point to an object with nearly the same properties (so you have not much to change), click right, select copy, then go to the object before the position of your new object, click right and select paste below. The order of the objects determines how they are "layered" at the clock (thanks to pchronos). If you have a clock with moving objects which are covered by the casing (f. e. the second hand in the Hero clock by Lechu), add the covering parts as a new layer/object (f. e. "analogclock2") after the moving parts. For my clock you can see that the order of the objects is the same as the layers in post 2.

In the picture you can see an added text object DayDatenight with luminous colour and an added hour hand for the night version.

properties

Click on the line. You can see at the lower border of the editor a line for changing the values. Don't forget after changing to click "Ok"

Name Instance

Is the name of the variable of the object in lua scripts. I used for my new objects for simplification the same name as for the qtc-image in second line (only with added _). That's not necessary.
​

Name Texture Path

Thats the location of the image file. Use this name (only the last part before .qtc! instead of the fat letters) for the hash manila name as described above.
​

Name Position/Name Center/Name Size

These values are corresponding with each other. For standard values (normal size, rotating in centre) change nothing. If you want to change the size so 3lixir found a formula for the changed width of hands:

Change the width of hand image (best to a multiple of 16).

The "centre value" for the x-axis is half the new width of the hand minus 0.5

The "position value" for the x-axis is 128 minus half the width of the hand.

If you want to change the position of a hand then (after you applied the formula above) try different values of x- and y-axis in Position until they meet your intented place.

For the color look into poyensa's guide. For rotation to a constant position see under lua script.

These are only tips. Most of the time they are working, sometimes you have to do it by trial and error.

​
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
files and templates

I hope the description in the above posts will help you to understand the modifications. I add the manila lua script, the manila files and the png files as zip. The Reference clock can be found in post 1.

For all who are about to despair because of compiling I made some templates. The first zip contains various versions of the compiled lua script and if necessary the mode9 file. You can get:

jumping minute/continous minute,

jumping second/continous second,

without date/ with date (as text object) not inclined, inclined 15°, inclined 30°,

12h/24h (the 24h modus works only with 24h settings).

The position and the colour of the objects can be changed in the mode9 file like described above.

The second Template zip contains a new reference clock with some basic modifications - continous minute and second, date as text object - and changing visibility for all objects (including AMPM). For the pictures I took my carbon clock but they can be changed by you as you like. Tip: If you wouldn't change some objects, take the same picture for day and night object. The text object DayDate could be "hidden" behind the clock background by repositioning in the mode9 file. So you have only to change the mode9 file.
[HD2 Windows Mobile 6.5 Themes and Apps] mddjr01:
Really nice job! :D
[HD2 Windows Mobile 6.5 Themes and Apps] 11calcal:
installed orig cab over orig CHT clock reset and all I got was a second hand added to CHT orig but quite abstact ?
[HD2 Windows Mobile 6.5 Themes and Apps] dena994:
really nice!
[HD2 Windows Mobile 6.5 Themes and Apps] Steve0007:
Really nice clock and you also made the second hand, date and AM/PM working which is something nobody had made yet. Great job :cool:
[HD2 Windows Mobile 6.5 Themes and Apps] nirvanax:
great work you are the best man
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
In this cab are the original CHT manila files. Can you post a screenshot?
[HD2 Windows Mobile 6.5 Themes and Apps] abumhmmd1:
THANKs for the Good WRK

:)
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Sorry, didn't saw the edit. You used a modificated 7c60907d_manila file (thats why the changed position of the second hand). Sometimes if you installed a cab without deactivating HTC Sense and a file is in use, then this file is not copied. Try this: Deactivate Sense and install the original cab once more, than activate Sense.

Or install the attached cab for the original file.
[HD2 Windows Mobile 6.5 Themes and Apps] sterkejerreke:
WOW, this is getting real awesome man. Thanks
[HD2 Windows Mobile 6.5 Themes and Apps] jaguaralani:
The BEST CLOCK MADE FOR COOKIE HT SO FAR ;)

And the first clock which forced me to enable the SECOND HAND :D

Well Done Mate.........
[HD2 Windows Mobile 6.5 Themes and Apps] jaguaralani:
I agree....

+1

----------------------

EDIT: After testing the clock, the second hand and the lower gear still get stuck and still after waking the phone up ................
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Thats right. The clock is very depending of other processes. Especially till the calendar is fully open there is a delay. Other point are the turning of the minute (with all the animations) or activesync. Sorry I tried to minimize this but thats the best solution I found.
[HD2 Windows Mobile 6.5 Themes and Apps] emottier:
CPU load.

Wonderfull clock.

But it takes 70% of my HD2 CPU when i am on "Home". I check this using BattClock v2.1.2.

I am afraid that it will drain battery. I'll monitor and let you know.

Congratulation for this.
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
That's the second disadvantage. It is power consuming because of the necessary processes in the background (please see later post 2). I noticed the same. But I think it is only when you use the home screen (f. e. for watching the clock), not in standby or at the use of other programs or functions. Can you please post your experiences? Thanks
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
New "switching" versions

In TicTac's thread with his wonderful clocks a user made the request for a daylight clock with lumen in the night. Why not? So I looked into it and this is the result. The clocks are a combination of TicTacs daylight and maxlume versions. From 20:00 in the evening till 8:00 in the morning the maxlume version ist to be seen. Then it will fade away and once appear in the evening. Because the modifications are at different places I'll add the manila file zip with images and lua script. Download is in first post (take the Lüm-Tec clock.zip). So enjoy.
[HD2 Windows Mobile 6.5 Themes and Apps] ancola66:
Hi Rat_2665 :)

I like your improvements analog clock with day of week, but for me like to change the day of the week into position the AMPM (remove AMPM and Moon phase). I reedit 1E1A6CCD_manila file its OK, but can not edit lua file 1EC5924B_manila :(. Can you help me? Very thanks and sorry for my bad English :)
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
You can use the unchanged lua file. Lay AMPM under the background and use a background image without the opening for the moonphase. The position of the day of the week is changeable in the 1E1A6CCD_manila. Take the values of AMPM.

But if you want to use not the date with disk but the simplier date like in the Lüm-Tec clocks I have to make a new 1EC5924B_manila.
[HD2 Windows Mobile 6.5 Themes and Apps] jaguaralani:
The new thread ' rearrangement' is awesome and very handy.

Thanx mate for your efforts
[HD2 Windows Mobile 6.5 Themes and Apps] ancola66:
I'm not sure understand the you says :) because of my poor english:(. But I want a clock like this for version 1.8.5 CHT (left window with day and right windows with day of week ). You can help me ? Very thanks :)
[HD2 Windows Mobile 6.5 Themes and Apps] pablo11:
Working great now. Thanks mate
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Here are the lua script and the mode9 file. The day of week has only two letters not three like in your image ;). So good work. :)

Thanks. I'll rework the next two posts too. But not today ;)
[HD2 Windows Mobile 6.5 Themes and Apps] ancola66:
Very, very thanks:) But not have secondhand?:(
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
:o It was late and I saw no seconds dial and deleted it. Sorry, now with second hand.
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Dear rat2665;

I installed the manila file you gave but three characters in the picture does not look like the week days.:confused:
[HD2 Windows Mobile 6.5 Themes and Apps] ancola66:
Now working fine. Very thanks :)
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
This is a picture made by ancola66 with an image processing program. The letters for day of week in this image are not real but made by this program.
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
OK I understand. Dear rat_2665 7BA5E044_manila for new projects turn 360 degrees for 24 hours is it possible? Can you do the necessary changes and 7c60907d_manila 461d3306_manila?:o​
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Leocan, can you explain it further, what you want? 7BA5E044_manila is the very fast turning wheel in the Tourbillon. Please describe simply the clock and the functions you want to use (but not a moonphase, which turns 360 degree in 24h ;)).

By the way: The description in post 2 is not updated yet. 7c60907d_manila and 461d3306_manila are no longer in use in CHT 1.8.1. It's now 1E1A6CCD_manila (mode9 file for the objects) and 1EC5924B_manila (lua script for the animations).
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Yes you are right. CHT1.8.5 file for 1EC5924B_manila - 1E1A6CCD_manila and with a variety of 2C2AA9E8_manila you make 24 hours in 360 degrees to take a one tour.

Sample:Moon phase clock weekday NH CHT1.8.5 files carbon.cab
[HD2 Windows Mobile 6.5 Themes and Apps] Father Ted:
I just came across this thread by accident, and despite the fact your clocks don't compliment my CHT, I have to say this thread was a pleasure to read.

Not just the quality of the clocks, which are really classy and very unique, but the lessons that followed, where well written and beautifully presented.

Rat....... you epitomise all that is great about this forum - people who not only create something, but also teach, help, and gladly share the fruits of their exceptional talents.

People like yourself are who make xda a true community.

Thank you Sir.
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Thank you. I'm blushing ;). But you are right. This is the spirit of this forum, which inspired me too. And additionally: If you did your work you can better appreciate and honour the work of others in this forum.
[HD2 Windows Mobile 6.5 Themes and Apps] dharvey4651:
Any chance we can see a new Tourbillon face for CHT1.8.5 that looks like this?

The "Trust" and "Power" meters on the watch face could be subbed for Moon Phase and Date but If at all possible, I would like to see the original shapes and style kept as original as possible. Do you think this request would be possible? I know it's a rather complicated face.
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
In the "pre-rat-mods-era", for CHT 1.7 and long before CHT 1.8.5, I made a rose gold B&R model on a user request. Looks nice at first sight, but the legibility of the dial is not really perfect in an electronic format. Furthermore, the B&R balance wheel means hours of work, a high res picture of that clock would be mandatory...
[HD2 Windows Mobile 6.5 Themes and Apps] dharvey4651:
Is that photo not sharp enough? I can see if I can find a better one but it looks pretty good to me as it is now.

Possibly because it's being displayed on an HD laptop monitor but never the less..

I'll keep looking.

EDIT:: Without going and finding someone wearing this watch and taking an extreme closeup shot with a professional camera in a studio or something, this image is really the best that we're going to find. It's the image straight from their site.
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
Well, the higher, the better. As an example, just to illustrate, have a look at another Tourbillon - kind of a "what´s inside" look... the "final draft picture" consists of many layers - that way, the final result is looking like the real thing.
[HD2 Windows Mobile 6.5 Themes and Apps] dharvey4651:
Without going and finding someone wearing this watch and taking an extreme closeup shot with a professional camera in a studio or something(after stopping the watch so you can catch all the details), this image is really the best that we're going to find. It's the image straight from their site.

I'm willing to sacrifice the power and trust meters in exchange for some other complication and honestly, I really don't expect perfection, I'm not the kind of guy who takes out his magnifying glass and looks for imperfections. :p

I just think this would make a really cool looking face for CHT.
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
Haha... I can understand you.

As a Swiss clock enthusiast, I opt for highest possible quality. ;)

The rose gold model looked nice on screen, but it was kind of "ahem" to read the time...
[HD2 Windows Mobile 6.5 Themes and Apps] dharvey4651:
I can understand that too. :cool: See the watch that I wear on a daily basis is also a self-winding Tourbillon watch but has minimal complications. It also has no text dialog or numbers and quite honestly, I'm not that good at reading an analog watch. Takes me a second to figure out what time it is every time I look at it. I'm just a style freak and think that the watch face I posted earlier would just be pure awesome on my HD2.

Detail really isn't even a major issue really because I use the dual clock face on the empty space 0 layer. It won't be the largest clock so details will be shrunk anyway.
[HD2 Windows Mobile 6.5 Themes and Apps] tictac0566:
Within a week or 2 I might try it, but not from scratch. Basis would be the rose gold in b&w, as attached. But for now, I don´t have the time, maybe someone else would be faster...
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
TicTac and you are occuping my thread :). But basically he is right. The picture is on the border, but on the good side. Sometimes detail photos come handy. I'll look in the web. The hands are very dark. That's not so good for visibility. So maybe, but not at present.
[HD2 Windows Mobile 6.5 Themes and Apps] der_wilde:
Hi, great job

Here's my 1st clock of my football-club fan project

More infomations here

Is it possible to combine the clock with the weather tool?

I want to change the background picture of the clock. When the weather tool shows the day the background of the clock should show me the stadium with a daylight picture, when the weather tool shows the night, the backround picture should be changed with the stadium at night

Best Reagards
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
No and Yes. You can't combine the visibility change of the clock with the weather tool. But the weather pictures (sun/moon) are depending on the time and that's also the way for the visibility change of the clock. I don't know at which time the weather pictures are changing, so I made a version of 1E1A6CCD_manila and 1EC5924B_manila for your clock like in the Lüm-Tec clocks by TicTac with a switch at 8:00 and 20:00. The day background is the standard 20F62884_manila, the new night background is the 3C87827D_manila. I haven't tested the files yet, so you are the "test person" :).
[HD2 Windows Mobile 6.5 Themes and Apps] der_wilde:
Thanks a lot, I'll test it tomorrow.

Now I've to prepare for the match!
[HD2 Windows Mobile 6.5 Themes and Apps] leocan:
Grandmaster of the rat;

I've tested and works perfectly;)

08:00 hours behind the second background picture is changing soft.

But it does not seem 7126E342_manila.
[HD2 Windows Mobile 6.5 Themes and Apps] der_wilde:
Hi rat,

well, it works, but I have different other problems now!

1) the moonphase background ist dark while day.

2) I haven't testet it, but I think same problem with the the clockdot

2) both the night and the day background are made with Photoshop. One Picture with different layers. I cut the placeholder for the moon phase with the same template (hard cut/not transparent).

Now, when the background changes from day to night, I have a small little frame from the day background in the moonphase placeholder.

Please tell me, how does it work!

Are both pictures in the clock and the used picture comes up while the other goes down. If yes, I believe I'll get the same problems if I use a a light moonphase picture. Then I'll get a dark frame from the night background.

Is it possible that you

-write me a lua script which changes the clockdot and the moonphase backound

-tell me the name of the 2 new manila-files ?

I change the mode9 file with the following names:

moonphase_night.qtc

ClockScapeButton_night.qtc
[HD2 Windows Mobile 6.5 Themes and Apps] dharvey4651:
Bumping this thread from whatever page it was on.. Certainly couldn't find it just browsing. Had to search for it lol.

Just want rat_2665 to get some more exposure. His work is amazing and truly a work of art. I just want everyone to get a chance to see and maybe use his work and that's not gonna happen from page=*unknown*.
[HD2 Windows Mobile 6.5 Themes and Apps] firesnakess:
A short question..

¿what is the manila file or files name , who makes the transition day/night at 8 o clock?

I want to install it in anothers clocks that I have.

Thanks to answer and thanks for the great job.
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
It's the Lua script 1EC5924B_manila and the mode9 file 1EC5924B_manila. But there are several other manila files for the night objects. If you can wait a little time I'm at present working on a reference clock on the base of my carbon clocks, which I will describe at post 2. Maybe tomorrow.
[HD2 Windows Mobile 6.5 Themes and Apps] traianescu:
i had posted the link in the tictac's thread, too: http://www.urwerk.com/ :eek:
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
I already looked into it (after this post). The 103 and 103T models are not simple but possible. I asked them for permission but haven't gotten a real answer yet, so sorry at the moment.
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
new visibility switching reference clocks

Added new reference clocks for visibility switching together with a description in post 2. The description of the lua and mode9 files will be updated in the next days.
[HD2 Windows Mobile 6.5 Themes and Apps] kangmas:
THANKS

Thanks rat_2667. Been waiting for this, been trying to combine/transition your tourbillion gold to carbon. Thanks to your mode9 and lua, I just edit the graphic. Thanks again. (Clock edit for personal use hopefully with your permission)

Image Hosting
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
:) It looks good. If you want a carbon background with inclined numbers or a white background with straight ones, say it and I post it.
[HD2 Windows Mobile 6.5 Themes and Apps] kangmas:
Hey thanks, and thank you for the offer. carbon background with inclined numbers will be good. Really appreciate it. Thanks again. :)
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
The promised background. :)
[HD2 Windows Mobile 6.5 Themes and Apps] musezicos:
vinsens analog tourbillon clock

thanks rat_2665 for your most beautiful CHT clocks :)

this is my own version of "CHT 1.8.5 Reference Clock Tourbillon visibility"

Enjoy !!!
[HD2 Windows Mobile 6.5 Themes and Apps] rat_2665:
Thank you very much. Your clock is wonderful and fits perfectly your theme. I'm glad and delighted when others take these clocks and make their own nice ones because that was my intention when I published these clocks. And your clock is an exceptional example.