yashsingh1/xdaforums huggingface dataset:
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
In C-like languages, "%" is not division, but modulo ! But... If hash is 32 bit (as a Long) I guess it will just overflow and the modulo won't be useful. But I've got no VB tool to try it here :D
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
Thanx for the help.. :)

This is my program code...

Private Function countHash(ByVal v As String) As String
v = LCase(v)
Dim hash As Long = &H1505

For c As Integer = 1 To Len(v)

hash += hash * Math.Pow(2, 5)
hash += Asc(Mid(v, c, 1))
hash = hash Mod &H100000000

Next c

hash = hash Mod &H80000000

Return hash <--- EDIT: Return Hex(hash)

End Function

This is what I get...

\windows\HTC\Scripts\orangecalllogtransitions.luac ---> 488564274

:confused:

shouldent it be '1d1ee632'?

EDIT: Yhay!! I made it :D

forgot to change the result to hex...

\windows\HTC\Scripts\orangecalllogtransitions.luac ---> 1D1EE632
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
Hehe, good job !

Now you will scan all files, hash'em all, and justice for a... hem, and compare to known manilla files to identify all those ?
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
how do u mean?

It's a one way street...

only path to manila file, not manila file to path...

the reason I did all this was mainly because I wanted to know which file this was..

HTC\Scripts\orangemessaging.luac

so that I could get the messaging tab from orange :)

Its 5BF53E14_manila by the way :D

I will make this app as a exe and post it here later :)

EDIT: Here's the app .. enjoy :)

EDIT2

There is a bug in the app ... if the manila file starts with 0 it wont show the 0's in the beginning...

Just remember that a manila files is 8 characters before _manila... just add the missing 0's... :)

@D-MAN666

What is the filepath to xml files?

if I have a language file for en-us and want the name for de-de.. can this be done with the manilaHash?
[Touch Diamond, MDA Compact IV ROM Development] cocochannel:
thanks. but how would i make these changes? thru the registry or the manilla customizer? (i know the custmizer doesnt work with my rom wich is 1.93)....
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
have u read anything in this thread!?

copy 26948339_manila to to your computer and edit it with a simple text editor.

the customizer? Do u mean Manila Editor?

This is a computer program.. It will work on your computer!

I suggest u do some reading in this thread and others if u are unsure of what u are doing!
[Touch Diamond, MDA Compact IV ROM Development] m_ihab77:
good info, thank you very much
[Touch Diamond, MDA Compact IV ROM Development] mderm:
Decompilation example

So like I said, here's an example for a somewhat bigger script. this one is for messaging.mode9.scripts\script1.luac from D-Mans package.
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
@NisseDILLIGAF

Hi Nisse...excuse me for my request, but I would know if you was able to made the "traslation" between orange messaging and black manila one...

If you did that, could you exlain step by step what I have to do?

sorry, but my program languages knowledge is very very poor (like my english as you can see :p)
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
sure...

use the manila files that i've attached..

(there are 3 image manila files u can edit)

then change in 26948339_manila..

<Page Order="2" Name="messaging.page" PackageName="HTC" Title="[[IDS_MESSAGING]]" ExternalScriptPath="HTC\Scripts\orangemessaging.luac">
<ComponentReference Name="page"	Mode9Path="HTC\messaging.mode9" Component="MessagesTopLevelPage" SmartComponent="true" />
<ComponentReference Name="icon_normal" Mode9Path="HTC\icons.mode9" Component="Messaging_Off" />
<ComponentReference Name="icon_selected" Mode9Path="HTC\icons.mode9" Component="Messaging_On" />
<ComponentReference Name="icon_preview" Mode9Path="HTC\icons.mode9" Component="Messaging_Preview" />
</Page>

this is added

ExternalScriptPath="HTC\Scripts\orangemessaging.luac"
[Touch Diamond, MDA Compact IV ROM Development] pyro9219:
I second this... I'm still not able to fully use touchflo2d because I don't have todayagenda like I can with the normal plugin home screen.
[Touch Diamond, MDA Compact IV ROM Development] AppStar:
Haha, clever...

Well I've run into a couple other problems that you all have as well (can't change the Sprint page bg or clock bg) so I'll just wait until a new version of Manila Editor is released.

Yeah, editing of the mode9 files is critical to putting together unique themes. I could take a shot at writing a .net editor if D-MAN666 wants to release his mode9 parser code. ;-)
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
Oh my God Nisse...!

THANKS

THANKS

THANKS

THANKS

THANKS

THANKS

!!!

