View Full Version : [TUT]Editing manilla!
jerem'
29th September 2008, 03:05 PM
EDIT : Sorry double post
Hi,
I already post on a separate thread but this subject seems to be a better place to ask :
Is there a way to have four days forecast on the weather tab like the HTC HD ?
D-MANN you aswered me you already tried, what are the manilia filers used by this weather tab ?
What type of modifications should be done (xml or harder) ?
Sorry for all this questions but a weaher tab with forecast would be great...;-)
Thanks
jerem'
29th September 2008, 03:15 PM
Hi,
I already post on a separate thread but this subject seems to be a better place to ask :rolleyes::
Is there a way to have four days forecast on the weather tab like the HTC HD ?
D-MANN you aswered me you already tried, what are the manilia filers used by this weather tab ?
What type of modifications should be done (xml or harder) ?
Sorry for all this questions but a weaher tab with forecast would be great...:D
Thanks
AppStar
29th September 2008, 04:12 PM
Hey guys,
Just got my diamond a few days ago so I have a bit of catching up to do here. I've started a theme to familiarize myself with the graphics and capabilities, then I'll start working on some custom LUA programming (although it's a new language to me).
Anyhow, quick question, though this might be difficult to explain. Does anyone know where to change the QTC file paths and dimensions of the selected tab icons? After doing a bit of research it appears the selected tab icons are the same QTCs as the large images that are displayed in the middle of the screen when sliding your finger across the tabs. Therefore I can't just replace the QTC file. If I replace the file it will change both the selected icon and the large centered image, which I don't want. I can't imagine the developers would have hard coded those tab icons file paths in LUA, it must be a setting somewhere.
Btw, excellent work to D-MAN666, sushilange, and everyone else who has contributed to exposing the inner workings of manila and created tools for us to work with. It's opened up a whole new fun world to explore for us developers and enthusiasts. I look forward to making my own contributions.
NisseDILLIGAF
29th September 2008, 11:52 PM
No, hash is not reversable... Only a recursive file parsing (from manila.xml) can get reliable results. As for Manila Editor, sushilange implemented a simple ".qtc" string lookup, but it works only for unmodded manila :)
ok... so if I want to get the manila file name from this...
'HTC\Scripts\orangemessaging.luac'
how would i do?
....Anyhow, quick question, though this might be difficult to explain. Does anyone know where to change the QTC file paths and dimensions of the selected tab icons? After doing a bit of research it appears the selected tab icons are the same QTCs as the large images that are displayed in the middle of the screen when sliding your finger across the tabs. Therefore I can't just replace the QTC file. If I replace the file it will change both the selected icon and the large centered image, which I don't want. I can't imagine the developers would have hard coded those tab icons file paths in LUA, it must be a setting somewhere.....
have a look here... I think this is what u are looking for?
http://forum.xda-developers.com/showthread.php?p=2664825#post2664825
D-MAN666
30th September 2008, 12:00 AM
ok... so if I want to get the manila file name from this...
'HTC\Scripts\orangemessaging.luac'
how would i do?
you should implement the following asm code in any language you prefer:
.text:78CE19D0 loc_78CE19D0
.text:78CE19D0 LDRH R2, [R4],#2
.text:78CE19D4 ADD R3, R3, R3,LSL#5
.text:78CE19D8 SUBS R1, R1, #1
.text:78CE19DC ADD R3, R3, R2
.text:78CE19E0 BNE loc_78CE19D0
.text:78CE19E4 BIC R3, R3, #0x80000000
Oh, yeah, also: path s/b in unicode format, lowercase, and begin with "\windows\", i.e. "\windows\htc\scripts\orangemessaging.luac"
GriFolle
30th September 2008, 12:19 AM
Nisse...maybe are you trying to display messages into default black manila as they are shown into orange one (I mean left align and with the fkoating background under the text)?
I'm trying to do that from several days (obiously without any succes! :p) and I've noticed that into manila.xml the only on difference between orange/black versions about that is the reference about those file...
PS:If is this the case, can you tell me how should do in noob words :D?
NisseDILLIGAF
30th September 2008, 01:21 AM
you should implement the following asm code in any language you prefer:
.text:78CE19D0 loc_78CE19D0
.text:78CE19D0 LDRH R2, [R4],#2
.text:78CE19D4 ADD R3, R3, R3,LSL#5
.text:78CE19D8 SUBS R1, R1, #1
.text:78CE19DC ADD R3, R3, R2
.text:78CE19E0 BNE loc_78CE19D0
.text:78CE19E4 BIC R3, R3, #0x80000000
Oh, yeah, also: path s/b in unicode format, lowercase, and begin with "\windows\", i.e. "\windows\htc\scripts\orangemessaging.luac"
hmm.. ok...
I haven't got a clue how to make this work...
I've never programmed Assembly language!
I've done some research and I guess I have to make a dll file from Assembly language? (I normally work in VisualBasic)
I found NASM that will help me in that...
But I don't know how to write it or how to call it in VB..???
Sorry to be such a pain :rolleyes: but can u help me with some VB programming instead of Assembly?? :o
Nisse...maybe are you trying to display messages into default black manila as they are shown into orange one (I mean left align and with the fkoating background under the text)?
I'm trying to do that from several days (obiously without any succes! ) and I've noticed that into manila.xml the only on difference between orange/black versions about that is the reference about those file...
PS:If is this the case, can you tell me how should do in noob words ?
That's what I wanted to do :D
But I don't know if it will work without changing the Lua coding also??
My idea was to get the script manila file and implement it like the CallHistory script and see what happens :p
D-MAN666
30th September 2008, 01:26 AM
I've done some research and I guess I have to make a dll file from Assembly language?Nono! It's just a couple of lines of code :D Here's my ActionScript implementation:
private static function countHash(v: String): uint {
v = v.toLowerCase();
var hash: Number = 0x1505;
for (var c: uint = 0; c<v.length; c++) {
hash += hash * Math.pow(2, 5);
hash += v.charCodeAt(c);
hash = hash % 0x100000000;
}
hash = hash % 0x80000000;
return hash;
}
Simple :)
HaiLe512
30th September 2008, 03:33 AM
Right now it is 6x3 items in the launcher, is there a way to increase it to 6x4 as has been done so in the M2D for Polaris?
Thanks
AppStar
30th September 2008, 07:35 AM
have a look here... I think this is what u are looking for?
http://forum.xda-developers.com/showthread.php?p=2664825#post2664825
Haha, awesome... I see now that I ran into the same problem you did when skinning the tab bar; there isn't a separate 3rd icon for the hover/selected state. You've solved the issue wonderfully, but it creates a new problem. If you use transparent images for the new selected icons, then the standard tray icons need to be elevated above the tab.
Also, how are you editing the Mode9 files? I'm able to view your modified 61f866ab_manila with D-MAN666's mode9parser, but I can't edit and save it.
mderm
30th September 2008, 10:48 AM
Just to give a little update, I've got the sms lua script at hmm... lets say 70%. when i'm done I will upload the lua code, so people who are interested can look into.
But how to go further? Can I then add a bit of code into the lua code, to lets say, add a menu option to to reply to a sms with a call, compile it, and replace the script in the windows path? and then it will work???
D-Man, I think u r the one who can answer this :rolleyes:
NisseDILLIGAF
30th September 2008, 11:04 AM
Nono! It's just a couple of lines of code Here's my ActionScript implementation:
Simple
I have to admit , I just couldent get it to work...
since I dont have much C programming skills I tried to translate it to VB..
shouldn't be so hard.. but I got stuck on..
the variable 'Number = 0x1505' I don't know how to handle hex in VB? (I guessing this is a hex number?)
v.charCodeAt(c) - all I could find about this when i searched was some java scripting!?
This is what i got so far... (embarrassing.. it should be so easy doing this code :o)
Private Function countHash(ByVal v As String) As String
v = LCase(v)
Dim hash As Long = CLng("&H" & "1505") '<--- This shouldn't be Long, right?
For c As Integer = 0 To Len(v) - 1
hash += hash * Math.Pow(2, 5)
hash += v.charCodeAt(c)
hash = hash / CLng("&H" & "100000000")
Next c
hash = hash / CLng("&H" & "80000000")
Return hash
End Function
Haha, awesome... I see now that I ran into the same problem you did when skinning the tab bar; there isn't a separate 3rd icon for the hover/selected state. You've solved the issue wonderfully, but it creates a new problem. If you use transparent images for the new selected icons, then the standard tray icons need to be elevated above the tab.
Also, how are you editing the Mode9 files? I'm able to view your modified 61f866ab_manila with D-MAN666's mode9parser, but I can't edit and save it.
well don't use it as transparent .. but your own icon in the manila file 'focused'...
I have to admit I cheated :rolleyes:
I stole the manila files from the T-mobile TF3D... I noticed that they had done their TF3D with 3 icons instead of 2... :D
It would be awesome to be able to edit the mode9 files!
So much customizing could be done :D
cocochannel
30th September 2008, 05:29 PM
im running sprint stock ROM.
i like my manilla except that big ass link of the sprint store in the music section. this thing takes so much space and result in the art cover appearing very slow.
would it be possible to create a cab that removes that link?
Ximoon
30th September 2008, 07:03 PM
I have to admit , I just couldent get it to work...
since I dont have much C programming skills I tried to translate it to VB..
shouldn't be so hard.. but I got stuck on..
the variable 'Number = 0x1505' I don't know how to handle hex in VB? (I guessing this is a hex number?)
v.charCodeAt(c) - all I could find about this when i searched was some java scripting!?
This is what i got so far... (embarrassing.. it should be so easy doing this code :o)
Private Function countHash(ByVal v As String) As String
v = LCase(v)
Dim hash As Long = CLng("&H" & "1505") '<--- This shouldn't be Long, right?
For c As Integer = 0 To Len(v) - 1
hash += hash * Math.Pow(2, 5)
hash += v.charCodeAt(c)
hash = hash / CLng("&H" & "100000000")
Next c
hash = hash / CLng("&H" & "80000000")
Return hash
End Function
well don't use it as transparent .. but your own icon in the manila file 'focused'...
I have to admit I cheated :rolleyes:
I stole the manila files from the T-mobile TF3D... I noticed that they had done their TF3D with 3 icons instead of 2... :D
It would be awesome to be able to edit the mode9 files!
So much customizing could be done :D
0x1505 looks very much like an hex number indeed, at least it is the C/C++/C# syntax for it. In VB, it should be &H1505.
I don't know VB that much, but why do you use CLong rather than just :
Dim hash as Long = &H1505
or so ?
v.charCodeAt(c) looks like the char (byte) which is at position c in string v, so you may use something like mid(v, c, 1), just mind that in the original code the first character is at index 0, and it might be at index 1 in VB.
NisseDILLIGAF
30th September 2008, 07:51 PM
im running sprint stock ROM.
i like my manilla except that big ass link of the sprint store in the music section. this thing takes so much space and result in the art cover appearing very slow.
would it be possible to create a cab that removes that link?
Since this is the 'editing manila' Thread ;)
Try to edit 26948339_manila... an look for this..
<Page Order="4" Name="music.page" PackageName="HTC" Title="[[IDS_MUSICTITLE]]" ExternalScriptPath="HTC\Scripts\sprintmusic.luac">
<ComponentReference Name="page" Mode9Path="HTC\music.mode9" Component="GizmoRoot" SmartComponent="true" />
<ComponentReference Name="icon_normal" Mode9Path="HTC\icons.mode9" Component="Music_Off" />
<ComponentReference Name="icon_selected" Mode9Path="HTC\icons.mode9" Component="Music_On" />
<ComponentReference Name="icon_preview" Mode9Path="HTC\icons.mode9" Component="Music_Preview" />
</Page>
then remove this from it...
ExternalScriptPath="HTC\Scripts\sprintmusic.luac"
-----
0x1505 looks very much like an hex number indeed, at least it is the C/C++/C# syntax for it. In VB, it should be &H1505.
I don't know VB that much, but why do you use CLong rather than just :
Dim hash as Long = &H1505
or so ?
v.charCodeAt(c) looks like the char (byte) which is at position c in string v, so you may use something like mid(v, c, 1), just mind that in the original code the first character is at index 0, and it might be at index 1 in VB.
Your right.. Dim hash as Long = &H1505 works..
But Im not sure that..
'var hash: Number = 0x1505;' translates 'Dim hash As Long = &H1505'
Number is Long ??
And I figured the 'mid(v, c, 1)' later... (sometimes I just go blind! :D)
but still I have the problem that when it comes to the line..
'hash += Mid(v, c, 1)' ...I get 'Can't convert / (or whatever character I put first) to Double'
So I think I have to convert character to hex somehow..
like..
hash += ToHex(Med(v,c,1)) <--- this dont work, because there is no souch thing as 'ToHex' :rolleyes:
Thanx for your help btw ... much appreciated!
Ximoon
30th September 2008, 08:15 PM
1- Long seems fine to me, according to what I've read about action script, and looking at the algorithm, it should be ok.
2- Don't mind about hexadecimal encoding, it's just used here to make it easier to read the masks used in the algo. What we seem to need is the ascii code of the character, 'hash += Asc(Mid(v, c, 1))' maybe ?
3- You're welcome, since you're one of the few people doing all the hard work, I'm just happy to help a bit ;)
NisseDILLIGAF
30th September 2008, 09:51 PM
1- Long seems fine to me, according to what I've read about action script, and looking at the algorithm, it should be ok.
2- Don't mind about hexadecimal encoding, it's just used here to make it easier to read the masks used in the algo. What we seem to need is the ascii code of the character, 'hash += Asc(Mid(v, c, 1))' maybe ?
3- You're welcome, since you're one of the few people doing all the hard work, I'm just happy to help a bit ;)
Thanx for the help... you were right about 'hash += Asc(Mid(v, c, 1))' :D
Now the next problem :rolleyes:
hash = hash / &H100000000 '<-- This always becomes 0 :(
Ximoon
30th September 2008, 09:55 PM
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
NisseDILLIGAF
30th September 2008, 10:37 PM
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
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
Ximoon
30th September 2008, 10:52 PM
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 ?
NisseDILLIGAF
1st October 2008, 12:16 AM
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 ?
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?
cocochannel
1st October 2008, 07:33 AM
Since this is the 'editing manila' Thread ;)
Try to edit 26948339_manila... an look for this..
<Page Order="4" Name="music.page" PackageName="HTC" Title="[[IDS_MUSICTITLE]]" ExternalScriptPath="HTC\Scripts\sprintmusic.luac">
<ComponentReference Name="page" Mode9Path="HTC\music.mode9" Component="GizmoRoot" SmartComponent="true" />
<ComponentReference Name="icon_normal" Mode9Path="HTC\icons.mode9" Component="Music_Off" />
<ComponentReference Name="icon_selected" Mode9Path="HTC\icons.mode9" Component="Music_On" />
<ComponentReference Name="icon_preview" Mode9Path="HTC\icons.mode9" Component="Music_Preview" />
</Page>
then remove this from it...
ExternalScriptPath="HTC\Scripts\sprintmusic.luac"
-----
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)....
NisseDILLIGAF
1st October 2008, 09:32 AM
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)....
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!
m_ihab77
1st October 2008, 02:35 PM
good info, thank you very much
mderm
1st October 2008, 03:48 PM
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.
GriFolle
1st October 2008, 04:24 PM
@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)
NisseDILLIGAF
1st October 2008, 05:43 PM
@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)
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"
pyro9219
1st October 2008, 06:26 PM
I would be really happy with just a bloody additional tab that shows the today agenda.
This is the only think what I miss from manila, to see my appointments for at least 5 days in advance....
Come on, D_MAN666 make me happy, I have all my trust in you :)))
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.
AppStar
2nd October 2008, 04:19 AM
I have to admit I cheated :rolleyes:
I stole the manila files from the T-mobile TF3D... I noticed that they had done their TF3D with 3 icons instead of 2... :D
It would be awesome to be able to edit the mode9 files!
So much customizing could be done :D
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. ;-)
GriFolle
2nd October 2008, 09:53 AM
Oh my God Nisse...!
THANKS
THANKS
THANKS
THANKS
THANKS
THANKS
!!!
My manila now is simply fabulous!!!
PS: Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
GriFolle
2nd October 2008, 09:55 AM
Oh my God Nisse...!
THANKS
THANKS
THANKS
THANKS
THANKS
THANKS
!!!
My manila now is simply fabulous!!!
PS: Thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
fillippe
2nd October 2008, 08:07 PM
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?
NisseDILLIGAF
2nd October 2008, 11:14 PM
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.
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
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?
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:
fillippe
3rd October 2008, 08:33 PM
I'm just being dumb Nisse. I hadn't registered there was a manila.exe file.:confused:
GriFolle
6th October 2008, 05:40 PM
@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?
NisseDILLIGAF
6th October 2008, 09:44 PM
@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?
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 :)
pcarvalho
7th October 2008, 12:08 AM
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...
ai212983
7th October 2008, 08:18 PM
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.
NisseDILLIGAF
8th October 2008, 01:30 PM
@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
Ximoon
8th October 2008, 03:45 PM
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
pcarvalho
8th October 2008, 04:18 PM
cant someone help me decompile mode9 files, edit and recompile?
i've read it all and don't know how :confused:
NisseDILLIGAF
8th October 2008, 05:15 PM
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
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... :(
Ximoon
8th October 2008, 05:21 PM
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... :(
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\Manil a\icon_preview\Comm-manager-hero.png"
Perhaps you should just do a search for the .png ? :D Did you try with its real path ?
D-MAN666
8th October 2008, 05:32 PM
You're right about paths, Ximoon :)
NisseDILLIGAF
8th October 2008, 08:28 PM
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\Manil a\icon_preview\Comm-manager-hero.png"
Perhaps you should just do a search for the .png ? :D Did you try with its real path ?
I got it from the 3-icon menu..
http://forum.xda-developers.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...??? :(
D-MAN666
8th October 2008, 11:55 PM
Some curious finding. The hash used in manila is actually a well-known "djb2" algorythm :)
http://www.cse.yorku.ca/~oz/hash.html
ai212983
9th October 2008, 07:02 AM
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.
D-MAN666
9th October 2008, 07:17 AM
Same question about qtc1 files.O RLY?
no responceyes, this community is voluntary, so everyone has complete rights to ignore anyone, who ignores community basics.
mun_rus
9th October 2008, 07:33 AM
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.
plz, read several pages ago..D-MAN had published all instructions and examples about it
ai212983
9th October 2008, 08:03 AM
O RLY?
yes, this community is voluntary, so everyone has complete rights to ignore anyone, who ignores community basics.
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?
plz, read several pages ago..D-MAN had published all instructions and examples about it
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.
D-MAN666
9th October 2008, 08:11 AM
what basics?the basic thing to "search before start whining"
you're talking about "ManilaReverserPack", right?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.
ai212983
9th October 2008, 08:17 AM
the basic thing to "search before start whining"
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.
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.
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?
D-MAN666
9th October 2008, 08:49 AM
been there, done that, found nothing.U ask'd howto edit QTC.
u have to use something else, as formats are described hereYeah, no one have released any tools (except our Manila Editor) yet
ai212983
9th October 2008, 08:55 AM
U ask'd howto edit QTC.
My first post (#288, the one was ignored) has nothing about qtc:
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.
Yeah, no one have released any tools (except our Manila Editor) yet
Mhm, thanks.
mderm
9th October 2008, 12:43 PM
My first post (#288, the one was ignored) has nothing about qtc:
Mhm, thanks.
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:?
mderm
9th October 2008, 01:22 PM
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?
D-MAN666
9th October 2008, 01:25 PM
It's just a diff number encoding - dont mind it, coz though bytecode is different, it produces the same number after decoding :)
mderm
9th October 2008, 01:48 PM
It's just a diff number encoding - dont mind it, coz though bytecode is different, it produces the same number after decoding :)
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...
SiTweak
10th October 2008, 11:12 PM
I got it from the 3-icon menu..
http://forum.xda-developers.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...??? :(
Have you allready found out which manila to edit for the comm manager hero??
CASJ
11th October 2008, 04:55 PM
write .lua code, that then compiled with "-s" option is binary identical (i'm using HexCmp) to the corresponding .luac (compiled) file
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?
D-MAN666
11th October 2008, 05:07 PM
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?
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
CASJ
11th October 2008, 06:04 PM
Oh, okay. Sorry. (I'll study a little more before posting again)
jefffi
15th October 2008, 03:56 AM
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.
mderm
16th October 2008, 08:34 AM
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...
Ximoon
16th October 2008, 10:00 PM
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 :)
@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?
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...
Ximoon
16th October 2008, 11:37 PM
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 ?
Ximoon
17th October 2008, 01:01 AM
I got it from the 3-icon menu..
http://forum.xda-developers.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...??? :(
Found this :
\windows\htc\Assets\Images\Manila\icon_preview\Com m-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
NisseDILLIGAF
17th October 2008, 09:17 AM
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...!
Ximoon
17th October 2008, 09:43 AM
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 ;)
mderm
21st October 2008, 12:17 PM
edit : OK, I just missed the interesting post about the format... But an editor would still be nice ;)
What post was it?
Ximoon
21st October 2008, 01:20 PM
What post was it?
http://forum.xda-developers.com/showpost.php?p=2484745&postcount=129
mderm
23rd October 2008, 07:56 AM
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?
Ameet
1st November 2008, 08:41 PM
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? :)
mderm
10th November 2008, 12:49 PM
did someone try to put non-compressed stuff?
i mean adding a new tab by linking directly to a .lua and/or a .mode9 that themselves links to png
because we can see between the very first unofficial version of manila and the one in the diamond, the m9 are in plain text and the mode9 are in a kind of semi plain text, and inside regular properties are replaced with few binary bytes, the same for lua, and if you compare the compressed/uncompressed we see it's exactly the same contents
Do you have a link where to get this pre-release from?
mediaserve
15th November 2008, 11:39 PM
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 :)
sibbor
18th November 2008, 09:29 AM
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? :)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...
ibivibiv
19th November 2008, 11:05 PM
Don't know if you guys are even around still, I did a search on Lua decompilers and didn't find much, however I did try the reverser files with a disasm app that yielded this:
partial code listing example here:
<code>
;
; Original file: C:\Documents and Settings\hhannon\Desktop\ManilaReverserPack\luac\p rogramlauncher.mode9.scripts\script0.luac
; File format: Lua 5.1
; Disassembled: Fri Nov 21 14:22:52 2008
;
; Name:
; Defined at line: 0
; #Upvalues: 0
; #Parameters: 0
; Is_vararg: 2
; Max Stack Size: 2
;
; No locals information
; No upvalues
1 [-]: GETGLOBAL R0 K0 ; R0 := require
2 [-]: LOADK R1 K1 ; R1 := "class"
3 [-]: CALL R0 2 1 ; R0(R1)
4 [-]: LOADK R0 K3 ; R0 := 3
5 [-]: SETGLOBAL R0 K2 ; ScrollPhysics_FlickThreshold := R0
6 [-]: LOADK R0 K5 ; R0 := 1.5
7 [-]: SETGLOBAL R0 K4 ; ScrollPhysics_FlickMultiplier := R0
8 [-]: LOADK R0 K7 ; R0 := 50
9 [-]: SETGLOBAL R0 K6 ; ScrollPhysics_DragThreshold := R0
10 [-]: LOADK R0 K9 ; R0 := 90
11 [-]: SETGLOBAL R0 K8 ; ScrollPhysics_DragValue := R0
12 [-]: LOADK R0 K11 ; R0 := 60
13 [-]: SETGLOBAL R0 K10 ; ScrollPhysics_Elasticity := R0
14 [-]: LOADK R0 K11 ; R0 := 60
15 [-]: SETGLOBAL R0 K12 ; ScrollPhysics_MaxElasticity := R0
16 [-]: LOADK R0 K14 ; R0 := 40
17 [-]: SETGLOBAL R0 K13 ; ScrollPhysics_DampenFactor := R0
18 [-]: LOADK R0 K16 ; R0 := 150
19 [-]: SETGLOBAL R0 K15 ; ScrollPhysics_DampenDistance := R0
20 [-]: LOADK R0 K7 ; R0 := 50
21 [-]: SETGLOBAL R0 K17 ; ScrollPhysics_SwipeMomentum := R0
22 [-]: CLOSURE R0 0 ; R0 := closure(Function #0)
23 [-]: SETGLOBAL R0 K18 ; abs := R0
24 [-]: CLOSURE R0 1 ; R0 := closure(Function #1)
25 [-]: SETGLOBAL R0 K19 ; constrain := R0
26 [-]: GETGLOBAL R0 K1 ; R0 := class
27 [-]: CALL R0 1 2 ; R0 := R0()
28 [-]: SETGLOBAL R0 K20 ; ScrollMomentum := R0
29 [-]: GETGLOBAL R0 K20 ; R0 := ScrollMomentum
30 [-]: CLOSURE R1 2 ; R1 := closure(Function #2)
31 [-]: SETTABLE R0 K21 R1 ; R0["__init"] := R1
32 [-]: GETGLOBAL R0 K20 ; R0 := ScrollMomentum
33 [-]: CLOSURE R1 3 ; R1 := closure(Function #3)
34 [-]: SETTABLE R0 K22 R1 ; R0["GetMomentum"] := R1
35 [-]: GETGLOBAL R0 K20 ; R0 := ScrollMomentum
36 [-]: CLOSURE R1 4 ; R1 := closure(Function #4)
37 [-]: SETTABLE R0 K23 R1 ; R0["Reset"] := R1
38 [-]: GETGLOBAL R0 K20 ; R0 := ScrollMomentum
39 [-]: CLOSURE R1 5 ; R1 := closure(Function #5)
40 [-]: SETTABLE R0 K24 R1 ; R0["Update"] := R1
41 [-]: GETGLOBAL R0 K1 ; R0 := class
42 [-]: CALL R0 1 2 ; R0 := R0()
43 [-]: SETGLOBAL R0 K25 ; ScrollPhysics := R0
44 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
45 [-]: CLOSURE R1 6 ; R1 := closure(Function #6)
46 [-]: SETTABLE R0 K26 R1 ; R0["HandleMousePress"] := R1
47 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
48 [-]: CLOSURE R1 7 ; R1 := closure(Function #7)
49 [-]: SETTABLE R0 K27 R1 ; R0["HandleMouseRelease"] := R1
50 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
51 [-]: CLOSURE R1 8 ; R1 := closure(Function #8)
52 [-]: SETTABLE R0 K28 R1 ; R0["HandleMouseMove"] := R1
53 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
54 [-]: CLOSURE R1 9 ; R1 := closure(Function #9)
55 [-]: SETTABLE R0 K29 R1 ; R0["HandleKeyDown"] := R1
56 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
57 [-]: CLOSURE R1 10 ; R1 := closure(Function #10)
58 [-]: SETTABLE R0 K30 R1 ; R0["ResetMomentum"] := R1
59 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
60 [-]: CLOSURE R1 11 ; R1 := closure(Function #11)
61 [-]: SETTABLE R0 K31 R1 ; R0["UpdateMomentum"] := R1
62 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
63 [-]: CLOSURE R1 12 ; R1 := closure(Function #12)
64 [-]: SETTABLE R0 K32 R1 ; R0["HandleUpdate"] := R1
65 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
66 [-]: CLOSURE R1 13 ; R1 := closure(Function #13)
67 [-]: SETTABLE R0 K21 R1 ; R0["__init"] := R1
68 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
69 [-]: CLOSURE R1 14 ; R1 := closure(Function #14)
70 [-]: SETTABLE R0 K33 R1 ; R0["ConnectMouseEvents"] := R1
71 [-]: GETGLOBAL R0 K25 ; R0 := ScrollPhysics
72 [-]: CLOSURE R1 15 ; R1 := closure(Function #15)
73 [-]: SETTABLE R0 K34 R1 ; R0["DisconnectMouseEvents"] := R1
74 [-]: RETURN R0 1 ; return
; Function #0:
;
; Name:
; Defined at line: 37
; #Upvalues: 0
; #Parameters: 1 (R0)
; Is_vararg: 0
; Max Stack Size: 2
;
; No locals information
; No upvalues
1 [-]: LT 0 R0 K0 ; if R0 >= 0 then PC := 5
2 [-]: JMP 5
3 [-]: UNM R1 R0 ; R1 := - R0
4 [-]: RETURN R1 2 ; return R1
5 [-]: RETURN R0 2 ; return R0
6 [-]: RETURN R0 1 ; return
; Function #1:
;
; Name:
; Defined at line: 45
; #Upvalues: 0
; #Parameters: 3 (R0, R1, R2)
; Is_vararg: 0
; Max Stack Size: 4
;
; No locals information
; No upvalues
1 [-]: MOVE R3 R0 ; R3 := R0
2 [-]: LT 0 R0 R1 ; if R0 >= R1 then PC := 5
3 [-]: JMP 5
4 [-]: MOVE R3 R1 ; R3 := R1
5 [-]: LT 0 R2 R0 ; if R2 >= R0 then PC := 8
6 [-]: JMP 8
7 [-]: MOVE R3 R2 ; R3 := R2
8 [-]: RETURN R3 2 ; return R3
9 [-]: RETURN R0 1 ; return
; Function #2:
;
; Name:
; Defined at line: 60
; #Upvalues: 0
; #Parameters: 1 (R0)
; Is_vararg: 0
; Max Stack Size: 3
;
; No locals information
; No upvalues
1 [-]: SELF R1 R0 K0 ; R2 := R0; R1 := R0["Reset"]
2 [-]: CALL R1 2 1 ; R1(R2)
3 [-]: RETURN R0 1 ; return
</code>
It looks more straight forward than what the other tool does. I can at least see the functions easier.
mam65
27th November 2008, 12:58 AM
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 ;)
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://forum.xda-developers.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 ?
http://i71.servimg.com/u/f71/12/91/21/28/touchh12.png
Merci à vous
JAMILU007
1st December 2008, 07:22 AM
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.
http://img392.imageshack.us/img392/8181/touchh123og7.png
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. ....
6Fg8
22nd December 2008, 02:03 AM
not very crowded here ... anyway ...
i found many of the manila files and their corresponding paths/names.
Updated the database here (http://wiki.xda-developers.com/index.php?pagename=Manila_Research)
Fat Boy
24th December 2008, 08:00 PM
http://i429.photobucket.com/albums/qq16/WISELYchoose/rrr.jpg
I have failed at editing this file. does someone have a link with a step by step for editing a manila file.
6Fg8
29th December 2008, 12:28 PM
I decided to write a .mode9 editor. Have a look here:
http://forum.xda-developers.com/showthread.php?t=464984
AsfaltSame
31st December 2008, 08:50 AM
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?
Fat Boy
31st December 2008, 12:57 PM
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?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.
Miasnikov
12th January 2009, 02:33 PM
For D-MAN666
ghafarpour
29th January 2009, 01:37 PM
would you please give a sample source code for a simple tab, or for any third party tabs like calnedar!
cityhunter71
17th February 2009, 06:17 PM
Try to delete
cityhunter71
17th February 2009, 06:23 PM
Date Color why change ?
--------------------------------------------------------------------------------
Hi Guy !
i have make my frist manila CLOCK...
i have modify 1c684cd8_manila for make DATE and OPERATOR in upper right corner.
AND i have insert into "GLESTex", istance value "DATE " a declaration of COLOR.
When manila start all is ok and DATE color is red (default is White)
BUT if i PRESS CLOCK (upper left) for change TIME, the COLOR of DATE change from RED to WHITE !!
IF i press ALARM ICON (for set ALLARM TIME) color remain RED !
Can HELP ME to FIx this little problem ?
Cityhunter71
PS: this 1c684cd8_manila work with all background to all page !
rotastrain
5th May 2009, 12:07 PM
Does anyone know how to attach a action to the upward scrolling?
set (whateva)(l_1_0)...
i decompiled scroll physics but cant make out which instance name or which action to set what i want to do...
Maybe someone can help?
Cheers,
Rotastrain
lombardjini
5th May 2009, 12:42 PM
leuk om eens te probreren thnx
drreaman
21st September 2009, 03:23 PM
Please provide me with info how to restore my TouchFlo 3D on my HTC Touch HD T8282.
It seems I lost all my files and TouchFlo 3D won't start ?
ady_uaic
30th January 2010, 12:12 PM
which one is the photos & videos tab file, to edit it?
meltwater
8th March 2010, 03:30 PM
Please provide me with info how to restore my TouchFlo 3D on my HTC Touch HD T8282.
It seems I lost all my files and TouchFlo 3D won't start ?
I've heard you may be able to restore it if it is cooked in, using TF3D Config, never tried it myself.
Guys, I've been working hard on some manila tutorials, would welcome any help/guidance anyone can give.
[GUIDE][TUT] Manila Development for Beginners (http://forum.xda-developers.com/showthread.php?t=642890)
Z80-Man
17th May 2011, 10:13 AM
Well, after having painfully tried all possible tools to decompile HTC LUAQ, it appears that the only one able to do that is the one Co0kie Monster gave a few years ago :
http://forum.xda-developers.com/showthread.php?t=568281
This one could decompile AND disassemble the eRader LUA script, at last ! :)
So now I'm working on bringing an eReader tab able to access to the standard library management (including sorting options) AND the SQL Lite database management tool. Should be ready in a few minutes, actually. :)
BTW, I'll try to remove the 20 books limits there ; is there any reason why HTC put that here ? (Edit : I could modify the limit, but the EXE seems not to care for it. Too bad...)
The script also looks like it does a huge usage of the G-Sensor and landscape mode is explicit, but the eReader won't rotate... The display just doesn't adapt to landscape orientation, either the tab with the books list, or the reader itself. That's really strange. :confused:
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.