Welcome to Esato.com




structure of THM-files


Click to view updated thread with images




Posted by mmbr777
Hello everybody!
Can you tell me where I can read about how thm-files are constructed?
I see that one thm-file of theme has XML which describes all parameters and images.
But I can't understand how to form all these files into one file... How to calculate checksum and so on. Maybe you know where I can read about this (structure of thm-files).
Tell me, please...



Posted by buckle247
if you just want to know to create your own theme there are programs available for free that do it all for all (check the developer section on SE website, will need to register).
If you want to know just for general knowledge/intrest then can't really help

Posted by mmbr777
Thank you, buckle247, for advice!..
But I need to create something like own theme-creator...

Posted by max_wedge
there are theme creators that simplify the job, however if you get an existing theme file, and rename it so that the .thm extension says .rar instead , you can then open it with winrar (google it and download and install winrar).

Inside the theme (which is just a rar archive) you will find an xml file and image files that make up the backgrounds etc of the theme.

You can make your own images by using the theme images as a template for your own backgrounds, and you can edit the xml file with notepad to change the colour scheme and ringtone etc.



Posted by mmbr777
Guys, I need exactly thm-format how thm files are inside.
I don't need any archivers (such as winrar).
In thm for mobile themes there are fields such as "checksum" "phone model" "inside file text"... and others... But I don't know in which order, and how to calculate checksum... Maybe this specification is published on some resource. Maybe you used to read it. Maybe you can give me a link to this document.
All I need is specification of thm files for mobile themes...
(Great thanks that you are trying answer me... But that was not that I need...)

Posted by max_wedge
mate, the .thm file IS A RAR ARCHIVE. If you rename the .thm extension to .rar, then you can open the archive and inspect the xml file inside and learn how it works.