My manila now is simply fabulous!!!

PS: Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[Touch Diamond, MDA Compact IV ROM Development] fillippe:
Progress Summary Report

Does anyone think it would be helpful to have a knowledge gained summary on the Manila front end of the Diamond? Knowledge uncovered by many individuals efforts in this thread and others?

I wander about an update to I3v5y's starter thread with some additional information for the less advanced programmers amongst us who then may be able to assist more.

For example:

It might help to have some explanation on how the Manila "application" functions, controls or is controlled within WM6 with what appear to be some Text files, XML files, lua script files, graphics handler files, graphics files? E.g. There does not appear to be a manila.exe file or am I wrong?

Also, it would help to have NisseDILLEGAF's bit of script included in the first post with an explanation as to its function. I thought it was meant to return the "friendly name of manila files" but it returns a hex code.

Then we could all be developing a complete directory of each files properties and function.

It would be something for the Wiki. I would be prepared to draft and maintain the Wiki if all agreed.

Any thoughts?
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
a mode9 editor would be frickin awesome!

what I have seen in the mode9 files... just some small changes could have big effects in TF3D...!

please D-MAN666 help us out here... :D

spread your wisdom to us mare mortals :p

A second that .. take control of the wiki!!

expand the manila research section... Bring it back to liiife!!

(ohh.. sorry, got caught up in a Frankenstein episode there...:p)

I will contribute as much as I can to it...!

what do you mean by no manila.exe file...??

I've seen it... but I'm guessing u mean something with the manila.exe? :confused:
[Touch Diamond, MDA Compact IV ROM Development] fillippe:
I'm just being dumb Nisse. I hadn't registered there was a manila.exe file.:confused:
[Touch Diamond, MDA Compact IV ROM Development] GriFolle:
@nisse

I know that I'm pretty annoying...but I need a last help:

some posts before you've give me the files to use the orange manila messages tab into others manila versions...all worked fine (as I sad before) but I've not considered one thing: font colour for this tab is now turned to black!

It's quite impossible to read words (due the black background of my manila) and so I need to turn back this font to its original white color!

I've read some posts about changing font colours of the tabs so I tryied to make it by myself...but when I open this file 47dd6acd_manila there are many lines with a "color" diciture, and I don't know wich one I have to modify...could you please help me?
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
I'm working on it...

I'm also trying to edit the mode9 file 47dd6acd_manila that way... can't find where to edit the colour!?

heres the parsed 47dd6acd_manila

maybe that can help u...

please let me know if u make it :)
[Touch Diamond, MDA Compact IV ROM Development] pcarvalho:
hi there! nice work being done here...

well i am part of the Polaris 3D Driver Development Project (P3D)...

and i'm making touchFLO 3D run on QVGA systems with 3D drivers...

http://www.youtube.com/watch?v=lfqA4zO1f6I

i've finaly got it running (fast) and now need to reajust the viewports to QVGA limits...

to do that i will need to know how do i parsed *_manila (mode9) files...

that is, how to decompile, change and recompile these files...

can anyone tell me how to (in detail)?

thanks again for such great work you all doing...
[Touch Diamond, MDA Compact IV ROM Development] ai212983:
Hi there!

Is there any tools allowing to extract lua files, disassemble them, edit. compile, and embed back into the manila?

I'm aware of ManilaReverserPack, but its for disassembling/compile part.. =(

Still have no idea how to extract 'em or how to put 'em back.
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
@D-MAN666

Need some help here... :rolleyes:

I was trying to 'hash' this path...

..\..\..\products\manila\deploy\TMO\Assets\Images\Manila\icon_preview\Comm-manager-hero.png

but it's different from the other ones... do you know how to do this? :o
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
What is the problem ? The "..\" at the beginning ? If so (excuse me if it is not the problem and you already now ;)).

"..\" means a relative upper path.

For exemple, if you are in "c:\windows\setting\stuff\", the folder "..\" would be "c:\windows\settings\" and "..\..\..\yeepeeha\" would be "c:\yeepeeha\".

For your hash, I don't know if you'll have to rebuild the full path or not...

Hope I was not wrong for the matter of your concern :D
[Touch Diamond, MDA Compact IV ROM Development] pcarvalho:
cant someone help me decompile mode9 files, edit and recompile?

i've read it all and don't know how :confused:
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
You are probably right...

but it doesn't work...

The thing is this...

normally i get the manila file by typing in the path...

for

.\Assets\Images\Manila\icon_preview\All-People-hero.qtc

i type

