yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] 6Fg8:
only the blue-colored lines (=property values) can be edited in cooked mode. if a line is blue, you should be able to edit, if not, its a bug :mad:

can you post a screenshot?
[Windows Mobile Software Development] pcarvalho:
its a bug then...cause when i change value it becomes as screenshot...

by the way been qvga the TF3D HD with your tool...nice!!!

will take lots of time but now all kinds of layout are possible...VGA QVGA WVGA WQVGA SQUARE...any one of them...just have to edit it (hard part still)...

hope the sleep/off drivers bug can be traced cause it sure runs well...no more dotted lines missing...unreadble text...everything is in our reach :D

nice one on the search...i was gonna request that, and how about search and replace? ;)

by the way the numbers i said before...they are int32 little-end but that you already know :D

keep up the good work :)
[Windows Mobile Software Development] 6Fg8:
ah right, thats when editing a value. Its the edited line that gets garbled, but value is written correctly. You can correct that by selecting "COOKED" again from the detail level, it will refresh all lines. I'll fix that in the next release.

find&replace isnt as easy as it looks ... when you select a line, i know the underlying datatype, which i wouldnt during a generic find&replace, so i would have to ask. Not sure if thats really convincing.

As for the numbers, its more than just Int32. I'm currently implementing some intelligence to get the correct number format out of the values. Meanwhile i had to handle Int32, Real, Boolean. I'm not done yet, so i'm sure theres more i'll stumble about.
[Windows Mobile Software Development] 6Fg8:
What device is that your modifying TF3D for? Will it run on an oldfashioned Axim x50v? Got one lying around here ;)

wilco :D
[Windows Mobile Software Development] pcarvalho:
my polaris...if your Axim x50v has an ATI chip and/or 3D drivers for it it will run...else i dont think so...you'll have to investigate...
[Windows Mobile Software Development] pcarvalho:
nice...thanks

now we have less number to calculate :D
[Windows Mobile Software Development] pcarvalho:
got some time and made some very quick changes for just about 1h and here are the screens ;)

patched touchFLO 3D HD to use 240x320 screens and started the port (just patched manila.exe and no other patching needed)...

and ALL themes compatible cause only layout is changed...

touchFLO 3D (HD version) running on QVGA, very bad view in some screens (font unreadble for example) cause only thing i changed was the render screen to QVGA from WVGA, but shows that its possible to make any change...from here i could change layout, font size, adjust various elements to become more QVGA friendly (viewable)...

Edit: screens bigger ;)
[Windows Mobile Software Development] 6Fg8:
ha, that looks awesome!

BTW the screenshots could be a bit bigger :)
[Windows Mobile Software Development] CraZyLiLbOy:
so your saying that touchflo 3d hd can be ported to qvga devices?
[Windows Mobile Software Development] pcarvalho:
i'm not just saying... i'm showing ;)
[Windows Mobile Software Development] CraZyLiLbOy:
here is my custom tf3d. It's one of the fastest tf3d out there. I did tweak it a little bit. My only problem is that I can't change the wallpaper for my home tab. I tried to change it through going to settings tab then wallpaper but I don't see the camera icon..that means it won't let me see my pictures, etc.
[Windows Mobile Software Development] Grimus:
When trying to open 1c684cd8_manila mode9 file from HTC Touch HD it crashes mode9 editor :( This is the original stock file that ships with the touch hd.

I've attached the mode9 file so you can take a look. This file controls the clock on the tf3d today tab. It allows for flip clock animation etc

Also its equivalent version from the htc touch diamond does open with mode9 editor.
[Windows Mobile Software Development] guap:
starting works on new landscape manila, same target: porting analog clock, get rid of flip, get a digital one ;)

EDIT: done http://xdaforums.com/showthread.php?p=3285264#post3285264

sad to see that someone steal my work without giving any credit :( (see original release date)
[Windows Mobile Software Development] smotrs:
6Fg8, how does m9editor know what the manila name is for a file? Is it contained within the manila file somewhere?
[Windows Mobile Software Development] sztupy:
I think it creates a list of file names it encounters, hashes them, and if their hash equals to one of the avaialable hashes then it consideres it's name as known.
[Windows Mobile Software Development] 6Fg8:
There's a translation table inside the editor. I searched through the various files to find references and calc'ed the hash, if i found a matching file i added it to the table. Some of them are simply guessed :)
[Windows Mobile Software Development] MoonNah:
Tell please, in one of the first versions in the list of files in a directory in the field Manila Name it was specified not only a name, but also a Path. It is possible to return it back, and that in new scripts not clearly as a Path to a file to register. Thanks.
[Windows Mobile Software Development] smotrs:
Ok, I found two files in my Weather TAB CAB that don't have a Manila Name assigned to them. Looking through the 72a1369_manila file at one of the embedded scripts, I see the following,

