yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] meltwater:
Setup Instructions

Setup Instructions (roughly):

1. Use the Command Line Kitchen (http://xdaforums.com/showthread.php?t=528548).

2. Recommend 1st copying ALL xxxxxxxx_manila files from your windows dir (keep a copy as backup too), and decompile them all using the kitchen.

3. Rename the Workspace to something else (i.e. Workspace_complete), you can use this now as reference!

4. Start again with the manila files you want to work on, you now have your "working" folder of lauc files etc.

5. Make use of the manilaHASH to convert between filenames and internal path/file references (recommend you keep a list of ones you find, you'll be surprised how useful it can be).

For editing, Programmer's Notepad is excellent, you can save your workspace, highlight the files for lauc and xml and also use the "find in files" search to find stuff in your "Workspace_complete" folder.
[Windows Mobile Software Development] meltwater:
To Do List

Development To Do List:

Unreleased development work

Correct landscape view (remove space at top) - DONE (except displayed items are not refreshed)

Reduced reg key copies (less lag) - DONE

Improve extended char support for updates etc

Move birthday icon in expanded view - DONE

Provide "updating..." feedback when there is no Update Bar (for 1st run etc)

Build in wait state to tab, to catch when external app has completed operations (keep checking for reg key flag)

Character count for the status update page (xx/420).

API Phase 2

Development (from v1.01, released in v1.5):

People Link font colour - DONE

Allow view of full status text, either bigger space, expand on selection or ticker tape

- DONE (all expanded/colaspe view)

Improve autoupdate timer for entering tab - 20% INPROGRESS Leaving this as not a big issue.

Update settings page to include things set in registry (Auto Update time etc) - 100% DONE

Replace naff .Net fileopen dialogue with something usable - 100% DONE (thanks johncmolyneux)

Htc sense look for settings page - 100% DONE

Multi Language Support for exe - 100% DONE

Tie in to Facebook Api - Initial Tests 100% DONE - limited for release

Implement Fb Api Status Update - 100% DONE
[Windows Mobile Software Development] meltwater:
File's Involved

Release v1.0 Uses the following files:

Graphics
4F90441E_manila \windows\htc\Common\Assets\Images\Common\VGA\facebook_divider.qtc
5D4F2200_manila \windows\htc\Assets\Images\Manila\icon_off\Facebook_tray.qtc
05FF1072_manila \windows\htc\Assets\Images\Manila\icon_preview\Facebook_large.qtc
06C09C86_manila \windows\htc\Common\Assets\Images\Common\facebookline.qtc
357374E7_manila \windows\htc\Assets\Images\Manila\icon_preview\Facebook_tray.qtc

Lang
35452D58_manila \windows\htc\people\locales\en-gb\facebook.en-gb.xml
5470CE36_manila \windows\htc\people\locales\en-us\facebook.en-us.xml

Luac
090EF4F3_manila \windows\htc\people\scripts\people\facebookpage.luac

Mode9
51B6F88A_manila	\windows\htc\people\facebook.mode9
59B632C0_manila \windows\HTC\Manila\facebookicon.mode9

Tab Control
26948339_manila

Supporting
manila_xml\Facebook_Pages.xml
FacebookStatusScript.mscr
appFacebook.reg

Attached is my current list of filenames which I've used/worked on/browsed through etc.
[Windows Mobile Software Development] etoy:
subscribed! thanks for starting this thread,now i don't have to write more OT's in your main thread :)
[Windows Mobile Software Development] meltwater:
No problem.

Gives me somewhere to write what I am up to without spamming my own thread too.

1. Currently I'm working on different views of the main page.

It's hard to see how events will be displayed since no-one I know uses them (how do they appear normally? Are they part of the individual status items?) Also, unable to change "Has Multiple Updates" to display the status and updated album message when there is more space, not a major issue. I'll post some screens at some-point.

2. Will then start to work on tying things into an exe which I can then experiment with the facebook api without having to wrestle with manila, plus for now I will put the tab specific settings page in it too (makes little difference visually to a manila sub-page, except I'm not sure how to pull in the translations for multi-lang).

3. Also starting to look at .\Scripts\People\peopleUpdateViewPage.luac 285D32BC_manila which is the more detailed tab when you select someone, but it's not fully decompiled so I've not tried changing it yet. Ideally I can put more info/options within this page when the fb api is functional.

4. Need to finish off the update timer, should be able to look at the time of the last update and update immediately even if you've just entered the tab. Currently it just waits for the update period, which only happens if the tab is open.

5. Need to put another text object on the main page for each fb item, hopefully for use with the fb api.
[Windows Mobile Software Development] etoy:
damn,i can't open that m9editor. if i'll not find other possibilities i'll have to run an xp-mode VM. i only managed to convert the 59B632C0_manila file to xml with mode9converter but it gives me an error when i try to convert back to mode9.

meltwater, please just edit it this way from "icon_off" to "icon_on" and attach me the edited manila file,i'll try to do the rest. thanks!
[Windows Mobile Software Development] meltwater:
Ok done. Well timed checking of xda, there..a few mins difference.

<Movie>
<Property> Name=Platform Value="GLESPlatform"
<Locale>
<Directory> = Value=".\locales\"
<LibraryManager>
<Library>
<Character>Type="ComponentClipCharacter"
<Property> Name=LibraryID Value="6"
<Property> Name=Name Value="Facebook_Off"
<Object>Type="ComponentClip"
<Property> Name=Initial Play State Value="0"
<Group>
<Object>Type="GLESSprite2D"
<Property> Name=Disable Render Value=""
<Property> Name=Instance Name Value="iconButton"
<Property> Name=Position Value="PosX=-16 PosY=8 PosZ=0"
<Property> Name=Texture Path Value="..\Common\Assets\Images\Common\alpha-hitbox.qtc"
<Property> Name=Size Value="Width=96 Height=100"
<Object>Type="GLESSprite2D"
<Property> Name=Instance Name Value="iconButton1"
<Property> Name=Texture Path Value=".\..\Assets\Images\Manila\icon_off\Facebook_tray.qtc"
<Property> Name=Size Value="Width=140 Height=140"
<Character>Type="ComponentClipCharacter"
<Property> Name=LibraryID Value="7"
<Property> Name=Name Value="Facebook_On"
<Object>Type="ComponentClip"
<Property> Name=Initial Play State Value="0"
<Group>
<Object>Type="GLESSprite2D"
<Property> Name=Texture Path Value=".\..\Assets\Images\Manila\icon_on\Facebook_tray.qtc"
<Property> Name=Size Value="Width=140 Height=140"
<Character>Type="ComponentClipCharacter"
<Property> Name=LibraryID Value="8"
<Property> Name=Name Value="Facebook_Preview"
<Object>Type="ComponentClip"
<Property> Name=Initial Play State Value="0"
<Group>
<Object>Type="GLESSprite2D"
<Property> Name=Texture Path Value=".\..\Assets\Images\Manila\icon_preview\Facebook_large.qtc"
<Property> Name=Size Value="Width=300 Height=300"
<Scene>
<Property> Name=Initial Play State Value="0"
<Group>
<Object>Type="Component"
<CharacterReference> LibraryName=facebookicon.mode9 Value="6"

Looks like the right change, although will see what it does on my phone...ok doesn't break it which is good.

Now just need to get my hands on a full version of visual studio...
[Windows Mobile Software Development] etoy:
IT WORKS!

great we found the right reference,which results in:

1F04C842_manila \windows\htc\Assets\Images\Manila\icon_on\Facebook_tray.qtc

--

do you think the 357374E7_manila file is needed? it does not show anywhere..

--

i attached the right 1F04C842_manila file. now you can use it with your corrected 59B632C0_manila to have separated split icon on/icon off.

the "icon on" should be hi-res 16bpp and "icon off" 8bpp but cfc_gui did'em both at 8bpp :confused: not a big deal tho,and easily correctable.

i'm happy for my little contribution,now i have to research that last missing "rearrange tab" icon :)
[Windows Mobile Software Development] meltwater:
Ok, will try it out on my phone too. Donno about the 8bpp and cfc'ing can't remember what my originals were like.

Good luck with the "rearrange tab" I think the key is to find what the reference path/name is, either from the filenames or from the mode9 file whichever that one is.

Oddly, I've found it hard to find the colour settings for the title when in landscape mode, all the colours are in the mode9 file (but not that one it seems - changed all from R0G0B0 but it is still black...):

51B6F88A_manila	\windows\htc\people\facebook.mode9

It might be using the theme colours instead (remember it was a sub-page so black is default), only found them yesterday so will chase that route 1st.

Been thinking about how to do the first page interface (depending on the fb api success of course). I think, ideally we want to drop the link to the People Tab sub-page and drive everything within the main tab page (ideally storing it's state if you leave the tab). It should then allow you to select someone, and the item expand, again you view comments etc, select them again and you get options to comment/like etc. Easy to suggest, but not anywhere near being able to do that within the manila yet, a nice aim though.

One issue I do see ahead is updating the information/storing it all, do we pick up live data when we open views (unlikely to be smooth) or attempt to download everything we need in one burst and store it away (I guess you could then open wifi, download and close wifi again...in theroy). Ideally we could use the same storage as the fbmgr uses, but I doubt that is accessible so may need duplicated info.
[Windows Mobile Software Development] etoy:
there are no direct references,or at least i did not find'em yet. unfortunately the other tabs' manila icon files don't have a group,they're "unknown" on cfc_gui. it was easier with slider and tab icons as they were in manila names.txt list. i found some interesting file this nite but it was late so i left some work for this evening :)

on my phone, in landscape mode, i don't have the facebook tab title at all :confused: not even the black one you talk about..

that becomes a tad difficult to understand to me,sorry :) hope some skilled user will help you more with that. very curious to see what's possible to achieve with the facebook api tho.
[Windows Mobile Software Development] meltwater:
Yep there are lots of interesting goodies within the files.

Ah, my background is black so I assumed it was just black too. Ok, will rethink that then. Maybe just a case of setting it visible...at the right point..at the right time. No logical reason why it's on the people tab but not this one, same code. Not too bothered about it yet.

I've found the editing of the gui the hardest so far, mainly because you can't see until you try but also if it doesn't like it, it gives up and moves on (so you can't even see where it was wrong). Still what started out as a little experiment on my part has already opened up a lot of what can be done. The Custom Manila Interface Tab is still a long term goal.

