Please or Register to create posts and topics.

[SOLVED] Importing Half Life 2 models to Portal 2

Page 1 of 2Next

I need civilian models of Half Life 2 imported inside Portal 2, I know how to do it and all, I imported them inside the Portal 2 folder, under the folder "models/Stepper" but when I try to open a model in Half Life Model Viewer it gives me an error that says "Error importing model".

Help would be appreciated.

And you've checked that all the file paths remain the same as in HL2 for materials and related files? They must be in the same structure unless you've actively modified them to match your new path under models/Stepper
Edit: What I mean is that, unless you've edited everything, the path to the files in HL2 should match what your Portal 2 path is.

Image

Human models from HL2 will not work in Portal 2, as they used shared .ANI files for gestures and movements. I've tried all sorts of alternatives but I haven't yet found a human model (besides Chell) that works properly.

Falsi sumus crusto!
Stepper321 wrote:
... I imported them inside the Portal 2 folder, under the folder "models/Stepper" ...

Of course you get an error. You changed the model path. Either you hex the original files (paths inside the files) or you keep the original path.

FelixGriffin wrote:
Human models from HL2 will not work in Portal 2, as they used shared .ANI files for gestures and movements. I've tried all sorts of alternatives but I haven't yet found a human model (besides Chell) that works properly.

I actually have been messing around with human models in portal 2 for a while and have finally gotten one to work with valve biped animations. I used a combo of chell's head on a heavily modified male_06 model that someone else had posted on thinkingwithportals, plus that Slenderman model for bones that was from that forest of slender map. It's a really weirdly modified model, and seems to only work in some compiles of it, and any change has a risk to ruin the animations. :/

On another note, I've found a semi-efficient way to modify chell's mesh without reconstructing the missing piece of mesh from the exported SMD, and without re-animating, remodeling, or recompiling parts you want to stay the same. If you wanna talk about these findings or anything just pop me a steam message.

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!
Ultiman9711 wrote:
And you've checked that all the file paths remain the same as in HL2 for materials and related files? They must be in the same structure unless you've actively modified them to match your new path under models/Stepper
Edit: What I mean is that, unless you've edited everything, the path to the files in HL2 should match what your Portal 2 path is.

Oh, so how do I edit those..?- Oh well, I am going to use Pakrat anyway so who cares.

FelixGriffin wrote:
Human models from HL2 will not work in Portal 2, as they used shared .ANI files for gestures and movements. I've tried all sorts of alternatives but I haven't yet found a human model (besides Chell) that works properly.

I'm actually trying to just get a cropse.. will that' work?

EDIT: Okay.. so I think it works.. well, sort of. It does something it didn't do before, crash when it has to load it, both Hammer and the Model Viewer. Ha! How do I get a corpse now?!

Decompile your model using mdl decompiler. Then, open the QC file it generates and remove the $includemodel line. Save it and recompile, then put it into portal 2.

My YouTube Channel: https://www.youtube.com/user/Camben24
Aperture Science: We do our science asbestos we can!
CamBen wrote:
Decompile your model using mdl decompiler. Then, open the QC file it generates and remove the $includemodel line. Save it and recompile, then put it into portal 2.

I have no idea how to compile it, it gives me an error saying
Image
I linked it to the SteamGames on my other hard drive (where I install my games) and sdk_tools inside Portal2

OK, I'm trying to compile my models, but I have no idea how with Portal 2. Please help!

EDIT: Okay seems like it's working, but now I get
Image
How does Valve even compile this? Oh my god. What do I need to do! This is so infuriating! :notwant:

If you just need a corpse without many animations there's the QC and SMD for a prototype citizen in the Source SDK. Compile that one with the Portal 2 compiler and you should have a ragdollable model.

Falsi sumus crusto!
Page 1 of 2Next