How put a skin on Portal Gun?

Avatar
Jo-chan
6 Posts
Posted Apr 05, 2014
Oh.... Hello...

I can't put a skin on my Portal Gun, i trying download a pak01_dir with the skin, but give a error... There's no word in the screen, there's the Background image, Logo, but nothing about letter...

Somepony... I mean, somebody can help me?

PS. I using the Google Translate, so... Sorry if there's any wrong word

Advertisement
Registered users don't see ads! Register now!
Avatar
FelixGriffin
2,680 Posts
Posted Apr 06, 2014
Replied 14 hours later
What did you do with the pak01.vpk?
Avatar
Jo-chan
6 Posts
Posted Apr 06, 2014
Replied 1 hour later

FelixGriffin wrote:
What did you do with the pak01.vpk?

I download a file with skin, and there have the pak01_dir, but make the error then i say

Avatar
Arachnaphob
412 Posts
Posted Apr 06, 2014
Replied 55 minutes later
Did you put it in C:/program files (x86)/steam/steamapps/common/portal 2/portal2/ And then delete the original pak01_dir and replace it with the new one?
Avatar
Crawfish
56 Posts
Posted Apr 06, 2014
Replied 9 hours later
To install skins you need to create a folder named "custom" in the (x86)/steam/steamapps/common/portal 2/portal2/ directory, and then make another folder inside "custom" with any name you want.
After resolving your crash, I'd try putting the new pak01 in that folder and see if it works for you, though it seems an unconventional method of installing a skin.
As for the crash, you need to get your original pak01 back. To do that, you should probably delete the new one and let the game install the original.
Avatar
FelixGriffin
2,680 Posts
Posted Apr 07, 2014
Replied 10 hours later

Jo-chan wrote:
FelixGriffin wrote:

What did you do with the pak01.vpk?

I download a file with skin, and there have the pak01_dir, but make the error then i say

Yes, but what did you do with it? I doubt the act of downloading it crashed your game.

Avatar
Jo-chan
6 Posts
Posted Apr 07, 2014
Replied 3 hours later
Yes, i delete the original, but i make the backup before that, so the game it's ok, Discord... I mean, Crawfish, i try this but the portal gun don't change
Avatar
Crawfish
56 Posts
Posted Apr 07, 2014
Replied 1 hour later
Can you post a link to the skin you're trying to use? I'd like to take a look at how the files are put together.
Avatar
Jo-chan
6 Posts
Posted Apr 08, 2014
Replied 22 hours later

http://portal2.gamebanana.com/skins/109485

Avatar
Crawfish
56 Posts
Posted Apr 08, 2014
Replied 5 hours later
Okay, I get it now. The installation instructions on this are either outdated or completely wrong. At least, I've never seen a skin installation like this before.
What you want to do is make sure you have those folders I said to set up before (a "custom" folder (without the quotes) in SteamApps\common\Portal 2\portal2, and another folder inside that of any name).
Then simply extract the contents of _3189-.zip into that folder.
Let me know if this works.

EDIT: I just tested this myself, it didn't work, so nevermind. I'll do some fiddling. Sit tight.

Avatar
Jo-chan
6 Posts
Posted Apr 08, 2014
Replied 32 minutes later
Aaaaand... Don't work...
Well... You have any skin for Portal Gun like that? Then make the Portal Gun clear? And one it work, please
Avatar
josepezdj
2,386 Posts
Posted Apr 09, 2014
Replied 8 hours later

That on Gamebanana seems to be the old method of editing the pack01_dir.VPK file on Notepad++ to make it point to different portalgun's material files. This method could work out IF done correctly. The basic idea is to have all your portalgun files with one letter changed (in this case it's 'c_portalgun' instead of the usual 'v_portalgun' name of the viewmodel's file) into a local materials/weapons/v_models/v_portalguun folder, and to edit the pak01_dir.VPK to locate and change ALL 'v_portalgun' entries by 'c_portalgun'.

And I'm not so sure that the guy who posted those skins on Gamebanana made it correctly:

On the other hand, for God's sake, don't download and try to use anyone's pak01_dir.VPK file!! >.< If you want to use this method, just do it yourself. Edit your own pak01_dir.VPK file, and bare in mind you will lose any change after verifying your local files cache...

Take a look to Sickle's tutorial on how to reskin your portalgun.

What I personally do is to have an hexed portalgun model somewhere under my /models folder that points to my custom textures. Then I edit the weapon_portalgun.txt file (located into the portal 2/portal/scripts folder) to include the path to my model:


// Portalgun

