Jump to content

EvilEngine/SHRP: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 12:
This asset defines data for shrapnel.
 
==Format (Headers)==
===zShrapnelAsset===
The asset data starts with a 0xC byte header:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || int || '''fassetCount''' || Amount of SHRPfrag entries
|-
| 0x04 || [[AssetID]] || '''sharpnelID''' || This asset
|-
| 0x08 || int || colspan="2" | Unknown, always 0
|}
 
After that, there's an array of shrapnel entries, as defined in the header. Each entry is of variable size:
 
* '''Type 1 (groupGroup)'''
* '''Type 2 (shrapnelShrapnel)'''
* '''Type 3 (particleParticle) (BFBB) - 0x1D4'''
** BFBB - 0x1D4
* Type 3 (particle) (Movie) - 0x1E0
** TSSM - 0x1F8
* Type 4 (projectile) (BFBB) - 0x90
* '''Type 4 (projectileProjectile) (Movie) - 0x110'''
** Type 5 (lightning) (BFBB) - 0x680x90
** TSSM - 0x110
* Type 5 (lightning) (Movie) - 0x70
* '''Type 65 (soundLightning) (BFBB) - 0x4C'''
** BFBB - 0x68
* Type 6 (sound) (Movie) - 0x44
** TSSM - 0x70
* Type 7 (shockwave)
* '''Type 86 (explosionSound) (Movie) - 0x48'''
** BFBB - 0x4C
* Type 9 (distortion) - 0x5C
** Type 10 (fire)TSSM - 0x5C0x44
* '''Type 7 (Shockwave)'''
** TSSM - 0x48
* '''Type 8 (Explosion)'''
** TSSM - 0x48
* '''Type 9 (Distortion)'''
** TSSM - 0x5C
* '''Type 10 (Fire)'''
** TSSM - 0x5C
 
===zFragAsset===
The entries have the following structure:
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || int || Type'''type''' ||
* 0 = eFragInactive
* 1 = eFragGroup
* 2 = eFragShrapnel
* 3 = eFragParticle
* 4 = eFragProjectile
* 5 = eFragLightning
* 6 = eFragSound
* 7 = eFragShockwave
* 8 = eFragExplosion
* 9 = eFragDistortion
* 10 = eFragFire
|-
| 0x04 || [[AssetID]] || UnknownID'''id''' ||
|-
| 0x08 || int[[AssetID]] || '''parentID1parentID''' ||
|-
| 0x0C || int[[AssetID]] || '''parentID2''' ||
|-
| 0x10 || float || '''lifetime''' ||
|-
| 0x14 || float || '''delay''' ||
|}
 
=== Type 3 (BFBB) zFragLocation===
Every entry/frag (except shockwave) has this header at a different position.<br>
{| class="wikitable"
Sometimes it only has 0xCD padding bytes.
! Offset !! Type !! Description
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x180x00 || zFragLocTypeuint || '''type''' ||
* 0 = eFragLocBone
* 1 = eFragLocBoneUpdated
* 2 = eFragLocBoneLocal
* 3 = eFragLocBoneLocalUpdated
* 4 = eFragLocTag
* 5 = eFragLocTagUpdated
|-
! colspan="4" | [Frag] Bone only
| 0x1C || int || '''index'''
|-
| 0x200x04 || [[Vector3]]int || '''Offsetindex''' ||
|-
| 0x2C0x08 || byte[0x10[Vector3]] || Padding?'''offset''' (all bytes are 0xCD)||
|-
| 0x0C || uint[4] || colspan="2" | Padding - 0xCD bytes, 4-byte alignment
| 0x3C || zFragLocType || '''type2'''
|-
! colspan="4" | [Model] Tag only
| 0x40 || int || '''index2'''
|-
| 0x440x04 || [[Vector3]] || '''Offset2v''' ||
|-
| 0x10 || uint || '''matidx''' ||
| 0x50 || byte[0x144] || Padding? (all bytes are 0xCD)
|-
| 0x14 || float[4] || '''wt''' || Always 0xCD padding bytes?
| 0x194 || short || Unknown
|-
! colspan="4" |
| 0x198 || short || Unknown
|-
| 0x24 || float || '''rand_radius''' || '''Not present in BFBB'''
| 0x19C || byte[0x30] || Padding? (all bytes are 0xCD)
|-
| 0x1CC || [[AssetID]] || [[PARE]]
|-
| 0x1D0 || int || Unknown
|}
 
