yashsingh1/xdaforums huggingface dataset:
[Windows Mobile] qball1616:
.NET Framework Error

ok so yesterday my kitchen was working flawlessly and today I tried to build a ROM and i am getting a .NET Framework error saying the StartIndex cannot be less than zero Parameter name: StartIndex

here is the exception Text:

See the end of this message for details on invoking

just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************

System.ArgumentOutOfRangeException: StartIndex cannot be less than zero.

Parameter name: startIndex

at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)

at osKitchen.CookLibs.cook_parts.checkForRightMui(String dirName, String LOCALE)

at osKitchen.CookDevices.dev_prototype.CheckMui(String localeID)

at osKitchen.CookLibs.Cooker.Cook(String localeID)

at osKitchen.frmKitchen.CookLocalizedRom(dev_prototype Device, String localeID)

at osKitchen.frmKitchen.CookTheRom()

at osKitchen.frmKitchen.PrepareForCooking()

at osKitchen.frmKitchen.StartCooking_Click(Object sender, EventArgs e)

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)

at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)

at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

at System.Windows.Forms.Control.WndProc(Message& m)

at System.Windows.Forms.ScrollableControl.WndProc(Message& m)

at System.Windows.Forms.ToolStrip.WndProc(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)

at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

anyone know what would be causing this?

it happens after platformrebuilder has run and gets to the point where it is updating files with add2* (which I have none of)
[Windows Mobile] airxtreme:
it looks like you have a .MUI file that doesn't have the right LCID in the name, the file should be FILENAME.EXT.LCID.MUI while instead you have something like ABC.mui
[Windows Mobile] airxtreme:
What ROM were you importing?
[Windows Mobile] af974:
I just check my Kitchen and by default it doesnt recmod nor audiomanager or audiobooster.......haha lol, i guess i always recomded Audiomanager for nothing :D
[Windows Mobile] KingTutt_junior:
You are right, there is no way to add a new category or delete any existing one (what a pity)!

But that is not the real problem. You can add new category in WM Calendar (e.g. Chefmeeting) and this new one will be display in HTC-Calendar correctly...

But now you recognize, that you have stored a wrong start time for your next meeting with your chef :D

You open HTC-Calendar, correct the start-time and safe the event again. Now your category is gone, because HTC-Calendar does not leave unknown categories as they are, it sets them to "no category" :mad: And if you sync your HD2 with PC after that the category is gone on PC, too.

To fix this problem, I tried to find out, where the HTC-Calendar stores the default categories in order to add some or at least to rename the existing. As I did not find anything in WM registry I tried to get the whole HTC-Calendar out of a ROM to do a deeper analysis. For now without success :(

There are many postings here in the forum about this category problem but for now I found no one who could help me fixing that problem for thousands of HTC users .... (Perhaps you can? PM?)
[Windows Mobile] af974:
Categories are stored in HTCAppointment.exe.0409.mui, you need Restorator to edit it.

I gave a try to add a new category but unfortunately it doesnt show in HTC Calendar but im pretty sure that modding the "None" into " Test" should work.
[Windows Mobile] OndraSter:
Lads, concurrentmgr was needed to recmod long time ago, all I recmod with latest sources from rhodium, leo or oboe roms is just ntfconfig.dll in notification enhancement, nothing more and everything works and rom boots fine...
[Windows Mobile] af974:
ohh..nice news , thanks Ondra.
[Windows Mobile] kurniawan77:
hmmm... thanks!...
[Windows Mobile] jcterry:
So I just unchecked all of the EXT packages and I didn't get any errors. I left the SYS and OEM packages alone. Do I run the risk of bricking my phone if I try and flash it?

I realize that there might be some apps that might not work properly, but I am just curious to see what the ROM is like with all of the EXT packages gone.

Also...WHERE CAN I GET JUST A PLAIN OS AND SENSE 2.5???!!!! I have searched for about 4 hours and all of the links seem to be dead ends, the files no longer exist. I'm not going crazy am I? I am particularly looking for WM 6.5 (Build 21887) and Sense 2.5, but I will settle for something close just to get the experience of cooking my own ROM.
[Windows Mobile] af974:
You dont risk to brick but your phone will doesnt boot up anyway.

Dump a stock rom from here , the Rhodium 2.07 has WM 21887 and Manila 2.5 inside. http://shipped-roms.com/shipped/Rhodium/
[Windows Mobile] RiwisICT:
hi,

i'm trying to build a custom rom for my htc touch2, but if i add an app to the "ext packages", the app doesnt appear in the startmenu when i flash my rom on my htc.

if i search for it in the "my device/programfiles/" folder and if i click it there, it works perfectly...

does anybody know how to solve this?

thanks in advance:)
[Windows Mobile] af974:
You need to set the App.dat in your app folder.

