Porting humanoids to Portal 2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Worked on page)
mNo edit summary
Line 7: Line 7:
# Download Crowbar, if you haven't already, by following the links [http://steamcommunity.com/groups/CrowbarTool here.]
# Download Crowbar, if you haven't already, by following the links [http://steamcommunity.com/groups/CrowbarTool here.]
# Open Crowbar's exe file (you may have to extract the archive first). Open the '''Decompile''' tab and under '''MDL file or folder''' browse to the .mdl of the model you are converting. Under '''Output Folder''', choose a nice clean directory to extract your files to. I recommend using the '''Full Path''' option, but it's completely up to you. Under '''Options''', make sure your options are the same as mine:  
# Open Crowbar's exe file (you may have to extract the archive first). Open the '''Decompile''' tab and under '''MDL file or folder''' browse to the .mdl of the model you are converting. Under '''Output Folder''', choose a nice clean directory to extract your files to. I recommend using the '''Full Path''' option, but it's completely up to you. Under '''Options''', make sure your options are the same as mine:  
[[File:Crowbar 2017-06-25 19-33-07.png|790px|thumbnail|center|Options for Crowbar decompile.]]


[[File:Crowbar_2017-06-25_19-33-07.png|framed|center|Options for Crowbar decompile.]]
==Porting the materials==
==Porting the materials==
placeholder text
placeholder text
==Fixing the eyes==
==Fixing the eyes==
placeholder text
placeholder text

Revision as of 19:52, 25 June 2017

File:Portal2 2017-06-25 19-42-08.png
The G-Man in Portal 2, complete with working eyes and skeletal and flex animation.

Portal 2, due to numerous and sometimes unknown bugs, will not support the direct (i.e. "drag'n'drop") porting of humans and humanoids, such as those from Half-Life 2. By porting models in this method, the humanoids will crash Hammer, HLMV, and Portal 2 itself.

Todo: Do humanoids from other games, such as CS:GO, possess these same issues?

By following this guide, you will be able to successfully port humanoid models to Portal 2.


Keeping it from crashing

  1. Extract the .mdl, .dx90.vtx, .dx80.vtx (if applicable), and .phy files from the VPK you are porting from, and place them in a handy directory.
  2. Download Crowbar, if you haven't already, by following the links here.
  3. Open Crowbar's exe file (you may have to extract the archive first). Open the Decompile tab and under MDL file or folder browse to the .mdl of the model you are converting. Under Output Folder, choose a nice clean directory to extract your files to. I recommend using the Full Path option, but it's completely up to you. Under Options, make sure your options are the same as mine:
File:Crowbar 2017-06-25 19-33-07.png
Options for Crowbar decompile.

Porting the materials

placeholder text

Fixing the eyes

placeholder text