XPacker: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "Category:Tools" to "Category:Official Tools")
m (Fix)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=XPacker=
=XPacker=
Xpacker is used to pack and unpack data (for example MODs) for Carrier Command. <br>
Xpacker is used to pack and unpack data (for example mods) for {{Name|carriercommand|com}}.<br>
Xpacker is included in CC:GM SDK release. <br>
Xpacker is included in {{Name|carriercommand}} SDK release.
<br>
'''Video files not must be compressed.''' -> If you have some in your MOD, use exclude suffixes parameter on them when you want to pack the MOD.


==Usage==
{{Feature|important|
'''xpacker [-r][-m][-n][-#] target.zip [source-dir, ...]''' <br>
Video files must '''not''' be compressed.
or <br>
If you have some in your mod, use the "exclude suffixes" (-x) parameter on them when you want to pack the mod.
'''xpacker -u[-r][-n] source.zip [source-dir] [target-dir]''' <br>
}}
<br>


'''xpacker.exe -u "c:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\data00.cc" "c:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\unpacked_data\"'''


unpacks data00.cc in Carrier Command folder into subfolder "unpacked_data" in the same folder.
== Usage ==


{| class="wikitable float-right"
|+ Parameters
! Parameter
! Description
|-
| -r
| Recursive
|-
| -u
| Unpack
|-
| -# 0...9
| level of compression
|-
| -n
| Do not compress suffixes
|-
| -m
| Move to archive
|-
| -x
| Exclude suffixes
|-
| -productId #
| Product identifier
|-
| -key $
| Encryption key
|}


'''C:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\xpacker.exe -r6mn .wav:.ogg:.ttf:.xob:.wmv:.dds -x .txo data01.cc  .\worlds .\video .\gui \materials .\particle'''
xpacker [-r][-m][-n][-#] target.zip [source-dir, ...]
or
xpacker -u[-r][-n] source.zip [source-dir] [target-dir]


This command uses xpacker.exe in Carrier Command directory to pack
e.g
(recursively and with medium level of compression) subdirs "worlds",
xpacker.exe -u "C:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\data00.cc" "C:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\unpacked_data\"
"video", "gui", "materials" and  "particle" of current dir into
data01.cc file, which will be placed in current directory.
When the data are packed it will delete the source files and folders
("m" parameter).
"-x .txo means that it will not include any .txo files in the final archive.
"n .wav:.ogg:.ttf:.xob:.wmv:.dds" means that wav, ogg, ttf, xob, wmv and
dds files will be added into archive, but will not be compressed. This
exact option is recommended for Carrier Command mods for the best
performance. In case of wmv files it is crucial because wmv files MUST
NOT be compressed.


unpacks {{hl|data00.cc}} in Carrier Command folder into subfolder "unpacked_data" in the same folder.


==Parameters==
-r Recursive <br>
-u Unpack <br>
-# 0...9 level of compression <br>
-n Don't compress suffixes <br>
-m Move to archive <br>
-x Exclude suffixes <br>
-productId # Product identifier <br>
-key $ Encrypt key <br>
<br>


C:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\xpacker.exe -r6mn .wav:.ogg:.ttf:.xob:.wmv:.dds -x .txo data01.cc  .\worlds .\video .\gui \materials .\particle


This command uses xpacker.exe in Carrier Command directory to pack (recursively and with medium level of compression) subdirs "worlds",
"video", "gui", "materials" and  "particle" of current dir into {{hl|data01.cc}} file, which will be placed in current directory.
When the data are packed it will delete the source files and folders ("-m" parameter).
"-x .txo" means that it will not include any .txo files in the final archive.
"-n .wav:.ogg:.ttf:.xob:.wmv:.dds" means that wav, ogg, ttf, xob, wmv and dds files will be added into archive, but will not be compressed.
This exact option is recommended for Carrier Command mods for the best performance.
In the case of wmv files it is crucial because wmv files MUST NOT be compressed.




 
{{GameCategory|carriercommand|Official Tools}}
[[Category:Carrier Command: Official Tools]]
[[Category:Official Tools]]

Latest revision as of 15:25, 19 January 2026

XPacker

Xpacker is used to pack and unpack data (for example mods) for Carrier Command: Gaea Mission.
Xpacker is included in Carrier Command SDK release.

Video files must not be compressed. If you have some in your mod, use the "exclude suffixes" (-x) parameter on them when you want to pack the mod.


Usage

Parameters
Parameter Description
-r Recursive
-u Unpack
-# 0...9 level of compression
-n Do not compress suffixes
-m Move to archive
-x Exclude suffixes
-productId # Product identifier
-key $ Encryption key
xpacker [-r][-m][-n][-#] target.zip [source-dir, ...]

or

xpacker -u[-r][-n] source.zip [source-dir] [target-dir]

e.g

xpacker.exe -u "C:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\data00.cc" "C:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\unpacked_data\"

unpacks data00.cc in Carrier Command folder into subfolder "unpacked_data" in the same folder.


C:\Program Files (x86)\Bohemia Interactive\Carrier Command Gaea Mission\xpacker.exe -r6mn .wav:.ogg:.ttf:.xob:.wmv:.dds -x .txo data01.cc  .\worlds .\video .\gui \materials .\particle

This command uses xpacker.exe in Carrier Command directory to pack (recursively and with medium level of compression) subdirs "worlds", "video", "gui", "materials" and "particle" of current dir into data01.cc file, which will be placed in current directory. When the data are packed it will delete the source files and folders ("-m" parameter). "-x .txo" means that it will not include any .txo files in the final archive. "-n .wav:.ogg:.ttf:.xob:.wmv:.dds" means that wav, ogg, ttf, xob, wmv and dds files will be added into archive, but will not be compressed. This exact option is recommended for Carrier Command mods for the best performance. In the case of wmv files it is crucial because wmv files MUST NOT be compressed.