Once you understand the xml file (it's obvious from looking at it), all you need to do is zip the xml file, and your new images, into a rar archive, and then rename it to whatever.thm and send it to the phone. You don't need any checksum, just zip your xml file and images into a rar. That's all you need to do.

You then have a theme constructed from scratch. If you don't understand that just download the freaking theme creator and stop asking questions and then ignoring them when answered.

If you are trying to create a program that makes themes, then all you need to know is the structure of the xml file, you don't need to know about checksum's, model or anything like that.

If you bothered to look on Sony Ericsson developer, you would have found this: http://developer.sonyericsson[....]ls/multimedia/p_multimedia.jsp download the developers theme guide.

Other manufacturers will each have their own developer websites which is where you find this sort of info

[ This Message was edited by: max_wedge on 2005-11-12 13:04 ]

Posted by mmbr777
2max_wedge

I've understood that you mean. So... What I'm doing. I'm writing xml-file and painting all images... Then I pack them into rar-archive. Then, I rename this rar-archive to thm-file. And what ??? Inside it I have something like "PKblablabla"... And this thm-file does not open in Sony Ericsson Themes Creator (for example). Possibly it would run on mobile. But I need it openned in Themes Creator!..

So, we just misunderstood each other. What does "structure of thm" in my representetion. This is a file which consists of some blocks:
[Block0Block1Block2...]
where each "BlockN" - is separate file.
Block0 is XML which describes theme.
And Block1, Block2, ... are images that are used.
But! All Blocks are in format like [Filename Checksum Phone-Model ... Filecontent].

So, I want to know the structure (format) of separate blocks...
Maybe someone know... Where I can read about this...

And I need to code own program which will build this thm-files. I AM NOT ABLE to use other soft. You see...
Can anyone help me?

Posted by buckle247
I'm not sure where you are getting this checksum thing from as here is the total XML file for a thm. I can't see the word checksum anywhere in that file, and there are now other files contained within the thm structure (apart from images).
Code:

<?xml version="1.0"?><Sony_Ericsson_theme><!--CreatedWithThemeCreatorPro31260><Phone_model Name="T61x"/><Theme_modified_by Name="b@nec"/><Theme_created Date="18.2.2003 16:09"/>--><Statusbar_background_image Source="statusbar.gif"/><Wallpaper_image Source="bez názvu 1.gif"/><Softkeys_background_image Source="softkeys.gif"/><Desktop_background_image Source="desk2.gif"/><Title_image Source="title.gif"/><General_background_image Source="menuu4444.gif"/><Highlight_image Source="high.gif"/><Morelist_popup_title_image Source="poptitle111.gif"/><Morelist_popup_highlight_image Source="pophigh.gif"/><Standby_operatorname_text Color="0xFBDB79"/><Standby_operatorname_outline Color="0x000000"/><Standby_time Color="0xE9E9E9"/><Standby_time_outline Color="0x000000"/><Desktop_background Color="0xFFFFFF"/><Desktop_title Color="0xF7C01E"/><Desktop_title_outline Color="0x000000"/><Softkeys_background Color="0xADADAD"/><Softkeys_text Color="0xF7C01E"/><Softkeys_text_shadow Color="0x000000"/><Softkeys_disabled_text Color="0xF7C01E"/><Softkeys_disabled_text_shadow Color="0x000000"/><Softkeys_background_activated Color="0xF6F6F5"/><Title Color="0x000000"/><Title_text Color="0xFBDA75"/><Title_text_shadow Color="0x000000"/><Background Color="0xFFFFFF"/><Text Color="0x000000"/><Disabled_text Color="0x7F7F7F"/><Prompt Color="0x000000"/><Cursor Color="0x000000"/><Highlight Color="0x808080"/><Highlight_text Color="0xEBEBEB"/><Highlight_disabled_text Color="0x8C8C8C"/><Scrollbar Color="0xFAD156"/><Scrollbar_frame Color="0x000000"/><Morelist_title Color="0xFBDB79"/><Morelist_title_text Color="0x000000"/><Morelist_title_text_shadow Color="0xBDBDBD"/><Morelist_background Color="0x000000"/><Morelist_text Color="0xF7C01E"/><Morelist_disabled_text Color="0x7F7F7F"/><Morelist_prompt Color="0xF7C01E"/><Morelist_cursor Color="0xF7C01E"/><Morelist_highlight Color="0x595959"/><Morelist_highlight_text Color="0xE1E1E1"/><Morelist_highlight_disabled_text Color="0x7C7C7C"/><Morelist_popup_frame Color="0xF7C01E"/><Morelist_popup_shadow Color="0x808080"/><Morelist_scrollbar Color="0x000000"/><Morelist_scrollbar_frame Color="0xF7C01E"/><Notes_background Color="0xFBDB7B"/><Notes_text Color="0x000000"/><Calendar_weekend_text Color="0x804040"/><Calendar_weekend_highlight Color="0x515151"/><Calendar_weekend_highlight_text Color="0xEBEBEB"/><Wapbrowser_underline Color="0xF7C01E"/><Wapbrowser_tableborder Color="0x000000"/></Sony_Ericsson_theme>



That was a t610 theme, and looking at a k700 theme it didn't even have the phone model number stored in it.



[ This Message was edited by: buckle247 on 2005-11-13 00:26 ]

[ This Message was edited by: buckle247 on 2005-11-13 00:29 ]

Posted by max_wedge

mmbr777, sorry dude, I see what you mean (I just tried it). Everything I said is correct, except it's not a RAR archive but a TAR!!
So sorry about that mis info. If you create a TAR file with the xml file
and images, it will work. I just created a theme by opening an
existing one and extracting all the images and the xml file. I then
packed them into a TAR archive with tugzip (you can't use winrar to
create TAR archives, so I had to find something else), renamed it
to .thm, and opened it in the theme creator. It opened perfectly, no checksum error.

Then I sent it to the phone where it also worked.



[ This Message was edited by: max_wedge on 2005-11-13 03:11 ]

Posted by mmbr777
Thanks to all ho tried to help me!!!

And Great Thanks to max_wedge!!! Thank you a lot! You've really helped me!


Posted by max_wedge
No worries


Click to view updated thread with images


© Esato.com - From the Esato mobile phone discussion forum