This is an example:

Directory("[COLOR="Red"]\Windows\Start Menu\Programs\Tools[/COLOR]"):-File("Adobe Reader LE.lnk","\Windows\Adobe Reader LE.lnk")

I have Adobe Reader in StartMenu\Programs\Tools

Remember that if you are cooking for a differente language then WWE , the directories after WIndows are different.
[Windows Mobile] KingTutt_junior:
Modding HTC-Categories

Thanks for pointing that out. Adding additional categories will not work, because the strings in this file are set up as pairs (one hash as reference and one value). If you add an additional category you would have to change the code, too. But unfortunately modding and existing category in HTCAppointment.exe.0409.mui from my phone using Restorator didn't work either. I changed the German "Keine" into "Test" but as soon as just one letter is changed the complete calendar changes its language back to standard English. Either there is a kind of signature/checksum which is checked each time the HTC-calendar starts or something else is going on which I don't understand... :(

Has anyone some further hints?
[Windows Mobile] calvinfoo:
[WM Kitchen] OsKitchen Zero v1.31RC1 - The easiest visual kitchen

Excuse me i know that oskitchen has to load an official rom xperiax1 in my case, then how do i import a htc sense into a new custom rom to cook in like other chefs do? Do i import a htc mobile stock rom under (import a new window build)? and which version do i use? hd2 or others? i would appreciate if some1 give me a link on ifile or 4shared instead of rapidshare or hotfile thks.

(learning to cook)

Any method would also be appreciated.
[Windows Mobile] airxtreme:
I don't think anything significant has changed in the importing process of the two versions except initflashfiles.dat splitting that could cause trouble if you update packages without putting the old app.dat in the folder (if the package doesn't already have one). Please try comparing the two imported folders with winmerge to see if there is any different other than app.dat/initflashfiles.dat files.

As far as I know the kitchen has no problems with the HTC HD. Does the stock ROM rebuilds and boots correctly?

Sorry I still didn't fix the issue I'll make sure it's fixed before final version.

Any news?

You should disable all EXT packages and keep readding them in groups until you find the one that causes the ROM to stop booting.

RC1 allows subsplash flashing but you need to import your phone ROM in another kitchen folder to get the new "NBH Structure" folder from the profile folder.

Other than putting the cache for almost everything there is not much I can do until I can get rid of platformrebuilder. All I can suggest is to turn off antivirus/antispyware/antiwhatever while cooking with the kitchen and using another drive as temporary folder.

Platformrebuilder merges all the DSM files without apparently options to turn it off.

Where can I find that ATT rom?

I added this in RC1

Thanks for the confirmation, added

I'm still trying all the pngout flags but I still haven't found one that fixes the themes.

I don't know, you probably should ask on the CHT/CHTeditor thread.

With this.

Updating your sense issue to a recent one should fix the wm6.5.5 compatibility
[Windows Mobile] rickou26:
Hi,

@airxtreme,

Can you add option to launch an application after IMGFS is created :D

Thank you.
[Windows Mobile] airxtreme:
The kitchen wants a single output file so I can't do that because it would have to output two. Since the latest version can create os.nb files in much less time than previous versions just unpack the nb with nbimagetool and run lgflashmuncher on it.
[Windows Mobile] rickou26:
Thank you, your work is already a very good success, this latest version seems to match most needs (including mine).

Another big thank you for this remarkable work.
[Windows Mobile] 9600xt:
it's normal that after the generation process i have an .nb file instead of an .nbh one?? i have done a dump from a wm 6.0 shipped rom for htc trinity, and all the dump and rebuild processes gone fine, whithout any error, so....
[Windows Mobile] afoteki:
RUS ROM problem

When I'm trying to import an official RUS ROM it gives me this message.

Any ideas?
[Windows Mobile] ziggy471:
airxtreme,