require("weathericon")

require("weather")

require("weathercitypicker")

require("weathergizmo")​

The first two were correctly recognized and the manila name displayed. The last two were not recognized and have no manila name displayed.

I can probably say, with a fair amount of certainty, that the following manila files have the following manila names assigned to them by looking at the scripts contents,

27a13690_manila - weathergizmo.luac

38081241_manila - weathercitypicker.luac​

they are just showing blank though in m9editor.
[Windows Mobile Software Development] 6Fg8:
Bingo! 100% correct. Added them to the table. Thanks for hunting :)
[Windows Mobile Software Development] sztupy:
Do you have any automated tool that checks for strings in "require" parts? Or is this up to me? :)
[Windows Mobile Software Development] 6Fg8:
:D not yet, but thats a nice idea. Another one for the "planned features" :)

You're opening soo many doors and possibilities with that decompiler, didnt even dream of that a few weeks ago.
[Windows Mobile Software Development] sztupy:
It's easier than that. chunkspy / luadisasm can show you which strings were defined in the file. A simple brute force hashing might be enough after that :D
[Windows Mobile Software Development] D-MAN666:
"required" scripts are always taken from "\windows\HTC\Scripts\%script_name%.luac", so no brute force needed - just a plain old djb2 ;)
[Windows Mobile Software Development] 6Fg8:
Unfortunately, the manila hash not only contains the filename but the original path too, so there's additional guessing needed.

e.g. weathercitypicker is 38081241_manila, but is hashed from \windows\htc\scripts\weathercitypicker.luac. And the new manila (from Rhodium/Topaz?) has scripts in several places which makes it even more difficult. And for images its a completely different story, just a few samples:

5D6338E6 \windows\htc\Assets\Images\CallLog\VGA\icon_incomingCall.qtc

33C91D61 \windows\htc\Assets\Images\Common\down_arrow.qtc

1B55A066 \windows\htc\Assets\Images\Dialogs\VGA\button_highlight.qtc

48D8D7B1 \windows\htc\Assets\Images\Inforwidget\MarketSummary-Purchased-hero.qtc

I'm writing on a brute-force mechanism but postponed that for now, other features became more important :)
[Windows Mobile Software Development] sztupy:
under brute force I meant to get all of the string constants from the file and not care about which belongs to the require, because sometimes it's not "require" the first statement in a block
[Windows Mobile Software Development] D-MAN666:
Ah... sorry, misundertood you. I guess it was "brute force hashing" which mixed me up :)
[Windows Mobile Software Development] 17-apg:
Hi,

I am trying to change the appointments line on the diamond to a white colour from the grey colour. I have your editor and have been told to change the file 1c684..._manila but I am unsure what I need to do. Can you help me with this?
[Windows Mobile Software Development] guap:
whoaaaaaaaaaa I made it!! get rid of fuc*ing flip clock and ported the original sprint clock :D

will relase soon a digital (sprint) only version

discussion here -> http://xdaforums.com/showthread.php?p=3285264#post3285264

@6Fg8

Are you sure about correct reading of same floating value in GLESSprite2d? Something like <Property> Name=UV Value="X=0 y=0,35547 Width=0,3125 Eight=0,70312"? They sounds me very strange... :confused:
[Windows Mobile Software Development] NisseDILLIGAF:
Nice work! :)

Now I have to download and see how you did it ;)
[Windows Mobile Software Development] 6Fg8:
Wow ... curious how it looks & feels, congrats.

The numbers look weird to me too, but i have no reason to doubt. There has been a discussion on that topic here: http://xdaforums.com/showthread.php?t=464984&page=33, and i would trust D-MAN's explanations on that.
[Windows Mobile Software Development] D-MAN666:
Once again, they're normalized values and should generally lie between 0 and 1 (until you want to create tiling).
[Windows Mobile Software Development] sztupy:
Yes, that's pretty standard in the 3D modelling world. You can do a search on UV or UVW mapping for this.
[Windows Mobile Software Development] guap:
@6Fg8, d-man: thanks for clarification, I missed it :o
[Windows Mobile Software Development] D-MAN666:
As always, you're welcome to ask questions about manila internals :)
[Windows Mobile Software Development] bedoig:
I have a question for the group, in particular those who are familiar with the background for all tabs hack.

