Porting humanoids to Portal 2: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
m (Worked on page)
Line 1: Line 1:
[[File:Portal2 2017-06-25 19-42-08.png|thumbnail|right|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.
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.




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.
==Keeping it from crashing==
2). Download Crowbar, if you haven't already, by following the links [http://steamcommunity.com/groups/CrowbarTool here.]
# 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.
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:  
# 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:  


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

Revision as of 19:47, 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