There is an un-handled exception that I found with beta10, probably earlier ones, but I hadn't tried that section yet, that is still in RC1. When you try to import multiple OEM packages from a directory, it throws an exception. In beta10, since you didn't obfuscate it, I was able to fix it in ConvertButton_Click in UniversalPackageConvertorForm, I'd be more than happy to give you what I got for that.

As for pngout and themes, Juggs has done a lot of work with that, and has a list of items that CANNOT be compressed, same goes for UPX.

Z
[Windows Mobile] Quetzecotyl:
As this kitchen is based on platformrebuilder, are .dsm files even necessary for roms to be cooked properly?
[Windows Mobile] zard:
I'm not familiar with winmerge but I'll check it out. You think that with the v1.30v3 and v1.31beta10, there are differences in the folders. Probably I'll do the test with v1.31RC1 rather than beta10.

BTW, is the kitchen capable of importing a cooked rom and if not, is there some tools or instructions that you can point me to?

Thanks for the releasing RC1.
[Windows Mobile] airxtreme:
wince.nls can be in both places but officially it is always in the XIP. RC1 can detect the file in both places and won't complain if you put it in the imgfs with an OEM/EXT package.

The kitchen rebuilds exactly what input file it has been given so if it was a NBH the output should be a NBH. Are you sure you didn't accidentally use a .NB file? The NBH informations are saved in the device folder in the same exact moment the nbh is unpacked so I doubt this could be a bug.

Have you installed the XMLLite XP update library from first post?

I fixed it, wait for RC2.

Yes I read the PM but until I have the time to see what breaks UPX and PNG compression in detail I can't answer about the exclusion list. UPX has a cache now so having a parameters option is useless because the compression is never done again after the first time; what is needed is an option to set the icon compression options for each file but it requires a lot of work because of the UI required for the filelist.

Yes they are. Platformrebuilder will go down the drain and the DSM files will be used for file attributes and other stuff.

The kitchen can import cooked ROMs that have the dsm files intact (BuildOS). If the ROM has been cooked by platformrebuilder you can throw it away because even if you sort things up you won't be able to cook the same files again without having troubles.
[Windows Mobile] kurniawan77:
Is there a link for this...?
[Windows Mobile] crane23:
wait for RC2

wait for RC2!!!!!
[Windows Mobile] afoteki:
I have SP3, so I think I already have this update.

BTW Even with that "first post" update library installed, it keeps me giving same message.