How/where is the background image (wallpaper) called? I was hoping each tab's m9 file had it's own call to display that image, but after briefly poking around that doesn't appear to be the case. Does anyone know off the top of their head how that image gets placed in each tab?

My goal was to create a different background image for each tab, with each picture being the next sequential piece of a panorama (think G1). Anybody already done this, or can point me in the right direction?
[Windows Mobile Software Development] NisseDILLIGAF:
Cool idea! :)

If u mean mun_rus Background4AllTabs or Sprint background

The image is set in 5c9aa261_manila...

But I think u need to know a bit lua scripting to be able to set a different one in each tab.. :rolleyes:
[Windows Mobile Software Development] D-MAN666:
Yeah, right, you will have to add N config dialogs to pick pictures for each tab, which is quite complex. But you can just hack into each mode9 and add a hardcoded QTC there :)
[Windows Mobile Software Development] bedoig:
Thanks for the info :) I'll see if I can successfully decompile all the scripts in 5c9aa261_manila.

I was really hoping this would be a simple hack, but as I'm finding out, nothing with Manila as as simple as you'd hope :(
[Windows Mobile Software Development] bedoig:
Yeah, that's what I was thinking. I was really hoping it was already set up that way so I could just add another 12 images to /Windows and alter each tab's link.
[Windows Mobile Software Development] NisseDILLIGAF:
True... but I was thinking that if u rearrange the tabs, then the image would be all scrambled :p

But If u know that the pages will be in a certain order and that you wont add/delete Tabs

That would work... :)
[Windows Mobile Software Development] D-MAN666:
Well, if you're ok to set up images manually (omit config dailogs in manila), i think there's a pretty simple mod possible: we just need to set up a component which will listen to tab navigation changes and will load predefined pictures (say "\Windows\background.N.jpg).
[Windows Mobile Software Development] D-MAN666:
Not really, coz we can refer tabs not by number, but by name "home.page", "callog.page" etc. ;)

UPD: Ah, no, vice versa. If refer pictures by tab number, the panorama will not be scrambled.
[Windows Mobile Software Development] sztupy:
but everything gets easier ;)

in the decomp'd manila.lua (forgot it's hash) there is a function that will reload the tabs after they have been rearranged. Maybe there you might change some of these things
[Windows Mobile Software Development] 12aon:
I have a question, I found that a couple of lua scripts in the TP2 manila made luadec crash. One of them is the decompiled 2a3d01cc_manila. But when I want to look into any of these files in the manila editor luadec crashes the files are:

- 20abba60_manila

- 2a3d01cc_manila

- 2e74e665_manila

- 3b3f9830_manila

- 48226b98_manila

- 4ddaea6e_manila

- 71e26909_manila

- 7c44ab5e_manila

Is there something different with these files?
[Windows Mobile Software Development] sztupy:
nope, it just has some memory access violation because of... guess what: missing locals :)
[Windows Mobile Software Development] 12aon:
If anyone here could spare some locals, I lost mine. I doesn't need to be much, a couple a day will keep the doctor away. NOT? OK FREEZE! this is a stick-up give me all the locals you got on you, I have a luadecguess and I'm not afraid to brute force it out of you... never mind it's late...
[Windows Mobile Software Development] smotrs:
I think someone needs to switch to decaf, ehh 12aon? :)
[Windows Mobile Software Development] sztupy:
Started a new project: Manila kitchen
[Windows Mobile Software Development] NisseDILLIGAF:
I started to play around with an idea that was talked about earlier in this thread...

Panorama Background Image

Its not very nice looking yet... :rolleyes:

Maybe someone can help me with some thing I'm having trouble with..?

Is there a limit on how big a QTC1 image can be?

