Portal 2

Portal 2

199 ratings
Portal 2 - Custom Portal Gun Skins
By neeeklaus
How to create a custom portal gun skin for Portal 2 (since the other guide got taken down I had to re-figure it all out)
4
   
Award
Favorite
Favorited
Unfavorite
Introduction
Why do all guides have one of these lol let's just get right into it. If you have any problems, you can leave a comment, but really just add me (since I'm back on steam from my much needed break) and I'll try to help you out. Also please look at the screenshots, because they explain really a lot. Adding me is really a last resort because there have been people that come to me with issues that were clearly explained in the text.
Step 1: Necessary Components
The components you are going to need before beginning this process are:
  • VTFEdit[valvedev.info]
  • GCFScape[valvedev.info]
  • HxD[mh-nexus.de]
  • Portal 2 Authoring Tools - Beta (In steam library dropdown menu > tools > it's gonna be there
    somewhere, see image)


    (left) before 2019 update, (right) after 2019 update
Step 2: Backup/Locating Folders
So, to begin, you need to actually find the portal gun skin itself, so go ahead and navigate to:
(C:/Program Files (x86)/Steam/steamapps/common/Portal 2/portal2)

Then, scroll down until you find a .vpk called "pak01_dir".
Open it with GCFScape.

Once you're in GCFScape, it will show a list of folders. Open the folders: materials, then inside that open, models, then weapons, then v_models, then v_portalgun.

And once you're "v_portalgun" find the '.vtf' file named "v_portalgun.vtf" NOT "v_portalgun.vmt", that's just a text file.

Optionally, you can extract pak01_dir/materials/models/weapons/w_models/w_portalgun.vtf if you want to also edit the texture of the portal gun when it isn't in your hands (i.e. on the pedistal in sp_a1_intro3).

If you guys want to edit OTHER textures BESIDES the portal gun, you can find them usually in some subfolder of materials/models - just poke around a bit. Here are some common ones I see in the comments:
  • Atlas portal gun - materials/models/weapons/v_models/v_portalgun/v_portalgun_blue.vtf
  • P-Body portal gun - materials/models/weapons/v_models/v_portalgun/v_portalgun_orange.vtf
  • Turrets - materials/models/npcs/turret/turret_01.vtf
  • Cubes - materials/models/props/metal_box.vtf
    metal_box_skin001.vtf - default companion cube
    metal_box_skin002.vtf - activated regular cube
    metal_box_skin003.vtf - default dirty regular cube
    metal_box_skin004.vtf - activated companion cube
    metal_box_skin005.vtf - activated dirty regular cube
Now extract the .vtf to wherever you want it to (Right click the file > extract, then pick a folder like Documents) and open it.
So, there are 2 things that can happen from here...
1. It gives you an error message saying "Error: File version 7.5 does not match 7.0 to 7.4"
2. It actually opens

If you did not get the error, skip step 3.
Step 3: Fixing the damn error
So basically this is your error fixing step. It's actually really easy.

First, open the corrupted "v_portalgun.vtf" with HxD, the hex editor. In the first row, go to column labeled "08".
Click IN BETWEEN the 2 numbers "05" and then type "4".
It will now show up as a red "04".
Save.Done. That's it.
Step 4: Extraction
So it's time to actually reskin this thing, so go ahead and open your "v_portalgun.vtf" from your Documents folder (once again) with VTFEdit and it should actually open this time if it didn't already. Btw if I haven't mentioned already, you should back this file up just in case, like, make a copy and name it "v_portalgun_original" or something like that.

So once you have it open in VTFEdit, btw if any messages show up, just go ahead and click "Ok", and go to the top and under File, click "Export" and save it as a .jpeg because .png can glitch out sometimes, and it also takes up less space. Now, open up the .jpg with something like paint(dot)net[www.getpaint.net] or photoshop, and then begin drawing!

Something like this (definitely legit)>>>
Step 5: Making a custom skin folder
Ok, so now that you've finished drawing your portal gun, it's time to actually put it into action. First off, go to your Portal 2 folder (C:/Program Files (x86)/Steam/steamapps/common/Portal 2).

Create a new folder in your "Portal 2" folder called "portal2_dlc3".

In that folder, create a folder called "materials", then inside that one, create one called "models", and then in that one "weapons", then "v_models", then "v_portalgun".

Next, go to your finished .jpeg portal gun file and then open it with VTFEdit. Then go to File > Save as, and it should save it as a .vtf.

Make sure to name it "v_portalgun" and drop that file into your "v_portalgun" folder under "portal2_dlc3/materials/models/weapons/v_models/v_portalgun".
Step 6: Making a .vpk/Finishing Touches
So basically, now that you have a "portal2_dlc3" folder, open a separate folder under
C:/Program Files (x86)/Steam/steamapps/common/Portal 2/bin.

Then under there, find a file named "vpk.exe" and drag the entire portal2_dlc3 folder from your C:/Program Files (x86)/Steam/steamapps/common/Portal 2 into it.

It should make a .vpk file in the original C:/Program Files (x86)/Steam/steamapps/common/Portal 2 folder. Then, drag that .vpk file that was just created into your "portal2_dlc3" folder and rename it "pak01_dir". At this point, you're pretty much done :D
Step 7: Testing/Troubleshooting
So basically, launch portal 2 and test your new skin. Sometimes when you launch it it will come up with a loading screen type thing, let it load. When all the dots at the bottom turn yellow and it doesn't go to the menu screen, force close the game and relaunch it. It should then work ;)

Conclusion
So, there you have it! I hope you enjoyed this guide and I hope this helped you achieve your goal in making a custom portal gun skin.
NOTE: This DOES work for other objects, just repeat the same process with those objects.

Anyways, thanks for following along and I hope this helped!
149 Comments
BOT Nitro 5 Aug @ 9:10am 
now my game doesnt have audio
Your_e 15 Apr @ 5:38am 
if this doesnt work you didnt do it right, i just did it today and it worked completely fine
FreeRumble 8 Nov, 2024 @ 1:30am 
RENEW IT pls
FreeRumble 3 Nov, 2024 @ 12:05am 
dosen't work
Uniman300 11 Feb, 2024 @ 12:43pm 
The game files are there, nut steam says, it's not installed, should I be worried?
Raven 1 Nov, 2023 @ 8:00pm 
@BHZKHR Sorry but that's not possible :(
Radioactive Homer 4 Oct, 2023 @ 1:19am 
works perfect:steamhappy:
soulfire 7 Aug, 2023 @ 2:46pm 
vpk.exe does not exist in Portal 2 bin
BHZKHR 29 Jul, 2023 @ 6:01am 
how do i do this without doing any funny stuff or downloading things or modifying the files?
triceratop-game 11 Jun, 2023 @ 1:42am 
instuctions too old please renew