H2PC_TagExtraction icon indicating copy to clipboard operation
H2PC_TagExtraction copied to clipboard

Physics model crashes on load

Open num0005 opened this issue 6 years ago • 2 comments

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.

num0005 avatar Jun 14 '19 21:06 num0005

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

General-101 avatar Jun 16 '19 04:06 General-101

https://pastebin.com/h6WUDFDZ

num0005 avatar Aug 16 '19 21:08 num0005