\windows\HTC\Assets\Images\Manila\icon_preview\All-People-hero.qtc

and i get the manila file name...

but what do i enter for this!?

..\..\..\products\manila\deploy\TMO\Assets\Images\Manila\icon_preview\Comm-manager-hero.png

@pcarvalho

Sorry I cant help u ...

I want to edit mode9 files too... but i guess we have to wait untill there is a decompiler/compiler app... :(
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
Where did you find that path ? If the file is in "\aa\bb\cc\dd\", then I guess you should use "\aa\products\manila\deploy\TMO\Assets\Images\Manila\icon_preview\Comm-manager-hero.png"

Perhaps you should just do a search for the .png ? :D Did you try with its real path ?
[Touch Diamond, MDA Compact IV ROM Development] D-MAN666:
You're right about paths, Ximoon :)
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
I got it from the 3-icon menu..

http://xdaforums.com/showthread.php?p=2664825#post2664825

When people add the CommManager as a tab there is no Icon for it when they use this...

so I had a look in the mode9 file and there it said that the icon to show is..

..\..\..\products\manila\deploy\TMO\Assets\Images\ Manila\icon_preview\Comm-manager-hero.png

but I cant find it... and I tried to make my own manila file bu taking another file and renaming it to the filename I got from the Hash...

so what u say is that it should be ...

\windows\products\manila\deploy\TMO\Assets\Images\Mani la\icon_preview\Comm-manager-hero.png

that is '43130eb2_manila'

And I cant find a file called 'Comm-manager-hero.png' or 43130eb2_manila anywhere...??? :(
[Touch Diamond, MDA Compact IV ROM Development] D-MAN666:
Some curious finding. The hash used in manila is actually a well-known "djb2" algorythm :)

http://www.cse.yorku.ca/~oz/hash.html
[Touch Diamond, MDA Compact IV ROM Development] ai212983:
Hi there again. I hate to be noisy, but as I can see, there's 2 requests (from me and from other guy) was made on m9 files, but still no responce.

ATM we're looking at 2-3 guys-knows-something-others-dont chatting between themselves while others whining for any info on how to participate too. This community supposed to be open, isn't it? I know, it's kinda voluntary and stuff, but does we deserve any responce (even negative one)?

So, please - is there any tools allowing to extract lua files, disassemble them, edit. compile, and embed back into the manila? Same question about m9/qtc1 files.
[Touch Diamond, MDA Compact IV ROM Development] D-MAN666:
O RLY?

yes, this community is voluntary, so everyone has complete rights to ignore anyone, who ignores community basics.
[Touch Diamond, MDA Compact IV ROM Development] mun_rus:
plz, read several pages ago..D-MAN had published all instructions and examples about it
[Touch Diamond, MDA Compact IV ROM Development] ai212983:
what basics? the right to ignore those who ignore the right of ignoring (oops, kinda recursive here)? what of community basics was ignored by asking for help?

you're talking about "ManilaReverserPack", right? it has contain some files to decompile/compile lua bytecode and docs on lua VM, but its still unclear how to process hashed file names into paths, and how to extract GLE/Lua files. I can change images with ManilaEditor just fine, but with other files its kinda unclear... =(

all i wanted tbh is to change default application invoked by pressing the clock to SPB Time and to remove some unused tabs.
[Touch Diamond, MDA Compact IV ROM Development] D-MAN666:
the basic thing to "search before start whining"

No, he means that it's not "someone-knows-that-others-dont" situation: all format descriptions was posted by me here, so do whatever tools you want.
[Touch Diamond, MDA Compact IV ROM Development] ai212983:
been there, done that, found nothing.

no surprize - as you kindly states below, there's nothing can be found, because it's only format descriptions were posted, but not tools i was asking for.

well, the question was:

"is there any tools allowing to extract lua files..."

the answer is:

"only those posted in this thread, for any other stuff u have to use something else, as formats are described here"

right?
[Touch Diamond, MDA Compact IV ROM Development] D-MAN666:
U ask'd howto edit QTC.

Yeah, no one have released any tools (except our Manila Editor) yet
[Touch Diamond, MDA Compact IV ROM Development] ai212983:
My first post (#288, the one was ignored) has nothing about qtc:

Mhm, thanks.
[Touch Diamond, MDA Compact IV ROM Development] mderm:
Maybe I'm not right but... the scripts that are of interest for you, your'e free to decompile then edit and get the orginal _manila filename with the hash algorithm posted here not to long ago...

btw another lua script, that one is about the animation of messages section. But there's one problem: the decompiler/dumper gets the same floating point number for different byte values in two cases so there are two bytes different, but i dunno how bad this is.

@D-Man - How complete are we? And will the Manila editor contain such a mentioned tool(by ai212983) sometime in nearer future :rolleyes:?
[Touch Diamond, MDA Compact IV ROM Development] mderm:
Got it. At least partially. Decompiler give not enough floating point digits. tried beyond compare that gave me a more exact value for the differing bytes. One matched but the other, humm...

in fact there are numbers for scale operations that are decompiled to

1.2999877929688 and 1.0999908447266

1.2999877929688 is in original script 1.29998779296875

for 1.0999908447266 Beyond compare says it should be 1.09999084472656

but that ain't right so I think even this program is not exact enough.

anyone a clue?
[Touch Diamond, MDA Compact IV ROM Development] D-MAN666:
It's just a diff number encoding - dont mind it, coz though bytecode is different, it produces the same number after decoding :)
[Touch Diamond, MDA Compact IV ROM Development] mderm:
Ah ok. Cool.

And what files to go next? it's kinda fun, like crosswords... And how far are we from a sdk:rolleyes:? Coz I can't wait for trying to merge sms and mail...
[Touch Diamond, MDA Compact IV ROM Development] SiTweak:
Have you allready found out which manila to edit for the comm manager hero??
[Touch Diamond, MDA Compact IV ROM Development] CASJ:
When I try to recompile a file, I've made no changes too, I get this error:

" luac: manila.lua:1: '=' expected near 'Hex' "

You know why?
[Touch Diamond, MDA Compact IV ROM Development] D-MAN666:
coz ChunkSpy is NOT a decompiler, it's a disassembler, i.e. you're trying to compile LUA assembly code, rather than LUA source code
[Touch Diamond, MDA Compact IV ROM Development] CASJ:
Oh, okay. Sorry. (I'll study a little more before posting again)
[Touch Diamond, MDA Compact IV ROM Development] jefffi:
Hey Leo, just a tad more info on the lock ups I was having: First lock-up occurred enabling WiFi as described by someone else in this thread (multi-color wheel and freeze, had to soft-reset). Second lock up occurred during an incoming phone call -- and I think S2U2 and Opal PhoneCanvas may have been having a fight over answering the call. So, I tried disabling S2U2 caller id, and got another lock up during an incoming call. I assumed that more work on stability would be necessary at that point. Perhaps it's just some incompatibility with S2U2 (ver 1.22 installed).

As per the normal burning routine, I always hard-reset after loading a new ROM. However, I had my SD card in to load my SASHIMI auto-install. If I reburn without using the SD card, I'll let you know how it turns out.

Thanks for your hard work, awesome ROMs.
[Touch Diamond, MDA Compact IV ROM Development] mderm:
Hmm did I miss something? Saw the mods by mun_rus with that additional button on message tab. He sad in this thread stands everything I need to know, but ... ah... I dunno, I cannot find how to integrate my decompieled/ changed/ recompiled lua scripts... Is there any more help possible?

For the first thing I want to add an option for a callback on the message tab, but beside the changes in lua I dunno... I think I have to get the hashed name, that is posted here, I know, but I can't put it together for myself...
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
Found a little bug : you don't add padding 0 on the left of the name to complete hashcode to 8 characters.

That would be nice to made the convert button as default one.

By the way, for relative path, I tried to convert the ".\Assets\Images\Home\VGA\012.qtc" I found in 1c84cd8_manilla, which is obviously 1C813F6C_manila, and making it be "\windows\htc\Assets\Images\Home\VGA\012.qtc" works fine.

So, you should be able to find your file by knowing the default location of the file in which you found the path to hash...
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
Sushilange>

I've got a problem with the desassembly suite :

I manage to desassemble the files provided in the zip file, following the instructions, but I can't do anything with the files I get from my Diamond; looking with an hexadecimal viewer, it seems to be some unicode problem... What did you do to your files to solve this ?
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
Found this :

\windows\htc\Assets\Images\Manila\icon_preview\Comm-manager-hero.qtc

42D367FD_manila (Orange one linked)

And I think there's a bug in the GLES file, it should be ".\Assets\Images\Manila\icon_preview\Comm-manager-hero.qtc"

Hope it's the good one :D
[Touch Diamond, MDA Compact IV ROM Development] NisseDILLIGAF:
Nice... will try this one...

but how can there be a bug in the gles... ???

and still be the right file?

will check it out... :)

thanx! :)

EDIT:

hmm.. I think I already solved it earlier... there is only 2 icons for the commManager..

so the 3-icon-menu dont work with CommManager...?

Gonna have a look at it again...:rolleyes:

Thanx for all your help...!
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
I guess (and that is just a guess) that the path in the GLES is the path on the work area of the developper of the file, who did not use the right path model, and forgot to correct it for the release. The main hint being the "deploy" in the path.

By the way, any new of a gles/mode9 editor, or any hint on how to edit those ?

edit : OK, I just missed the interesting post about the format... But an editor would still be nice ;)
[Touch Diamond, MDA Compact IV ROM Development] mderm:
What post was it?
[Touch Diamond, MDA Compact IV ROM Development] Ximoon:
http://xdaforums.com/showpost.php?p=2484745&postcount=129
[Touch Diamond, MDA Compact IV ROM Development] mderm:
Oh thanks. I read that before, but it was not clear to me what the mode9 file are at this time. So I guess, pls correct me if I'm wrong, editing is not a magic but take the tag signature bytes and fill in the values you need, in plain text?