MS don't make it very easy to develop on windows mobile, they still don't have support for it in Visual Studio 2010 Express. I think I'll go for a trail version to get me started and then switch to non-MS solution once I'm happier. It's all new to me but keen to pick this up too.
[Windows Mobile Software Development] mike2nl:
Hi meltwater and etoy,

it is a help when i testing something too, because i was working also for that issue and i have found the same thing as you two. Strange, three people with the same thoughts. Not easy to find....

Ask me and will help. BTW, this is the dutch language file. I working on it, but a lot of translation:

6CD727C8_manila \windows\htc\people\locales\nl-nl\facebook.nl-nl.xml

I think you was to much busy with co0kies new mod. But the idea is very good. Possible i can help out too
[Windows Mobile Software Development] meltwater:
You can get most of it from:

\windows\htc\people\locales\nl-nl\peopleupdate.nl-nl.xml

35DC316_manila

Probably a little late to point that out...

All help is welcome. There should be a lot more as I implement more, but fixing the little bugs is very helpful.

It will get difficult to manage changes as we all get deeper into it, but at least the more we change the more files and area's of functionality there is to work on, so hopefully it will be possible.
[Windows Mobile Software Development] mike2nl:
Have you can say it 5 minuts earlier? Thanks for the info but that was also my thought to take some things that are allways done :).