now I have it 512x512... (I'm stretching it)

and when I try to make it bigger(wider) it only shows as white..

I would like to have a qtc image that is 1000 x 512 (or something like that)

I 'linked' the background image to the instance "iconTrayRoot"

and moved the icons(and image) to the back...

But now the menu icons are behind the 'page' ... :(

And as you know ... you can only run an instance once...

So if I call the instance again in front... It wont work..

Anyone have any ideas on how to run an instance more than once?

Ive attached the mode9 and qtc files here, if anyone wants to have a look..

EDIT

Ok I managed to make a panorama qtc image (1024x512)

But When I try to show it in TF3D, It's only white :(

I've attached the panorama qtc
[Windows Mobile Software Development] NisseDILLIGAF:
OK... I manage to get a hi quality panorama image :)

I used 3 images (á 512x512) placing them together to get one Panorama image...

YouTube Video - http://www.youtube.com/watch?v=TB95FcAudCc

But I still have the problem with the Menu icons... :(

I'm guessing there have to be some lua scripting ??

and don't know any lua scripting... :rolleyes:

I've included the files here... :)

images are CFC Compressed

5c9aa261_manila - manila.mode9

67ea4038_manila - Panorama1.qtc

67fc58b9_manila - Panorama2.qtc

680e713a_manila - Panorama3.qtc
[Windows Mobile Software Development] bedoig:
Hehe. I wasn't even going to have time to play with it until this weekend. Looks like you'll already have it finished for me! :)

Hurry up so I can dig through your files and see exactly how you did it!
[Windows Mobile Software Development] smotrs:
NisseDILLIGAF, looks pretty sharp so are. Not sure what you mean by the menu icons though.
[Windows Mobile Software Development] NisseDILLIGAF:
Thanx...

The menu icons... the row of icons behind the slider..(but I guess u got that...)

mode9 is built up in Layers right... so to get the Background to follow the row of menu icons..

I had to but the instance at the back... (at the beginning of the file)

So if u look at the programs Tab, you'll see that the Program buttons is in front of the menu icons...

hope u understand... look at manila.mode9 to see what i've done...
[Windows Mobile Software Development] smotrs:
Gotcha, didn't even notice that. Now that you point it out I see it. :)
[Windows Mobile Software Development] sztupy:
I think modifying the tab bar handler in lua could do the job. You could add a function that will modify the background image's position to fit the tab bars position. I don't know yet how to do it, but I think I saw something while decomping... Will know more after I finished my project and start looking at manila internals... until that maybe D-MAN can help :)
[Windows Mobile Software Development] NisseDILLIGAF:
Yeah... I was thinking the same...

I have never written any lua... and I don't really know how it works...

but I was thinking something like this??

trace("Panorama Background Loaded\n")
require("manila")

panoramaBkg.Position.x = iconTrayRoot.Position.x

or is this to easy :p

like u said .. maybe it has to be a function?
[Windows Mobile Software Development] D-MAN666:
I'll have to look into manila.lua code. Do you have it reversed?
[Windows Mobile Software Development] NisseDILLIGAF:
No... not from 'Manila_1.1.35345.3'... which I am using right now...

but maybe manila.lua from 3.0(diamond2) isn't that different ...?

thanx sztupy :)
[Windows Mobile Software Development] D-MAN666:
Well, the most straightforward solution is a proxy function :)

trace("Panorama Background Loaded\n")
require("manila")

SetSelectorXOld = SetSelectorX;

SetSelectorX = function(loc0)
SetSelectorXOld(loc0);
panoramaBkg.Position.x = iconTrayRoot.Position.x;
end
[Windows Mobile Software Development] NisseDILLIGAF:
Great!!

It's working! :D

Background moving and Tab icons are infront!

Thanx allot!

Attached manila.mode9 with D-MAN's lua script...
[Windows Mobile Software Development] D-MAN666:
You're welcome! Please fell free to ask more. ;)

BTW, watched your video, great mod indeed (the onPress popup, panorama and stuff) :)
[Windows Mobile Software Development] PROBEX:
NisseDILLIGAF Thats a very cool modification nice work.
[Windows Mobile Software Development] NisseDILLIGAF:
Don't worry, I'll ask when I get stuck next time :)

Thanx... yeah, I like the menu that way...

I've attached my manila.mode9 file... if u like it..