BTW2 It loads original WWE ROM normally.
[Windows Mobile] KingTutt_junior:
Does that mean you can import cooked ROMs which are previously cooked with OsKitchen? In other words do cooked ROMs that have been build with OsKichen the dsm files intact? (Sorry for the maybe stupid questions, I'm trying to understand the deeper process of kitchens and if it is a bidirectional way).

Kind regards

KingTutt_junior
[Windows Mobile] bobsbbq:
Can anyone comment on whether the Manila CFC Compression is working without issue? And can this feature be used now or do we still need to do it manually?

Also when done in the kitchen does it change the files in the Packages or does it apply to the dump folder only?

Some times it's hard to keep up with all the new features and progress. I know the PNG Compression is still being sorted out.
[Windows Mobile] jjblaster3:
platformrebuilder does not leave the dsm files intact (it merges them together into one or something like that) meaning the normal tools used to dump a rom wont work (i read from a post by ondraster that using a hexeditor can make this possible but then it was also mentioned tht cooking it again wont work)

so i guess we have to patiently wait until platformrebuilder gets replaced (donno when that'll be, but hope its soon) by a better alternative :)

havent tested in RC1, but in beta 10 cfc compression was working flawlessly...

as for the compression, recmod, and pretty much anything done during the build process it is done in the dump/temp folder only.. (the cache is used to store the modified files so that the process is not needed to be repeated)
[Windows Mobile] airxtreme:
Are you sure the ROM EXE is not corrupted? Try extracting it with 7zip and then if it doesn't show any error try importing the NBH directly to see what happens. If it's not an EXE updater try unpacking the ROM with nbimagetool to see if it gives any error.
[Windows Mobile] af974:
.Png compression doesnt work in RC1 too,scroll bar is not as the normal and unable to run Camera OOM error.
[Windows Mobile] {SBR}_L3GION:
cfc is working flawlessly for me.
[Windows Mobile] afoteki:
No problem :) osKitchen is showing same messages when trying to import .exe and .nbh.

Here's screenshot of nbImageTool. As you see - ROM is not corrupted.
[Windows Mobile] bobsbbq:
I can't select a Splash.nb from the advanced settings? The boxes are greyed out?

I edited the nbhxml file to change the splash.nb value to 1 and I have tried putting the custom splash.nb in several places but it won't work.

Please can someone help
[Windows Mobile] jjblaster3:
did u import a stock rom first? I recall that is necessary to adjust everything to the changes made in the release(splash and subsplash addition, no need of nbhxml editing)
[Windows Mobile] af974:
Import again the stock RUU or copy the attached files in your device profile.
[Windows Mobile] bobsbbq:
Ok I dumped a stock ROM and copied the Splash.nb Structure .xml file over to the RC1 kitchen and now it works
[Windows Mobile] 3|Saint|5:
I'm having a problem with trying to build a ROM with this kitchen. I can build a ROM that boots when I don't include manila. But as soon as I include manila and its dependencies, I can't get it past the touch pro screen. It will boot fine if I build with EVK using the same packages. I was wondering, what could cause it to boot with EVK but not with osKitchen? Any help will be appreciated.
[Windows Mobile] Quetzecotyl:
Thank you for the reply airextreme.

Correct me if I am wrong, but my understanding of .dsm files is that they describe the modules/files/dependencies of a package with the intention that packages could be updated without having to re-flash a device. Apparently, this was never fully implemented by either Microsoft or Windows Mobile OEMs, which leads to my question.

In a customized OEM package, what contents to be included in the .dsm beyond the files in the package?

Specifically, I am wondering about the inclusion of dependencies, shadows, certificates, and the dsm-named.rgu in the module/file list. As custom ROMs are usually a hodgepodge of various device packages, this can be rather confusing :o.
[Windows Mobile] airxtreme:
Did you set the manila packages to be the last to be cooked in the rom?
[Windows Mobile] KingTutt_junior:
And what is about OsKitchen? Can cooked ROMs here be imported again? If so, you could conclude from a build ROM back to its Kitchen.... If you can import a build ROM than it was build using OsKitchen and if not, another Kitchen was used.
[Windows Mobile] OndraSter:
There is one major problem. Even if you would be able to import it, you still wouldn't be able to cook it, because all modules with current platformrebuilder loose their reloc info. It is needed for ImageUpdate too.
[Windows Mobile] airxtreme:
The kitchen managed those files automatically without need to handle all the mess they contain. Now I only added the shadow order management (that is package based instead of the Guid based hell) but soon there will be file management to tell the kitchen the attributes to apply to the files on the phone (the original files will all have the attributes removed then) and certificate replacement (for imageupdate).
[Windows Mobile] airxtreme:
Some ROMs built with buildos, osbuilder or some command line kitchens can be imported but only a very few amount and most of those end up with broken packages.
[Windows Mobile] bobsbbq:
+1 Anyone can get a link to the information from juggs about which can be UPXed and ca'nt?
[Windows Mobile] RoryB:
Thank you for the updates and the added features.

Tryremove is a very helpful feature for old phones like the Wizard.

I get the warning about the WINCENLS not selected in SYS, but the kitchen runs fine with it in OEM packages.

Thank you again
[Windows Mobile] LikvidatorMax:
How after building ROM I can see count of free space in slot 0?

airxtreme

In future, can you realise: separate file with list of dll names to RecMod?

For example:
[Windows Mobile] RoryB:
Some posts about UPX

http://xdaforums.com/showthread.php?t=481880

http://ip208-100-42-21.static.xda-developers.com/showthread.php?t=397792

http://xdaforums.com/showthread.php?t=498243

http://xdaforums.com/showthread.php?t=265175
[Windows Mobile] kurniawan77:
thanks roryb...
[Windows Mobile] bobsbbq:
Thanks for the list there RoryB
[Windows Mobile] 3|Saint|5:
I tried putting the manila packages last and it boots now. Is there a reason why it works when they are cooked last?
[Windows Mobile] bobsbbq:
I don't really understand the new ordering system the kitchen is using. I have my packages in a order Example Packages directory 04 but if I go and add some packages in later to a Folder say o4 it will run all the original files in that folder then run some other folders like 05, 08, etc, then go back to run a couple of packages I added to the previous folder 04.

It's not causing a problem for now.
[Windows Mobile] cac2us:
Using osKitchen Zero v1.31RC2,

Settings/Logging/Log Detail Settings/Show informations about the tools being run and their output.(Check BoX)..

Also I found that the unrared ppck files works for my htc6800...WOW..

Enjoy..
[Windows Mobile] RiwisICT:
@ af974

thanks for the info, but i found another way to fix it:)
[Windows Mobile] airxtreme:
The packages are first sorted in alphabetic order and then are moved to satisfy the priority list.
[Windows Mobile] patensas:
Chainfire's Turbo 3D

