DKC:TF > Particle File (GENP/SWSH/XFRM)
Meta data: NParticleFormat::SMetaData
| Type | Description |
|---|---|
| CFormDescriptor | Form descriptor (GENP/SWSH/XFRM) |
GENP/SWSH/XFRM Form
Version: 15
| Type | Description |
|---|---|
| CChunkDescriptor | DESC chunk (particle generator description) |
DESC Chunk
Version: 0
| Type | Description |
|---|---|
| CAssetHeader | Asset header |
| Parse tree |
In the parse tree, every element starts with a CFourCC that indicates its type, followed by type-specific fields. Depending on the file type, the root element is either a GPSM, SWSH or XFRM node.
All elements have a fixed number of fields, except the root node which can have an arbitrary number of fields.
GPSM Node
This element contains an arbitrary number of elements of the following types.
| Class id | Type | Description |
|---|---|---|
ADV1 | ||
ADV2 | ||
ADV3 | ||
ADV4 | ||
ADV5 | ||
ADV6 | ||
ADV7 | ||
ADV8 | ||
ADV9 | ||
ALSC | ||
CAV0 | ||
CAV1 | ||
CAV2 | ||
CAV3 | ||
CIND | ||
COLR | ||
DBIS | ||
DBPS | ||
DBSO | ||
DDIT | ||
DEFX | ||
DFLG | ||
DFOG | ||
EMTE | ||
EMTR | Emitter element | Particle emitter |
EMTU | ||
FXBI | ||
FXBM | ||
FXBO | ||
FXBR | ||
FXBT | ||
GRTE | Real element | Particle generation rate |
IAV0 | ||
IAV1 | ||
IAV2 | ||
IAV3 | ||
INDM | ||
INDP | ||
INTP | ||
INTR | ||
INTS | ||
INTT | ||
ISTR | ||
ISVF | ||
ITPE | ||
IVSE | ||
KSSM | ||
LCLR | ||
LDIR | ||
LFOR | ||
LFOT | ||
LINT | ||
LIT_ | ||
LOFF | ||
LSLA | ||
LSNM | ||
LTME | Int element | Particle lifetime |
LTYP | ||
MAXP | Int element | Maximum number of particles |
NTIK | ||
ONET | ||
ORNT | ||
ORTC | ||
PBDM | ||
PMDL | ||
PMLT | ||
PMOO | ||
PMOP | ||
PMOV | ||
PMPV | ||
PMRB | ||
PMRQ | ||
PMRT | ||
PMSC | ||
PMUS | ||
PSLT | Int element | Particle system lifetime |
PSTP | ||
PSTS | ||
PSWT | ||
PWGT | ||
RAV0 | ||
RAV1 | ||
RDOP | ||
ROTA | ||
RSV0 | ||
RSV1 | ||
RSV2 | ||
RSV3 | ||
SAXS | ||
SBIS | ||
SCNV | ||
SCTR | ||
SCX0 | ||
SEED | ||
SIZE | ||
SORT | ||
SPCL | ||
SSZE | ||
SPWR | ||
SPWS | ||
SPWT | ||
SSWT | ||
SSZE | ||
SVC0 | ||
SVC1 | ||
SVI0 | ||
SVI1 | ||
SVR0 | ||
SVR1 | ||
SVR2 | ||
SVR3 | ||
SVR4 | ||
SVV0 | ||
SVV1 | ||
SVV2 | ||
SVV3 | ||
SVV4 | ||
SYSR | ||
SYSS | ||
SYST | ||
TEMR | ||
TEMT | ||
TEXR | ||
TIND | ||
TNML | ||
TSPH | ||
UDLS | ||
UGFP | ||
VAV1 | ||
VAV2 | ||
VAV3 | ||
VAV4 | ||
VEL1 | ||
VEL2 | ||
VEL3 | ||
VEL4 | ||
VGD1 | ||
VGD2 | ||
VGD3 | ||
VGD4 | ||
VMD1 | ||
VMD2 | ||
VMD3 | ||
VMD4 | ||
VMPC | ||
VSPC | ||
WSTP | ||
XFMD | ||
XTAD | ||
ZBUF | ||
_END |
Bool Element
Note: in some cases, only CNST is accepted.
| Class id | Description |
|---|---|
CNST | Constant |
EQUL | Equality check |
LTHN | Less than check |
MIRR | Is mirrored |
NEXT | |
NORM | Is vector normalizable |
P50H | Are we 50 Hz PAL |
PEXT | |
VEXT |
CBEConstant (CNST)
This element defines a constant.
| Type | Description |
|---|---|
| Bool | Value |
CBERealEqual (EQUL)
This element performs an equality check.
| Type | Description |
|---|---|
| Real element | LHS |
| Real element | RHS |
CBERealLessThan (LTHN)
This element performs a less-than check.
| Type | Description |
|---|---|
| Real element | LHS |
| Real element | RHS |
CBEMirrored (MIRR)
The value of this element is true if the mirror is enabled.
CBENormalizeable (NORM)
The value of this element is true if the given vector is normalizable.
| Type | Description |
|---|---|
| Vector element | Vector |
CBEAreWePal50 (P50H)
The value of this element is true if 50 Hz PAL is enabled.
Int Element
| Class id | Description |
|---|---|
ADD_ | Addition |
BNID | Bone index |
CHAN | Time chain |
CLMP | Clamp |
CNST | Constant |
DETH | Death |
DIVD | Divide |
GAPC | Active particle count |
GEMT | Emitter time |
GTCP | Total created particle count |
ILPT | |
IMPL | Impulse |
IRND | Initial random |
ISWT | Initial switch |
KEYE | |
KEYF | |
KEYP | |
KPIN | Keep initial |
MODU | Modulus |
MULT | Multiply |
PAP0 | Context 2 variable 0 |
PAP1 | Context 2 variable 1 |
PAP2 | Context 2 variable 2 |
PAP3 | Context 2 variable 3 |
PCRT | Particle creation time |
PDET | Particle creation time |
PSA0 | Context 0 variable 0 |
PSA1 | Context 0 variable 1 |
PSI0 | Context 0 variable 0 |
PSI1 | Context 0 variable 1 |
PULS | Pulse |
RAND | Random |
RTOI | Real to int |
SUB_ | Subtract |
TSCL | Timescale |
CIEAdd (ADD_)
| Type | Description |
|---|---|
| Int element | LHS |
| Int element | RHS |
CIEBoneIndex (BNID)
| Type | Description |
|---|---|
| Uint32 | Unknown |
| String | Joint name |
| Uint32 | Unknown |
| Bool | Unknown |
CIETimeChain (CHAN)
| Type | Description |
|---|---|
| Int element | Unknown |
| Int element | Unknown |
| Int element | Unknown |
CIEClamp (CLMP)
| Type | Description |
|---|---|
| Int element | Unknown |
| Int element | Unknown |
| Int element | Unknown |
CIEConstant (CNST)
| Type | Description |
|---|---|
| Uint32 | Value |
CIEDeath (DETH)
| Type | Description |
|---|---|
| Int element | Unknown |
| Int element | Unknown |
CIEDivide (DIVD)
| Type | Description |
|---|---|
| Int element | LHS |
| Int element | RHS |
CIEGetActiveParticleCount (GAPC)
The value of this element is the number of active particles.
CIEEmitterTime (GEMT)
The value of this element is the emitter time.
CIEGetTotalCreatedParticleCount (GTCP)
The value of this element is the total number of particles that were created.
CIEImpulse (IMPL)
| Type | Description |
|---|---|
| Int element | Unknown |
CIEInitialSwitch (ISWT)
| Type | Description |
|---|---|
| Int element | Unknown |
| Int element | Unknown |
CIEKeepInitial (KPIN)
| Type | Description |
|---|---|
| Int element | Unknown |
CIEModulus (MODU)
| Type | Description |
|---|---|
| Int element | LHS |
| Int element | RHS |
CIEMultiply (MULT)
| Type | Description |
|---|---|
| Int element | LHS |
| Int element | RHS |
CIEParticleCreationTime (PCRT)
The value of this element is the particle creation time.
CIEParticleCreationTime (PDET)
The value of this element is the particle creation time.
CIEPulse (PULS)
| Type | Description |
|---|---|
| Int element | Unknown |
| Int element | Unknown |
| Int element | Unknown |
| Int element | Unknown |
CIERandom (RAND)
| Type | Description |
|---|---|
| Int element | Minimum |
| Int element | Maximum |
CIESubtract (SUB_)
| Type | Description |
|---|---|
| Int element | LHS |
| Int element | RHS |
CIETimescale (TSCL)
| Type | Description |
|---|---|
| Real element | Unknown |
Real Element
| Class id | Description |
|---|---|
ADD_ | Addition |
CEQL | |
CEXT | |
CHAN | Time chain |
CLMP | |
CLTN | |
CNST | Constant |
CREL | |
CRNG | |
DIVD | |
DOTP | Dot product |
GTCA | |
GTCB | |
GTCG | |
GTCP | |
GTCR | |
IRND | |
ISWT | |
ITRL | |
KEYE | |
KEYF | |
KEYP | |
KPIN | |
LFTW | |
MAXV | |
MINV | |
MULT | Multiplication |
MULV | |
NEXT | |
OCSP | |
PAP1 | |
PAP2 | |
PAP3 | |
PAP4 | |
PAP5 | |
PAP6 | |
PAP7 | |
PAP8 | |
PAP9 | |
PEXT | |
PNO1 | |
PNO2 | |
PNO3 | |
PNO4 | |
PRLW | |
PRN1 | |
PRN2 | |
PRN3 | |
PRN4 | |
PSA0 | |
PSA1 | |
PSA2 | |
PSLL | |
PSSZ | |
PULS | |
RAND | Random |
RECP | Reciprocal |
RLPT | |
SCAL | |
SINE | |
SUB_ | Subtraction |
TOCS | |
VMAG | |
VXTR | |
VYTR | |
VZTR |
CREConstant (CNST)
| Type | Description |
|---|---|
| Float | Value |
CRERandom (RAND)
| Type | Description |
|---|---|
| Real element | Base |
| Real element | Span |
Vector Element
| Class id | Description |
|---|---|
ADD_ | |
AEXT | |
ANGC | |
BNPS | |
BNSC | |
CCLU | |
CHAN | |
CIRC | |
CMPS | |
CNST | Constant |
CONE | |
CRSS | |
CTVC | |
CVEC | |
EXTS | |
EXTT | |
INTS | |
INTT | |
IRTV | |
ISWT | |
KEYE | |
KEYF | |
KEYP | |
KPIN | |
MULT | |
NEXT | |
NONE | |
NORM | |
ORDR | |
PAP1 | |
PAP2 | |
PAP3 | |
PAP4 | |
PEXT | |
PLCO | |
PLOC | |
PNCV | |
PSA0 | |
PSA1 | |
PSA2 | |
PSA3 | |
PSA4 | |
PSOF | |
PSOR | |
PSOU | |
PSTR | |
PULS | |
PVEL | |
RNDV | |
ROTV | |
RTOV | |
SCLE | |
SLOC | |
SPNT | |
SPSS | |
SUB_ | |
VEXT |
CVEConstant (CNST)
| Type | Description |
|---|---|
| Real element | X |
| Real element | Y |
| Real element | Z |
Emitter Element
| Class id | Description |
|---|---|
ASPH | Angle sphere |
ELPS | Ellipsoid |
NONE | None |
PLNE | Plane |
SEMR | Simple emitter |
SPHE | Sphere |
CVEAngleSphere (ASPH)
| Type | Description |
|---|---|
| Vector element | Unknown |
| Real element | Unknown |
| Real element | Unknown |
| Real element | Unknown |
| Real element | Unknown |
| Real element | Unknown |
| Real element | Unknown |
NParticleFormat::SMetaData
| Type | Description |
|---|---|
| List<CObjectTag> | Texture references |