#Crowbar breaks the phy file

19 messages · Page 1 of 1 (latest)

patent kiln
#

Hello, I am completly new to Crowbar and I've encountered a small problem. I've decompiled the world model with default settings, edited the qc, recompiled it with default settings and the phy file got broken. When you drop the world model it acts funny and clips thorugh floor. How to fix it or prevent from happening?

zenith forum
#

hard to tell without setting the files

ripe quarry
#

For some reason, some models' physics are broken when decompiled with Crowbar. The only thing you can do is reposition the physics model in some modelling software to either line up with the actual model itself, or reposition it to where it "expects" the physics model to be. In my experience, the latter can be literally anywhere. Just keep recompiling the model and restarting the game until the physics works right.

#

HL2's Combine APC is a prime example. Decompiling that model and then recompiling it will result in a broken physics model, which has to be fixed manually with some sort of modelling program.

#

Don't ask me why this happens, because I have no earthly clue.

zenith forum
#

could it be an origin or rotation issue?
because BST expects all objects to have transforms applied

ripe quarry
#

Decompiling the Combine APC model has the physics model broken right away without any modifications. So no, it's not a BST thing.

#

You can try it right now by grabbing the Combine APC from HL2's files, decompiling it, and then recompiling it in a custom mod (or if it's easier, rename the model path and use it in GMod). The Combine APC's physics model will be off center with the actual model in-game.

zenith forum
#

but is the phys model offset when you load it in Blender

ripe quarry
#

There's also other things where the values that control the weight etc. for decompiled physics models and especially ragdolls are completely wrong compared to the source files (e.g. in the HL2 repo) and the original compiled models.

ripe quarry
#

This was a long time ago now, and I'm not in the mood to do it again right now.

zenith forum
#

I would expect more complex models like vehicles and ragdolls to have more problems

#

wheels have weird physics

ripe quarry
#

The wheels are not a part of the Combine APC's physics model.

#

The main APC model, I mean. There's a couple other models that do have physics on the wheels, but they aren't used on vehicle entities.

zenith forum
#

well wheels aside I've heard of similar phys model issues with vehicles

ripe quarry
#

I wouldn't be surprised. Crowbar's decompilation thing is handy, but it certainly has its rather annoying issues.

patent kiln
#

So far I've tried decompiling and recompiling weapon world models and it always breaks the phy file.