Are all data types known by now?
[Touch Diamond, MDA Compact IV ROM Development] Ameet:
Guys, am sure this must have been researched by Nisse and experts but going through the first post I cam acoss the attached file which mentions font colors. Isnt it possible to change the font colors through this file instead of hex editing? :)
[Touch Diamond, MDA Compact IV ROM Development] mderm:
Do you have a link where to get this pre-release from?
[Touch Diamond, MDA Compact IV ROM Development] mediaserve:
Hi Guys,

Excellent work so far! :)

I was wondering if it is easy to change the settings tab. I have deleted the weather tab and I also want to delete the download weather item from the settings tab. I'm using the NL ROM.

Thanks :)
[Touch Diamond, MDA Compact IV ROM Development] sibbor:
I've tried it but it didn't turn out successful. Didn't change all the font colors within the XML file though, so I should give it another try I guess...
[Touch Diamond, MDA Compact IV ROM Development] mam65:
Salut Ximoon,

Je me permet de te contacter dans ma langue naturel, je pense que je vais me faire allumer. Si tu le souhaite, nous pouvons échanger en MP.

Je souhaiterais te poser une question au sujet du modification du code Manila réalisé par D-MANN666 sur l'onglet supplémentaire (Calendar v.0.75) présenté icihttp://xdaforums.com/showthread.php?t=423647 sur XDA. J'ai réussi à l'intégrer dans Manila HD mais je recherche comment un bouton (softkey, comme pour le choix "Aujoiurd'hui" en-bas à gauche, cf. image ci-dessous) qui me permettrait de lancer le calendrier poutlook ou ajouter un nouveau RDV dans le calendrier poutlook?

