User Tools

Site Tools


arma2:tools:patchpbo

This is an old revision of the document!


PatchPbo

PatchPbo will patch your existing pbo automatically for specified files, it also deletes any specified files inside a pbo if selected. This util is useful if you want to upgrade / patch a 500mb characters.pbo with just one new model change; no reason to upload that much, when you can just patch in few hundred kilobytes.

Usage:

patchPbo  [-OverrideOption] <PatchPbo[.pbo]> <TargetPbo[.pbo]>
options : -a Arma
          -A Arma w sha-key (recommended)
          -APrefixOverride (see note)
          -r Resistance
	  -c cwc
          -e elite

If options not specified, output pbo will be determined by highest order input file. Eg if patch is a CWC and target is an ArmA file, output is ArmA.

Prefix override for ArmA.

Unless specifically stated, the engine searches for a suitable prefix name as follows:

the name of the patchfile.pbo
the name of the targetfile.pbo
the name of the outputfile.pbo

Example:

patchpbo  MyPatches  APboFile

The output is sent to ApboFile.patched.pbo

NEITHER source files are affected.

You can, as easily, reverse files to

patchbpo ApboFile MyPatches

Output will be to MyPatches.patched.pbo

Patchpbo returns NON zero on any error encountered.

PatchPbo will STRIP resistance format out of pbo files as being entirely redundant.

PatchPbo RETAINS the original compression (if any) AND encryption (if any) of the original files.

DELETING PBO's

Simply supply a file of zero (0) length inside the <PatchPboFile>

If this routine discovers the same name in the target pbo, it will remove it.

Importantly, if it does NOT discover one in the target pbo, it considers this to be a genuine attempt to add a zero length file. Such files are often used as version flags.

Requires DePbo.dll - Check Mikero tools homepage in Dev-Heaven.

arma2/tools/patchpbo.1279257536.txt.gz · Last modified: 2010-07-16 05:18 by snakeman