Sounds
First to do this you must have at least basic knowledge of hammer.
First download Pakrat: [link]
Your sound file must be the .wav format(example: sound_test.wav) now once you create it put it in:
“C:Program Files (x86)SteamsteamappscommonPortal 2portal2sound”
If hammer is running restart it and load the sound browser window and search for the file, if it doesn’t work try to make a new file in portal2sound (example: portal2soundtestfile)
if it does work, now you have to load pakrat, make sure that the sound is in “C:Program Files (x86)SteamsteamappscommonPortal 2portal2sound” and that the map file(.bsp) is in: “C:Program Files (x86)SteamsteamappscommonPortal 2sdk_contentmaps” if you don’t do this it won’t work, load pakrat and find your map file(.bsp) if its not there you need to compile your map just hit F9 in hammer.
And once you have pakrat loaded press file/preferences and set the “Game Root Directory” to “C:Program Files (x86)SteamsteamappscommonPortal 2portal2”
And once your map is loaded press “auto” and it will say “<# of files> has been found on the disk would you like to add them?” Press Ok and then press File/Save BSP, now it should be packed now run the map, now post it on the workshop and it should work.
Note: sometimes the sound won’t play when first packed, this doesn’t mean that you did anything wrong, try to post it on the workshop under hidden(if you don’t wan’t to really post it yet) now have a friend test it or load it on another computer to test it.
This does not work on some source games: Left for Dead 1/2, and any game that uses the .vpk workshop uploader.
This works on the following games: Portal 2, CSGO and any game that uses the .bsp workshop uploader just change the directory to <steam dir>Steamsteamappscommon<game name>
Textures
Texture creation:
Download VTFedit: [link]
Now find a image that you want be the texture(.img .png .jpg) now load VTFedit and press file / import or press: Ctrl+i, now find the image, and press ok on the next window now press file/save as… and save to: <steam dir>SteamsteamappscommonPortal 2portal2materials
now press tools/Create VMT File, and press Create and save to: <steam dir>SteamsteamappscommonPortal 2portal2materials, And name it the same as the first one only put .vmt at the end, if you change the name it will not work.
Texture Packing:
When you do this make sure to use the texture in the map (e.g: apply it to a wall in the map with hammer)
Place the texture(.vtf and .vmt) in: <steam dir>SteamsteamappscommonPortal 2portal2materials
And place the map file(.bsp) in: <steam dir>SteamsteamappscommonPortal 2sdk_contentmaps
And run Pakrat and do the same as sounds, but in case you can’t look up:
“load pakrat and find your map file(.bsp) if its not there you need to compile your map just hit F9 in hammer. And once you have pakrat loaded press file/preferences and set the “Game Root Directory” to “C:Program Files (x86)SteamsteamappscommonPortal 2portal2”
And once your map is loaded press “auto” and it will say “<# of files> has been found on the disk would you like to add them?” Press Ok and then press File/Save BSP, now it should be packed now run the map, now post it on the workshop and it should work.”
Now it should work, if not or you have a better way please comment and I’ll look at updating the guide.