Hi all,

I`m facing a problem when i cook in Chainfire's Turbo 3D.

At boot it will say it's not signed or missing components.

After updating to latest v1.31RC2

Any previous kitchen works fine with the package.

Does anyone have a clue what to do?
[Windows Mobile] cac2us:
HTC Titan Nuekernel

Hey airxtreme,

Thanks again for this great kitchen.

I have been using v1.31RC2 for my HTC Titan cooking with great results.

I neet to know how to setup a Profile for the Nuekernel mode.

I was able to extract most of the files from the PPCK folders, but I am having trouble setting up the proper folder structure in the:

Sources\Devices\HTC Titan\Profiles folder.

I can see all the parts needed, but don't kmow where to find them.

Can you or any one else with the knowledge and the files, please post them here.

Thanks...
[Windows Mobile] airxtreme:
Can you please attach the package? I need to see what's inside before I can tell you the folders even though it's probably all OEMXIPKernel content.
[Windows Mobile] airxtreme:
Did you enable implantxip method and also did you set the package priority to have it be the last one?
[Windows Mobile] airxtreme:
Does anybody care of having comments and spacing in the final initflashfiles.dat file? I added localization variables support and now can have the file saved with comments or without (saving about 70% of the space used by the file, 70kb saved on the 100kb initflashfiles of a Leo ROM, probably even a bit more since the escape codes will be removed as well). I don't want to add an option for this so it's either one choice or the other.
[Windows Mobile] birkoffsjunk:
+1 for without comments
[Windows Mobile] mwalt2:
Would someone be able to tell me if I need to re-import a shipped ROM for my device again when moving from 1.31beta10 to 1.31RC2? I am unclear after reading the change logs. Thanks :).
[Windows Mobile] airxtreme:
Only if you use splash screens otherwise they won't be cooked. You can import the rom in a new kitchen and put the new NBH Structure folder in your old one.
[Windows Mobile] patensas:
yes i can attach the package and no didn't set implantxip method. The package ends up last in the build process. Attached it the way it ends prior to IMGS creation.
[Windows Mobile] RoryB:
If you mean the initflashfiles.dat in the dump folder, I would say make it as lean as possible. The one in the OEM folder would be nice to have for reference, but I am not dead set on it either. Most of the comments tend to be describing the section which you can tell by reading the line that it is for start menu or SMS, etc. And we can always use the find feature in editor to find any line associated with an item.
[Windows Mobile] mwalt2:
Thanks and great work on the kitchen!
[Windows Mobile] cac2us:
21914_NueKernel

Here is my Titan_Core from PPCK.

From what I read, the nk.exe is the main folder to replace in the XIP folder, but I tried to replace just that folder and got error.

Also it looks like there is an xtra folder in the stock XIP (relfsd.dll).

I tried with & without it, still error.

I also tried to use Custom XIP but am unsure aboutIMGFS Reserved Space settings.

Should I just use the Pagepool settings in the kitchen instead.

I don't really need the camera.

21914 Does work better with Office 2010 from 23518.

I coud allways just wait for the files to show up at PPCK.

Or learn to port XIP...

Thanks again...
[Windows Mobile] calvinfoo:
umm i was building a rom for xperiax1 (htc kovsky) when platformrebuilder crash. i only got an error after it ran for awhile during building. What shld i do and the crash did not state what was the problem.

if only the crash reported whats wrong... i wouldnt be here...
[Windows Mobile] mwalt2:
Disable half of your EXT packages and try cooking. If it crashes, the offending EXT is in the ones you selected. Then just keep narrowing it down and you will find what is causing the crash. Usually for me, platform rebuilder crashes when I try to overwrite a module with a module.
[Windows Mobile] calvinfoo:
thks mwalt2 it was manila settings v2_5 20161214_0 causing the problem i recmod it and it worked like a charm