Est-ce que tu sais si c'est possible et comment ?

Merci à vous
[Touch Diamond, MDA Compact IV ROM Development] JAMILU007:
Hello everybody,

I wanted to see if anyone can help me with this.

My intention is to change the color green which is used to emphasize the day on the calendar.

Someone can tell me how can I change this color.

One more thing, I can see the numbers that correspond to each color?

There are certain tables?

Example:

Black = 0,0,0,255.

White = 255,255,255,255.

Etc. ....
[Touch Diamond, MDA Compact IV ROM Development] 6Fg8:
not very crowded here ... anyway ...

i found many of the manila files and their corresponding paths/names.

Updated the database

here
[Touch Diamond, MDA Compact IV ROM Development] Fat Boy:
I have failed at editing this file. does someone have a link with a step by step for editing a manila file.
[Touch Diamond, MDA Compact IV ROM Development] 6Fg8:
I decided to write a .mode9 editor. Have a look here:

http://xdaforums.com/showthread.php?t=464984
[Touch Diamond, MDA Compact IV ROM Development] AsfaltSame:
"Fake Server Trick"

After I did the ActiveSync "Fake Server Trick", it shows that I have 1 e-mail message in TF3D (when I have none). How do I delete that?
[Touch Diamond, MDA Compact IV ROM Development] Fat Boy:
What has this got to do anything with this thread??? this is about editing manila files. Please be more curtious to everyone and post your questions in the proper thread or start a new thread.
[Touch Diamond, MDA Compact IV ROM Development] Miasnikov:
For D-MAN666
[Touch Diamond, MDA Compact IV ROM Development] ghafarpour:
would you please give a sample source code for a simple tab, or for any third party tabs like calnedar!
[Touch Diamond, MDA Compact IV ROM Development] cityhunter71:
Try to delete