DeP3d Version 1.xx by Mikero
see readme general and fixes
now with origami
Without options, DeP3d simply inspects any p3d for errors.
With options, you can:
output is generally produced on screen
Syntax:
DeP3d [-options...] Anyfile[.p3d] or AnyFolder or
Any List or "Comma,Separated,list"
options: (CaSE InsenSitivE)
none | list type of p3d(s) encountered and analyse for errors |
-P | don't pause |
-R | deprecated Use +FX |
-W | Warnings are errors (for trailing spaces in named selections) |
-S[nn] | list named selections (see below) |
-Es | folder | nameof[.p3d] | <file.list> : extract skeleton(s) to <model.cfgs> |
-Em | folder | nameof[.p3d] | <file.list> : extract rvmat(s) to screen |
-nn | -nn nameof[.p3d] : convert p3d to type nn (nn can be hex or decimal) |
-FL[nn] | list files (see below) |
-FX | fix files (see below) |
-G | list geolod properties |
-Gname | delete geolod property |
-Gname=value | change geolod property |
-O | Origami |
-6 | Origami (same) |
-LP[nn] |
list properties all lods (see below) |
Generic Scanning options (all dos tools)
It is useful to quickly scan a folder, series of folders, or a list of p3d's looking for changes to the format.
one such example is introduction of a physx lod.
To that end, and in keeping with other pbo tools, dep3d accepts scan syntax on the command line (-options are assumed)
folders are recursively scanned inspecting each p3d it encounters
any file that is NOT a .p3d is taken to be a text scan list
This list file can be a permanently held test suite of 'favorite' p3d's and this list can be generated from something as simple as
dir/b somefolder >some.lst
the net effect of a "comma,separated,list" is the same as specifying a file.list. Quotes are ONLY required when spaces exist in the file names or between commas.
In both cases (file.list or comma separated), these in turn can be mixtures of specific files, folders and more scan lists.
Conversions
Dep3d is not intended to reverse engineer odol p3d's back to mlods
If you are looking for cracking tools, look elsewhere.
However (see origami too)
DeP3d will degrade odol formats to other odol formats
The reasons for doing so is BI's tools such as buldozer, Oxygen and Visitor are not always up to date with respect to p3d's encountered in various engine patches.
This part of dep3d is intended to downgrade these p3d's into something usable for above tools. Whether they are subsequently usable 'as is' in a derived pbo is not relevant.
Separately, dep3d conversion will fully convert OFP formatted p3ds (both odol and mlod) to Arma and vice versa.
The following is a list of version types current as of Arma3 release
1 MLOD (OFP) (SP3X)
2 MLOD ARMA (P3DM)
7 OFP
40+ various arma engine types
Following conversions are available:
From | To |
ANY | OFP MLOD (if text strings <32) |
OFP MLOD (type1) | ARMA MLOD |
ofp odol | any mlod (arma or ofp) |
vbs odol | Arma 1 |
ARMA MLOD | none |
Any Arma1 | Any Lower Arma1 |
Any Arma2 | Any Lower Arma2 |
Arrowhead | Any Arma2 |
TOH | Arrowhead or lower |
ARMa3 | any lower arma3 that is compatible. ymmv |
LIST FILES
-FL[n]
by default, returns a sorted list of lowercase filenames referenced in the p3d. This normally contains mixtures of proxies, paa, and rvmats
[n] is and optional number in decimal or hex. by default, is zero
n translates to a bit field. The combined values are as follows:
1: do not
sort.
2: do not convert to lowercase
(it makes no sense to do a non lowercase sort)
FIX FILES
dep3d will
ORIGAMI
dep3d will convert ODOL (binarised) to MLOD (unbinarised) origami (paper) models.
They have no use whatsoever to the thief but will prove useful/instructive for everyone else.
The purpose of providing this feature is to allow authors the create either encrypted, or obfuscated pbos AND supply origami for map makers so that those models can also be used in maps.
LOD PROPERTIES
-LP[nn] List Properties
The default is to list all lods and all properties (if any) in those lods.
[nn] is and optional number in decimal or hex. by default, is zero
nn translates to a bit field. The combined values are as follows:
1: do not
sort.
2: do not convert to lowercase
4: do not list lods which have no properties
(it makes no sense to do a non lowercase sort)
No error is returned for this command
GEOLOD PROPERTIES
you can list, change, add or delete geolod properties with the following syntax
-G // list properties
-Gname // delete the property (if it exists) (case insensitive)
-Gname=value // change or add the value (case insensitive)
if the property does not exist, or the value is the same, an information message is displayed on the console, but it is NOT an error
The G option must be the last option (in this option argument)
when used, there must be no space surrounding the = sign
Note that an error is returned of there are no lod geolod properties or specific geolod property
NAMED SELECTIONS
(referred to as 'sections' in a model.cfg)
dep3d -S[n]
the default is to list all lods in the p3d whether they have named selections or not
the default is to include proxies as a named selection (which they are)
the default is to sort these selections
the default is to lowercase everything for sorting purposes
[n] is optional n, by default, is zero
n is a decimal number which translates to a bit field. The combined values are as follows:
1: do not
sort.
2: do not convert to lowercase
4: do not list lods which have no namedselections
8: do not list proxies
16: list only
a summary of all lods, not each lod