Ncpatch: Difference between revisions

From Homecoming Wiki
Jump to navigation Jump to search
imported>Kitsune (historical)
(Documenting the .ncpatch format, for use in future versions of CityLauncher)
 
imported>Kitsune (historical)
No edit summary
Line 1: Line 1:
ncpatch is the format used by NCSoft to distribute patches for City of Heroes using the NCSoft Launcher utility.
==Format Description ==
The NCSoft Launcher distributes patches as compressed files with the extension ''ncpatch''. The files are compressed using the [http://en.wikipedia.org/wiki/Rar RAR format] (literally just renamed from ''.rar'' to ''.ncpatch'').
The NCSoft Launcher distributes patches as compressed files with the extension ''ncpatch''. The files are compressed using the [http://en.wikipedia.org/wiki/Rar RAR format] (literally just renamed from ''.rar'' to ''.ncpatch'').



Revision as of 19:03, 15 March 2011

ncpatch is the format used by NCSoft to distribute patches for City of Heroes using the NCSoft Launcher utility.


Format Description

The NCSoft Launcher distributes patches as compressed files with the extension ncpatch. The files are compressed using the RAR format (literally just renamed from .rar to .ncpatch).

Within the archive at the root is a folder with the same name as the containing archive, usually in the format of: CityOfHeroes_Main_$FromVersionTo$ToVersion, where $FromVersion is the version that is to be patched, and $ToVersion is the desired resulting/final version. Inside this folder is an xml file named PatchManifest.xml which instructs the NCSoft Launcher on how it should apply the patch, along with miscellaneous information such as MD5 checksums and file lengths (both pre- and post- patch).

Along with the PatchManifest.xml file, in the examined patch, is a folder named ProductFiles (defined in the manifest- name might be variable). This folder contains Xdelta based patches with the extension .X-D-E-L-T-A'. Based on an examination of PatchManifest.xml, it would appear that only the changed files are named, and not with the patch file itself not explicitly named. The name of the patch file can be surmised based on the individual 'Path' elements defined in the manifest, with the extra extension .X-D-E-L-T-A, this makes it fairly simple simple to figure out what to patch, even if the manifest is ignored.

It should be fairly trivial to manually patch a City of Heroes installation, using only a program that can open RAR archives (such as WinRAR or the open source 7zip), along with the xdelta utility (a copy is actually present in the root of the NCSoft Launcher directory).