(you'll need your AnalogClockIcon Lua file with it)
[Windows Mobile Software Development] D-MAN666:
Well, you don't have to get stuck, maybe implement some new creative ideas. :) For example, did you know, that manila API gives access to battery power & signal strength? ;)
[Windows Mobile Software Development] NisseDILLIGAF:
That's cool... :)

well, we've already seen proof on what can be done with the manila API from your 'Manila-Iphone' :)

Well.. I've been thinkling about one thing.. (that actually been asked in the forum)

I tried to rotate the Tab bar menu so it's on the side...

The grafix is no problem, but the 'touch area' wont move... I'm guessing it's set in manila.lua?

maybe a hint on where? :D
[Windows Mobile Software Development] sztupy:
if anyone is interested here are the log file I used while converting hash->filename.

They also contain the filenames of the locale.xml-s, because sometimes the strings in the XML files are wrong (there are a lot of en-en locales whic arent english)
[Windows Mobile Software Development] showaco:
So these are all for tp2 manila, right? Also, how can I convert the other way, a standard file name to hash(manila name)?
[Windows Mobile Software Development] sztupy:
It's a modified djb2. There are a few programs for doing this job already on this site. I add mine

def ha****(str,prefix = "\\Windows\\HTC\\")
str = prefix+str
str.downcase!
hash = 0x1505;
str.each_byte do |c|
hash += hash * 32;
hash += c
hash = hash & 0xFFFFFFFF;
end
hash = hash & 0x7FFFFFFF;
return "%08x" % [hash]
end
[Windows Mobile Software Development] 6Fg8:
cool ... how did you do it? bruteforce?
[Windows Mobile Software Development] sztupy:
the structure of the locale files were "IDA'd" out from manila.exe

For the others mainly brute force. The scripts are usually fine (only 23 are missing), but there are still 283 image files with unknown names and only 446 with known... I used a pattern of Assets/Images/[names from mode9 files]/[some postfixes]/image.qtc where names are usually like "Weather","Common", etc. and postfixes are from the set {"\\VGA","\\VGA\\detail","","\\detail","\\WeatherStateComponents"}
[Windows Mobile Software Development] guap:
feature request for m9editor if possible:

shortcut keys for import/export of png in qtc1

thanks ;)

@nisse: absolutely brilliant work with panorama! How does it work on landscape?
[Windows Mobile Software Development] NisseDILLIGAF:
Thanx...

I'm not sure how it works in Landscape... I don't have landscape in my TF3D

I'm still working on the idea :)

But I'm going to finish this with the new TF3D 3.0 from xboxmod...

Then the Landscape will work :)
[Windows Mobile Software Development] showaco:
Is it possible to filter the file list to view only one type of file at a time, like only show mode9 files, script files, xml files, or graphic files?

I also noticed on latest version there is no longer a preview of the script files in the bottom window, can that be added back into next version? Its nice to have to find a certain script which we can then use luadec and luadecguess to further work with it. I currently run an old version for this and latest version for other stuff.
[Windows Mobile Software Development] 6Fg8:
sure :)

the script preview should work as before, did you check the "decompile scripts" option in settings?
[Windows Mobile Software Development] showaco:
yep, that was it. :o Sorry, I thought that was to decompile all scripts and save to folder when loading, I should have checked it out a little closer.
[Windows Mobile Software Development] MoonNah:
Prompt as from a script to read and how to write down a register key. Thanks.
[Windows Mobile Software Development] 12aon:
Hehey I'm helping xboxmod on the TP2 manila and there are a lot of mode9 files unnamed. Now when Iopen the lowest line in a mode9 files it says exactly which mode file it is , so is there anyway to integrate this into m9editor? Another request: I miss being able to view the qtc images, can this feature be reimplemented? Still working on the editor? thanks, 12

Would it be possible to start some kind of LUA naming system. Me and Xbox (him mostly) are editing/resizing almost every LUA in the the TP2 manila. It would be great to name these by tab and then by function (way easier to know the ones to edit) . I don't know how to address this to, but everybody that has an idea or an opinion about this is welcome to share., 12
[Windows Mobile Software Development] 6Fg8:
I'm currently on vacation, WLAN is pretty bad here. But yes, still developing m9editor. QTC preview should work as before, didnt change anything. You maay want to point the search path to your graphics if you separated them from the scripts.
[Windows Mobile Software Development] Vlip3:
Just want to change colors

I've used TF3D Config tool downloaded from this site to install themes but there aren't any themes that satisfy everything I want. Really, I'd be happy if I could just change the font colors and background colors of the default theme that came with my Alltel Touch Pro. Is this the tool I want to use to do this? Should I use the Manila Editor 0.2? There are a lot of posts in this thread... I'll read them all so I can get an understanding of how to use the tool if the answer is yes. I'd appreciate an answer so I can avoid wasting my time or trouble if this is not the right tool.

Thanks in advance,

Vlip3
[Windows Mobile Software Development] showaco:
This tool will change the image files and will allow you to edit the mode9 files(which is where most font colors info is stored). Manila Editor 0.2 will only let you change images. NisseDILLIGAF has a zip file for changing all font colors to black, its located in the diamond themes forum. Search for it and then you can see which files are you will need to edit to change font color.
[Windows Mobile Software Development] NisseDILLIGAF:
I thought I share a small app that I made...

Get the manila filename from a manila path

This is an updated version from the one I posted in the 'editing manila' thread...

Hope u like it :)