WeaponData
{
&nbsp; &nbsp;// Weapon data is loaded by both the Game and Client DLLs.
&nbsp; &nbsp;&quot;printname&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;#Portal_Portalgun&quot;
&nbsp; &nbsp;&quot;viewmodel&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;models/weapons/v_portalgun.mdl&quot;
&nbsp; &nbsp;&quot;playermodel&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;models/weapons/w_portalgun.mdl&quot;
&nbsp; &nbsp;&quot;anim_prefix&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;portalgun&quot;
&nbsp; &nbsp;&quot;bucket&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;0&quot;
&nbsp; &nbsp;&quot;bucket_position&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;2&quot;

&nbsp; &nbsp;&quot;clip_size&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;1&quot;
&nbsp; &nbsp;&quot;primary_ammo&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;None&quot;
&nbsp; &nbsp;&quot;secondary_ammo&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;None&quot;

&nbsp; &nbsp;&quot;weight&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;4&quot;
&nbsp; &nbsp;&quot;item_flags&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;0&quot;
&nbsp; &nbsp;&quot;damage&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;9&quot;
&nbsp; &nbsp;&quot;autoswitchto&quot;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;1&quot;
&nbsp; 
&nbsp; &nbsp;// Sounds for the weapon. There is a max of 16 sounds per category (i.e. max 16 &quot;single_shot&quot; sounds)
&nbsp; &nbsp;SoundData
&nbsp; &nbsp;{
&nbsp; &nbsp;&nbsp; &nbsp;&quot;single_shot&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;Weapon_Portalgun.fire_blue&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&quot;double_shot&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;Weapon_Portalgun.fire_red&quot;

&nbsp; &nbsp;&nbsp; &nbsp;// NPC SECTION
&nbsp; &nbsp;&nbsp; &nbsp;&quot;single_shot_npc&quot;&nbsp; &nbsp;&quot;Weapon_Portalgun.fire_blue_npc&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&quot;double_shot_npc&quot;&nbsp; &nbsp;&quot;Weapon_Portalgun.fire_red_npc&quot;
&nbsp; &nbsp;}

&nbsp; &nbsp;// Weapon Sprite data is loaded by the Client DLL.
&nbsp; &nbsp;TextureData
&nbsp; &nbsp;{
&nbsp; &nbsp;&nbsp; &nbsp;&quot;weapon&quot;
&nbsp; &nbsp;&nbsp; &nbsp;{
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;font&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;WeaponIcons&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;character&quot;&nbsp; &nbsp;&quot;C&quot;
&nbsp; &nbsp;&nbsp; &nbsp;}
&nbsp; &nbsp;&nbsp; &nbsp;&quot;weapon_s&quot;
&nbsp; &nbsp;&nbsp; &nbsp;{&nbsp; &nbsp;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;font&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;WeaponIconsSelected&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;character&quot;&nbsp; &nbsp;&quot;C&quot;
&nbsp; &nbsp;&nbsp; &nbsp;}
&nbsp; &nbsp;&nbsp; &nbsp;&quot;ammo&quot;
&nbsp; &nbsp;&nbsp; &nbsp;{
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;font&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;WeaponIcons&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;character&quot;&nbsp; &nbsp;&quot;M&quot;
&nbsp; &nbsp;&nbsp; &nbsp;}
&nbsp; &nbsp;&nbsp; &nbsp;&quot;crosshair&quot;
&nbsp; &nbsp;&nbsp; &nbsp;{
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;font&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;Crosshairs&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;character&quot;&nbsp; &nbsp;&quot;.&quot;
&nbsp; &nbsp;&nbsp; &nbsp;}
&nbsp; &nbsp;&nbsp; &nbsp;&quot;autoaim&quot;
&nbsp; &nbsp;&nbsp; &nbsp;{
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;file&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;sprites/crosshairs&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;x&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;0&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;y&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;48&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;width&quot;&nbsp; &nbsp;&nbsp; &nbsp;&quot;24&quot;
&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&quot;height&quot;&nbsp; &nbsp;&quot;24&quot;
&nbsp; &nbsp;&nbsp; &nbsp;}
&nbsp; &nbsp;}
}


Avatar
Jo-chan
6 Posts
Posted Apr 09, 2014
Replied 12 hours later
Ok, i follow the tutorial... and don't work! This is never work?!?!? I try put then into a folder named portal2_dlc1 but... don't work , and i don't have any file named VPK.exe, so... I'll left the original Portal Gun.... I don't know if i don't make right, if it's the game... So.... Really thanks.

PS. if somebody have a skin file working to test, because i give up this skin...

Advertisement
Registered users don't see ads! Register now!
Avatar
greykarel
225 Posts
Posted Apr 10, 2014
Replied 20 hours later
Apparently, if you don't have VPK.exe in your .../Steam/steamapps/common/portal 2/bin folder, you don't have Portal 2 Authoring Tools installed on your PC. If you are not going to deal with hammer mapping don't bother to install it.

I attached my file for you to test. Put the folder from the archive in .../Steam/steamapps/common/portal 2. If it works give me your file and I'll pack it for you.