10 Ask me

20 me is waiting for info (source or whatever)

30 me send's response

40 goto 10
[Windows Mobile Software Development] meltwater:
10 Donno yet! What can you do / what do you want to do?

20 the source "is" the manila files (although I've started putting comments in my latest files - so will have source versions for later builds), you need to install the command line kitchen and decompile it (see the rough tips on this threads post #2).

30 go for it - ask away

40 Compile, reset manila. Bang head on table. Goto 10

At the moment, I've started working on the supporting exe which will handle the facebook api and settings etc, but I'm a beginner with windows mobile development so it'll take some time before I am up to speed with that and have something worth sharing (oh plus day job...).

OK, looks like we have another fix!
[Windows Mobile Software Development] Captain_Throwback:
Ok, so I tried this . . .

I used my CFC graphics files, and replaced them in the All-in-One CAB. I replaced the updated file from the first page that had the updated mode9(?) code, and I copied the manila file and pasted it as "6BEE887F_manila" (I retained the original file some said 'wasn't needed' anyway). I now have the icon in the Customize tabs screen, but I'm missing the icon when the tab is selected. Is it because I didn't delete the "357374E7_manila" file? Is it just me that has this issue? The icon is there when the tab is not selected, and the large version is fine. That's the only one that's missing now (and previously, it was fine :confused:).
[Windows Mobile Software Development] qitt:
Don't delete 357374E7_manila, it's slider icon. Just create 6BEE887F_manila from scratch or using existing files from rearrange tab.
[Windows Mobile Software Development] Captain_Throwback:
So I can't copy "357374E7_manila" and paste as "6BEE887F_manila" (that's what I did - I didn't delete any files)? That doesn't explain why my slider icon is missing when the tab is selected :confused:?
[Windows Mobile Software Development] colossus_r:
Greek Language

Meltwater

this is the greek language translation

keep up the good work
[Windows Mobile Software Development] mkucuksari:
En-Us Lang File Confirmation

Hi Meltwater,

I can happy confirm that your last Language file "

5470CE36_manila_en-us_v1.5DraftD.txt

" worked without any problem.:D

It has been FIXED :)

Regards
[Windows Mobile Software Development] meltwater:
Many thanks, will test when I get chance.

Perfect, it works fine in the app (I've not tested it with the Sense side though).

Excellent, will see I can work out something regarding the Authorisation, just annoying I've no way to test until later.

I think everything else is sorted though, so I'll re-release for the other fixes tomorrow even if I've not sorted Authorisation (it does work in some cases - obviously not good enough though!). Might need some expert guidance with it, me-thinks.
[Windows Mobile Software Development] mkucuksari:
Hi,

Will be waiting other fixes to test :) I wish I can help you :(

Regards
[Windows Mobile Software Development] madindehead:
@ meltwater

After adding the new language files to /Windows, do we need to reboot the device, or just restart Sense? Or do we need to run Moonah's program again to make Sense find the tab again?
[Windows Mobile Software Development] mkucuksari:
Hi,

For me, only restarting Sense was enough :)
[Windows Mobile Software Development] mike2nl:
Hi meltwater,

some more ltiile issues. I had edited my language file: 6CD727C8_manila

I have used this file as base:

5470CE36_manila_en-us_v1.5DraftD.txt

But after i have transfered these file and the both new and one soft reset:

- Version 1.5 so as in the download...

- 6CD727C8_manila (please see screenshot the ISSUE)

- 5470CE36_manila

- 35452D58_manila

Now i have some values in the menu (bottom right in tab) like:

IDS_FACEBOOK_CAPTION_STATUS_CHANGED (shure translated)

IDS_FACEBOOK_OPENAPP (shure translated)

IDS_FACEBOOK_OPENWEB (shure translated)

IDS_DISPLAY_TOGGLE (shure translated)

Instellingen (settings in dutch)

Whats going on here. Have i missed something again?

As attachment the dutch language file and a screenshot when i have selected the dutch language file.

EDIT 1:

i have found one thing and search further. The XML editor gives no error on check this ">".

EDIT 2:

language (.txt) file updated
[Windows Mobile Software Development] meltwater:
Yep that should be fine. Just wish Sense wasn't so picky about things, makes life very hard! Shall have to watch for that with the translated files.

Still I'm glad I'm down to the one authorisation issue for now, and I suspected it could be a problem.
[Windows Mobile Software Development] meltwater:
Spoke too soon...

Two issues, the Sense language is set by your device, the facebook settings etc is set by the settings (1st run should default to the device) but then you need to select it from then on (unless you delete the reg entry).

1. Hopefully selecting nl-nl in the settings page will sort out the facebookutil.exe values.

2. As for sense, try resetting sense (since your file looks ok to me) or it could be being picky and ignoring the file. If this does become an issue it might be easier to split the file but I was hoping one file would make life easier in the long run (share the translations between programs, 1 file to update, no issues if functionality is moved between tab and app etc).

Note, your file needs to be called 6CD727C8_manila and in \windows\ and the ApiLang.xml file in the same dir as the FacebookUtil.exe - you can check it is read correctly by changing the description from "Lang" and seeing it is updated in the combo box (although I think I've put defaults in anyway).

UPDATE: OK, I can get the FacebookUtil.exe to popup a message when the language file is not parsed by the app (still not much I can do about sense though).
[Windows Mobile Software Development] colossus_r:
OK

When ready send me the files for the new version to check the spelling and that everything fits nice.

colossus
[Windows Mobile Software Development] meltwater:
Authorisation Issues:

Not found anything definite, but so far my tests show:

Desktop - Normal - give you blue header at top and nothing else

Desktop - Popup - appears to work when I tested it anyway

Mobile - WAP - also gives you the blue header

Mobile - touch - gives a blank page (I'd already found this had stopped working before, hence why I added the other options)

The above test is with the app already authorised (not sure how to totally remove permissions I think that can only be done within the facebook account), and logged in (& logged out) to facebook. Will update when I've tried other things. I'm not bother about making all the methods work as long as one does (popup is ok, just need to make sure the whole page fits on the webcontrol).

If the popup works then I will make this the default (unsure if I should remove the options in advanced since this is the 2nd time it's had to change after it WAS working fine). Can you guys see if popup is the working solution??
[Windows Mobile Software Development] mike2nl:
Hi meltwater, this is an very good idea to see how it works. Possible with an item in the registry. Default off and for advanced user switch it on. Or via advanced settings in language selection.
[Windows Mobile Software Development] meltwater:
Will have a think about what is best solution.

1. Could just report via a message that the language file was invalid or does not exist and then default to English. The user can then select a valid file to remove the nag.

2. Alternatively check the language file on selection, if it exists and if able to get a translation from it. If invalid, reject selection. Leaning towards this one I think.

3. Only list language files which are present in the system within the combo box (want to avoid too much delay on start up though, so was avoiding this).
[Windows Mobile Software Development] Agent Zach:
Tried every combination possible for the Auth, all failed attempts.

Got my hopes up once, as the page starts "Loading." Atleast a little box above the lower Scroll Bar says it is... but nothing ever happens. Tried all the different Auth Displays [WAP, Touch, etc.] on 3G, Edge, and WiFi...

[Edited for Security & API reasoning]

[Though it seems the FacebookUtil.exe BrowserObject might be the issue itself, not Facebook. As you can Tap & Hold, Select Favorites, and pick one of your Favorite sites.. None of them will load in the Auth Browser.. atleast for me.]
[Windows Mobile Software Development] meltwater:
The behaviour is different if you've authorised previously unfortunately hence why I've had a hard time testing it fully.

By the way, I've tested the url directly on PC and it links fine so it probably something specific about the WebBrowser control not doing things right or facebook handling things from a mobile browser differently.
[Windows Mobile Software Development] Agent Zach:
I'll just do the "obvious" thing, and replace the Util & dlls entirely, maybe something went ape-sh*t in the move from PC -to- Device.

[And you should edit my "quote" in your above post.. to rid of the error on my part.]
[Windows Mobile Software Development] Captain_Throwback:
nice work!

GREAT work so far, meltwater. I really like the ability to see entire status updates on the tab.

A couple of things: I used Draft D of the en-us Lang file, and prior to installing the Tab, I 'translated' it. However, on my first visit to the tab, the Settings appeared to be using the en-gb translation, rather than my en-us. I checked in the Settings, and it was set to en-us. After I reselected this, exited the Settings, and re-entered them, only then was it using my translated file. Not sure why that is.

Also, after changing to "Desktop" to try to authorize (I was unsuccessful previously), I noticed that an IE window opens, and the Window title is "Authorise Access". Is the URL for authorization localized, or does it have to be specific for your Tab? Could that be one of the reasons that the authorization page isn't loading for some people, because the page isn't localized?

Hope my feedback helps. Can't wait to see future versions! :D
[Windows Mobile Software Development] meltwater:
Gonna look at this code again, think I'll validate any selection after it is made. It should have picked up the locale from the device on the 1st run, so will see if I can spot it.

No it's just a text title, but I had forgotten to include the lang api translation for that, noticed that today (& fixed it). Will keep playing, the documentation I've found regarding the WebBrowser control is very confusing, the urls are correct (work fine else-where and when it feels like it).

Remember a while back when I had problems with the authorisation (& didn't have backup) turned out the touch version of the authorisation just stopped being support/working without warning.

Not sure if this is significant but can't find much info to rule it out (info from the HTC Fbtab application stats):
[Windows Mobile Software Development] meltwater:
Well tried to put my PC's processor inside my phone, but sharp bits ended up sticking out the sides...:D
[Windows Mobile Software Development] mkucuksari:
Hi meltwater,

I have selected "Desktop-Popup" method and it works me without any problem. And as you have also mentioned, after selecting the method at the first authorisation, I can not change it any more :)