#Crowbar breaks the phy file
19 messages · Page 1 of 1 (latest)
hard to tell without setting the files
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.
could it be an origin or rotation issue?
because BST expects all objects to have transforms applied
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.
but is the phys model offset when you load it in Blender
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.
No, it's definitely off upon decompilation.
I would know, because I lost my mind trying to mod the Combine APC for a while and I didn't understand what was going on with the physics model.
This was a long time ago now, and I'm not in the mood to do it again right now.
I would expect more complex models like vehicles and ragdolls to have more problems
wheels have weird physics
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.
well wheels aside I've heard of similar phys model issues with vehicles
I wouldn't be surprised. Crowbar's decompilation thing is handy, but it certainly has its rather annoying issues.
So far I've tried decompiling and recompiling weapon world models and it always breaks the phy file.