{"id":1183,"date":"2013-06-24T19:27:35","date_gmt":"2013-06-25T01:27:35","guid":{"rendered":"http:\/\/djangodurango.com\/?p=1183"},"modified":"2022-12-13T01:44:15","modified_gmt":"2022-12-13T07:44:15","slug":"importing-team-fortress-2-item-models-into-blender","status":"publish","type":"post","link":"https:\/\/djangodurango.com\/?p=1183","title":{"rendered":"Importing Team Fortress 2 Item Models into Blender"},"content":{"rendered":"<p>So maybe you, like me, are interested in making an item for<em> Team Fortress 2<\/em>. And maybe you&#8217;re new to modelling so you want to look at TF2 models in, say, Blender (though this will get you far enough if you&#8217;re using something else). With the new <a href=\"https:\/\/developer.valvesoftware.com\/wiki\/SteamPipe\">SteamPipe<\/a> content distribution system, though, shit&#8217;s all hidden and confusing now &#8217;cause they converted all the .gcf files into .vpk&#8217;s. Even if you&#8217;ve extracted stuff from TF2 before, maybe you&#8217;re having a hard time now. All the tutorials for how to do this are outdated and I can&#8217;t be the only dumbass who couldn&#8217;t figure this out in two minutes, so I am gonna put this here for anyone who needs it.<\/p>\n<p><!--more--><strong>Step 1<\/strong>: If you haven&#8217;t done so already, install the Source SDK. Part of SteamPipe&#8217;s intention was to obsolesce the SDK launcher and instead, your TF2 development tools are going to be beta versions found in C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Team Fortress 2\\bin, but you still need the SDK installed to decompile later. Hover over the Library tab, select Tools from the drop down menu, and install the Source SDK. Once it&#8217;s installed, run it once. It will take a while to copy some files. If it doesn&#8217;t, tell it to Refresh SDK Content. Once it&#8217;s done, close it.<\/p>\n<p><strong>Step 2<\/strong>: Go to Nem&#8217;s Tools and download <a href=\"http:\/\/nemesis.thewavelength.net\/index.php?p=26\">GCFScrape<\/a>. Even if you already have GCFScrape, go there and get the newest version. I had 1.8.2 and it wasn&#8217;t current enough even when the one out at the time of this writing was only 1.8.4. That .2 makes a difference. Once it&#8217;s downloaded, install it.<\/p>\n<p><strong>Step 3<\/strong>: Run it, and click the open folder. Navigate to C:\\Program Files (x86)\\Steam\\SteamApps\\common\\Team Fortress 2\\tf and open:<\/p>\n<p>tf2_misc_dir.vpk if you&#8217;re looking for models<br \/>\ntf2_sound_misc_dir.vpk if you want sound effects<br \/>\ntf2_sound_vo_english_dir for voice clips<br \/>\ntf2_textures_dir for textures, I guess? It would seem the textures are separate of the models.<\/p>\n<p>You always want to pick the files with the _dir in them. I let you figure out how to manage that other crap &#8217;cause we&#8217;re talking about models here.<\/p>\n<p><strong>Step 4<\/strong>: Find the stuff you want, which I think you can manage on your own. When you find a thing you want, right-click all the files with the same filename (you can select multiple objects by holding down the Ctrl key as you click them) and select &#8220;Extract&#8221;. It&#8217;ll ask you where you want it and I strongly advise you to make a folder for it to keep all the files together.<\/p>\n<p><strong>Step 5<\/strong>: Next go to this <a href=\"https:\/\/developer.valvesoftware.com\/wiki\/Mdldecompiler\">Valve Developer Community page<\/a> and download Hooch&#8217;s fixed version of the file at the bottom. Unzip it. Put the .exe in C:\\Program Files (x86)\\Steam\\SteamApps\\common\\SourceSDK\\bin\\ep1\\bin. Run it. If it gives you an error about MFC71.DLL, unzip the mfc71.rar file that was in the same folder as the .exe and drop the file enclosed in C:Program Files (x86)SteamSteamAppscommonSourceSDKbinep1bin too. Go ahead and make a shortcut to the .exe on your desktop too, that&#8217;ll save you a lot of hassle.<\/p>\n<p><strong>Step 6<\/strong>: Run MDLDecompiler and navigate to the folder you extracted your files from GCFScrape to. Pick a model and open its folder. Select the .mdl file. Then make a folder for your decompiled model and select it as your output location.<\/p>\n<p><strong>Step 7<\/strong>: I&#8217;m going to assume you have Blender installed already and it&#8217;s updated and not that antiquated shit they&#8217;re talking about on this <a href=\"https:\/\/developer.valvesoftware.com\/wiki\/Blender_SMD_Tools\">VDC page<\/a>. Download the .zip file but don&#8217;t extract it. If you have the ye olde Blender, follow their installation directions. If not, proceed here.<\/p>\n<p><strong>Step 8<\/strong>: Open Blender and go to File > User Preferences > Addons. At the bottom, click &#8220;Install From File&#8221;. Navigate to and select the .zip file you downloaded with the Blender Source Tools in it and click &#8220;Install from File&#8221;. It will install the entire .zip file. Then, in the Categories menu to the left in that window, select &#8220;User&#8221;. Find the Import-Export SMD\/DMX Tools addon and check the box next to the picture of the stick figure flailing around. Now, go to the bottom of that window and click the Save User Settings button. That&#8217;ll make it so you don&#8217;t have to check that box every time you open Blender and want to saucemodel.<\/p>\n<p><strong>Step 9<\/strong>: Now when you go to File and look at the Import and Export menus, you&#8217;ll have options for a number of Source Engine file formats. Like .smd! Which is exactly what you want to import now. Go to File > Import > Source Engine and it&#8217;ll open a file browser. Navigate to the output file you selected when you were decompiling and there should be an .smd file in there. Select it.<\/p>\n<p>Your TF2 model should now be there, textureless, ready to be edited. <\/p>\n<p>The world is now your oyster!<\/p>\n<blockquote><p>I hope this tutorial helps you out, but if it doesn&#8217;t, please feel free to ask questions in the comments. I am not an expert in Blender or Source, so I can&#8217;t always help you with that, but a lot of times issues with following these directions have to do with updates to any and all of these tools. It helps immensely to have problems like that brought to my attention so I can keep this tutorial current with the tools used in it.<\/p>\n<p>However! <a href=\"http:\/\/demonfox38.tumblr.com\/\">demonfox38<\/a> is working on an MVM map over at <a href=\"http:\/\/dfbuilds.tumblr.com\/\">dfbuilds<\/a> and they have already and will continue to post a lot of information about both Hammer and Blender that may be of interest and use to you if you have questions about what to do with this stuff once you&#8217;ve got it.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>So maybe you, like me, are interested in making an item for Team Fortress 2. And maybe you&#8217;re new to modelling so you want to look at TF2 models in, say, Blender (though this will get you far enough if you&#8217;re using something else). With the new SteamPipe content distribution system, though, shit&#8217;s all hidden and confusing now &#8217;cause they converted all the .gcf files into .vpk&#8217;s. Even if you&#8217;ve extracted stuff from TF2 before, maybe you&#8217;re having a hard time now. All the tutorials for how to do this are outdated and I can&#8217;t be the only dumbass who couldn&#8217;t figure this out in two minutes, so I am gonna put this here for anyone who needs it.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[194,196],"tags":[],"class_list":["post-1183","post","type-post","status-publish","format-standard","hentry","category-tutorials","category-team-fortress"],"_links":{"self":[{"href":"https:\/\/djangodurango.com\/index.php?rest_route=\/wp\/v2\/posts\/1183","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/djangodurango.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/djangodurango.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/djangodurango.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/djangodurango.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1183"}],"version-history":[{"count":6,"href":"https:\/\/djangodurango.com\/index.php?rest_route=\/wp\/v2\/posts\/1183\/revisions"}],"predecessor-version":[{"id":2950,"href":"https:\/\/djangodurango.com\/index.php?rest_route=\/wp\/v2\/posts\/1183\/revisions\/2950"}],"wp:attachment":[{"href":"https:\/\/djangodurango.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1183"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/djangodurango.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1183"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/djangodurango.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1183"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}