===Type 3Format (MovieFrags) ===
===Type 3 - Particle===
 
====BFBB====
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
! 0x18 || colspan="3" | Type[[#zFragLocation|zFragLocation]] source 3
|-
! 0x3C || colspan="3" | [[#zFragLocation|zFragLocation]] vel
| 0x18 || zFragLocType || '''type'''
|-
| 0x60 || uint[91] || colspan="2" | Padding - 0xCD bytes, 4-byte alignment
| 0x1C || int || '''index'''
|-
| 0x200x1CC || [[Vector3AssetID]] || '''OffsetparEmitterID''' ||
|-
| 0x1D0 || uint || '''parEmitter''' || Always 0
| 0x2C || byte[0x10] || Padding? (all bytes are 0xCD)
|}
 
====Movie====
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
! 0x18 || colspan="3" | [[#zFragLocation|zFragLocation]] source
| 0x3C || float || '''rand_radius'''
|-
! 0x40 || colspan="3" | [[#zFragLocation|zFragLocation]] vel
| 0x40 || zFragLocType || '''type2'''
|-
| 0x440x68 || intbyte[388] || '''index2dummy''' ||
|-
| 0x480x1EC || [[Vector3]]uint || '''Offset2dummy0''' || ?
|-
| 0x540x1F0 || byte[0x10[AssetID]] || Padding? (all bytes are 0xCD)[[PARE]]
|-
| 0x580x1F4 || floatuint || '''rand_radius2dummy1''' || ?
|-
| 0x5C || byte[0x138] || Padding? (all bytes are 0xCD)
|-
| 0x194 || short || Unknown
|-
| 0x196 || short || Unknown
|-
| 0x198 || byte[0x48] || Padding? (all bytes are 0xCD)
|-
| 0x1E0 || byte || Unknown
|-
| 0x1E1 || byte[3] || padding?
|-
| 0x1E4 || [[Asset ID]] || [[PARE]]
|-
| 0x1E8 || int || null
|}
 
=== Type 4 (BFBBProjectile) ===
====BFBB====
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x18 || [[AssetID]] || '''modelInfoID''' || [[MODL]]
|-
| 0x1C || RpAtomic uint|| '''modelFile''' || Always 0
|-
! 0x20 || colspan="3" | [[#zFragLocation|zFragLocation]] launch
| 0x20 || zFragLocType || '''type'''
|-
! 0x44 || colspan="3" | [[#zFragLocation|zFragLocation]] vel
| 0x24 || int || '''index'''
|-
| 0x280x68 || float || '''Offset Xbounce''' - Offset the Shrapnel spawns at||
|-
| 0x2C0x6C || floatint || '''Offset Ymaxbounces''' ||
|-
| 0x300x70 || floatuint || '''Offset Zflags''' ||
|-
| 0x74 || [[AssetID]] || '''childID''' || [[SHRP]] - Child shrapnel ID. Always 0?
| 0x34 || byte[0x34] || Padding? (all bytes are 0xCD)
|-
| 0x680x78 || floatzSharpnelAsset* || '''bouncechild''' || Always 0?
|-
| 0x6C0x7C || intfloat || '''maxbouncesminScale''' ||
|-
| 0x700x80 || intfloat || '''flagsmaxScale''' ||
|-
| 0x740x84 || [[AssetID]] || [[SHRP]]'''scaleCurveID''' - Child|| shrapnelAlways ID0?
|-
| 0x780x88 || [[AssetID]]xCurveAsset* || [[SHRP]]'''scaleCurve''' - Child|| shrapnel2Always ID0?
|-
| 0x7C0x8C || float || '''minScalegravity''' ||
|-
| 0x80 || float || '''maxScale'''
|-
| 0x84 || [[AssetID]] || '''scaleCurveID'''
|-
| 0x88 || [[AssetID]] || '''scaleCurve'''
|-
| 0x8C || float || '''Gravity'''
|}
 
=== Type 4 (=Movie) ====
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x18 || [[AssetID]] || '''modelInfoID''' || [[MODL]]
|-
| 0x1C || RpAtomic* || '''modelFile''' || Always 0?
|-
! 0x20 || colspan="3" | [[#zFragLocation|zFragLocation]] launch
| 0x20 || zFragLocType || '''type'''
|-
! 0x48 || colspan="3" | [[#zFragLocation|zFragLocation]] vel
| 0x24 || int || '''index'''
|-
! 0x70 || colspan="3" | [[#zFragLocation|zFragLocation]] velPlusMinus
| 0x28 || float || '''Offset X''' - Offset the Shrapnel spawns at
|-
! 0x98 || colspan="3" | [[#zFragLocation|zFragLocation]] rot
| 0x2C || float || '''Offset Y'''
|-
! 0xC0 || colspan="3" | [[#zFragLocation|zFragLocation]] rotPlusMinus
| 0x30 || float || '''Offset Z'''
|-
| 0xE8 || float || '''bounce''' ||
| 0x34 || byte[0x10] || Padding? (all bytes are 0xCD)
|-
| 0x440xEC || floatint || '''rand_radiusmaxBounces''' ||
|-
| 0x480xF0 || zFragLocTypeint || '''type2flags''' ||
|-
| 0xF4 || [[AssetID]] || '''childID''' || [[SHRP]] - Child shrapnel ID. Always 0?
| 0x4C || int || '''index2'''
|-
| 0x500xF8 || [[Vector3]]zShrapnelAsset* || '''Offset2child''' || Always 0?
|-
| 0xFC || float || '''minScale''' ||
| 0x5C || byte[0x3C] || Padding? (all bytes are 0xCD)
|-
| 0x980x100 || zFragLocTypefloat || '''type3maxScale''' ||
|-
| 0x9C0x104 || int[[AssetID]] || '''index3scaleCurveID''' || Always 0?
|-
| 0xA80x108 || [[Vector3]]xCurveAsset* || '''Offset3scaleCurve''' || Always 0?
|-
| 0x10C || float || '''Gravity''' ||
| 0xAC || byte[0x3C] || Padding? (all bytes are 0xCD)
|-
| 0xE8 || float || '''Bounce'''
|-
| 0xEC || int || '''maxBounces'''
|-
| 0xF0 || int || '''Flags'''
|-
| 0xF4 || [[AssetID]] || [[SHRP]] - Child shrapnel ID
|-
| 0xF8 || [[AssetID]] || [[SHRP]] - Child shrapnel2 ID
|-
| 0xFC || float || '''minScale'''
|-
| 0x100 || float || '''maxScale'''
|-
| 0x104 || [[AssetID]] || '''scaleCurveID'''
|-
| 0x108 || [[AssetID]] || '''scaleCurve'''
|-
| 0x10C || float || '''Gravity'''
|}
 
===Type 5 (BFBBLightning)===
====BFBB====
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
! 0x18 || colspan="3" | [[#zFragLocation|zFragLocation]] start
| 0x18 || zFragLocType || '''type'''
|-
! 0x3C || colspan="3" | [[#zFragLocation|zFragLocation]] end
| 0x1C || int || '''index'''
|-
| 0x200x60 || [[Vector3]]uint || '''OffsetstartParentID''' || all bytes are 0xCD?
|-
| 0x2C0x64 || byte[0x10]uint || Padding?'''endParentID''' || (all bytes are 0xCD)?
|-
| 0x3C || zFragLocType || '''type2'''
|-
| 0x40 || int || '''index2'''
|-
| 0x44 || [[Vector3]] || '''Offset2'''
|-
| 0x50 || byte[0x10] || Padding? (all bytes are 0xCD)
|-
| 0x60 || int || '''startParentID''' (all bytes are 0xCD?)
|-
| 0x64 || int || '''endParentID''' (all bytes are 0xCD?)
|}
 
===Type 5 (=Movie)====
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
! 0x18 || colspan="3" | [[#zFragLocation|zFragLocation]] start
| 0x18 || zFragLocType || '''type'''
|-
! 0x40 || colspan="3" | [[#zFragLocation|zFragLocation]] end
| 0x1C || int || '''index'''
|-
| 0x200x68 || [[Vector3]]uint || '''OffsetstartParentID''' || all bytes are 0xCD?
|-
| 0x2C0x6C || byte[0x10]uint || Padding?'''endParentID''' || (all bytes are 0xCD)?
|-
| 0x3C || float || '''rand_radius'''
|-
| 0x40 || zFragLocType || '''type2'''
|-
| 0x44 || int || '''index2'''
|-
| 0x48 || [[Vector3]] || '''Offset2'''
|-
| 0x54 || byte[0x10] || Padding? (all bytes are 0xCD)
|-
| 0x64 || float || '''rand_radius2'''
|-
| 0x68 || int || '''startParentID''' (all bytes are 0xCD?)
|-
| 0x6C || int || '''endParentID''' (all bytes are 0xCD?)
|}
 
===Type 6 (BFBBSound)===
====BFBB====
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x18 || [[AssetID]] || [[SND]]/[[SNDS]]
|-
| 0x1C || zFragLocType || '''type'''
|-
| 0x20 || int || '''index'''
|-
| 0x240x18 || [[Vector3AssetID]] || '''OffsetassetID''' || [[SND]]/[[SNDS]]
|-
! 0x1C || colspan="3" | [[#zFragLocation|zFragLocation]] source
| 0x30 || byte[0x10] || Padding? (all bytes are 0xCD)
|-
| 0x40 || float || '''volume''' ||
|-
| 0x44 || float || '''innerRadius''' ||
|-
| 0x48 || float || '''outerRadius''' ||
|}
 
===Type 6 (=Movie)====
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x18 || [[AssetID]] || '''assetID''' || [[SND]]/[[SNDSSGRP]]
|-
! 0x1C || colspan="3" | [[#zFragLocation|zFragLocation]] source
| 0x1C || zFragLocType || '''type'''
|-
| 0x20 || int || '''index'''
|-
| 0x24 || [[Vector3]] || '''Offset'''
|-
| 0x30 || byte[0x10] || Padding? (all bytes are 0xCD)
|-
| 0x40 || float || '''rand_radius'''
|}
 
=== Type 7 (Shockwave)===
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x18 || [[AssetID]] || '''modelInfoID''' || [[MODL]]
|-
| 0x1C || float || '''birthRadius''' ||
|-
| 0x20 || float || '''deathRadius''' ||
|-
| 0x24 || float || '''birthVelocity''' ||
|-
| 0x28 || float || '''deathVelocity''' ||
|-
| 0x2C || float || '''birthSpin''' ||
|-
| 0x30 || float || '''deathSpin''' ||
|-
| 0x34 || [[ColorVector4]] || '''birthColor''' ||
|-
| 0x44 || [[ColorVector4]] || '''deathColor''' ||
|}
 
=== Type 8 (Explosion)===
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x18 || [[AssetID]]? || '''type''' || Unknown
|-
|! 0x1C || zFragLocTypecolspan="3" | [[#zFragLocation| '''type'''zFragLocation]]
|-
| 0x200x44 || intuint || '''indexflags''' ||
|-
| 0x24 || [[Vector3]] || '''Offset'''
|-
| 0x30 || byte[0x10] || Padding? (all bytes are 0xCD)
|-
| 0x40 || float || '''rand_radius'''
|-
| 0x44 || int || '''flags'''
|}
 
=== Type 9 (Distortion)===
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x18 || [[AssetID]]? || Unknown'''type''' ||
|-
|! 0x1C || zFragLocTypecolspan="3" | [[#zFragLocation| '''type'''zFragLocation]]
|-
| 0x200x44 || intuint || '''indexflags''' ||
|-
| 0x2C0x48 || [[Vector3]]float || '''Offsetradius''' ||
|-
| 0x4C || float || '''duration''' ||
| 0x30 || byte[0x10] || Padding? (all bytes are 0xCD)
|-
| 0x400x50 || float || '''rand_radiusintensity''' ||
|-
| 0x440x54 || intfloat || '''flagsfreq''' ||
|-
| 0x480x58 || float || '''radiusrepeat_delay''' ||
|-
| 0x4C || float || '''duration'''
|-
| 0x50 || float || '''intensity'''
|-
| 0x54 || float || '''freq'''
|-
| 0x58 || float || '''repeat_delay'''
|}
 
=== Type 10 (Fire)===
 
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x18 || zFragLocType || '''type'''
|-
| 0x1C || int || '''index'''
|-
| 0x20 || [[Vector3]] || '''Offset'''
|-
| 0x2C || byte[0x10] || Padding? (all bytes are 0xCD)
|-
! 0x18 || colspan="3" | [[#zFragLocation|zFragLocation]] loc
| 0x3C || float || '''rand_radius'''
|-
| 0x40 || int || '''flags''' ||
|-
| 0x44 || float || '''radius''' ||
|-
| 0x48 || float || '''scale''' ||
|-
| 0x4C || float || '''fuel''' ||
|-
| 0x50 || float || '''heat''' ||
|-
| 0x54 || float || '''damage''' ||
|-
| 0x58 || float || '''knockback''' ||
|}
 
2,081

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.