Physics model crashes on load
Copied from #10
-
Crashes on load. Appears to be because the tag extractor isn't undoing the post processing H2Tool does on package. Add the number of mass distribution tag block equivalent to the amount of objects in the physics_model tag. The mass distribution tag block gets created when the file is initially created from source JMS files and is merged with rigid bodies tag block on package.
-
Something is wrong with physics models that isn't post processing. See crate_space_a. crate_space_b, detail_keyplug, and fuselage_arm in 06a_sentinelwalls.map. I'll look into this more when I can.
All these crashes are from the physics model. The cause is most likely that havok physics models require the mass distribution values in order to function. Static physics objects that just serve as a platform for the player tend to be fine. This basically makes up most device machines. Crates on extraction will not work because of this.
01a_tutorial.map
- resupply_capsule_crate
- equipment_cart
- generator
- pallet
- rucksack
- chair_dinning
- chair_sofa
- trashcan
04a_gasgiant.map
- seraph
- gas_container
06a_sentinelwalls.map
- crate_space_a
- crate_space_b
- antennae_comm
After this phantom meshes will be changed from their object mesh type to unused on package. These means any meshes that make use of the phantom tag block will most likely crash unless this is undone.
06a_sentinelwalls.map
- detail_keyplug
https://pastebin.com/h6WUDFDZ