Releasing A Portal 2 Map: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (moved Releasing A Portal2 Map to Releasing A Portal 2 Map: "Portal 2" is two words.)
m (Setting bug notice hidetested=1 param on page where the bug might not need tested in param specified)
 
(27 intermediate revisions by 22 users not shown)
Line 1: Line 1:
Now that you have made your brilliant map you need a way to get this out to the public.
{{languageBar|Releasing A Portal 2 Map}}
If your map happens to have custom content such as sounds, scripts and materials the best way to release it is putting it inside
{{cleanup}}
a .VPK. This zips all your content up into a single file which makes it easy to distribute.
{{bug|hidetested=1|[[Left 4 Dead]]-style addons do not work in Portal 2 if DLC folders or the <code>update</code> folder are present. This effectively makes them unusable as a way to distribute addons, as the average user will not have their install modified to remove these. Consider [[Portal 2 vote page|releasing your map on the workshop]] instead or using DLC folder overrides.}}
 
Now that you have made your brilliant map you need a way to get this out to the public. If your map happens to have custom content such as sounds, scripts and materials the best way to release it is putting it inside a [[VPK]]. This collects all of your content into a single file and makes it easy to distribute.


== Creating the VPK ==  
== Creating the VPK ==  


1. Create a folder and label it with your addon name.
# Create a folder and label it with your addon name.
 
# This folder should now mimic the structure of the '<code>Portal 2\portal2\</code>' folder.
2. This folder should now mimic the structure of the 'Portal 2\portal2\' folder.
# Start with adding a folder called <code>maps</code> and add in your compiled .BSP.
 
# If you have any scripts be sure it lies in the same relative folder inside <code>scripts\vscripts</code>.
3. Start with adding a folder called 'maps' and add in your finished .BSP.
# The same applies for <code>sounds</code> and <code>materials</code>.
 
# Inside '<code>Portal 2\bin\</code>' there is an executable called '<code>vpk.exe</code>'. Drag your folder you created in step 1 onto this executable.
4. If you have any scripts be sure it lies in the same relative folder inside "scripts\vscripts".
# You will now have a .[[VPK]] file in the same folder with the same name.
 
{{tip|As an added convenience, a folder can also be dragged onto a shortcut of '<code>vpk.exe</code>' (provided in Portal 2) in any location.}}
5. The same applies for sounds and materials.
 
6. Inside 'Portal 2\bin\' there is an executable called 'vpk.exe'. Drag your folder you created in step 1 onto this executable.


7. You will now have a .vpk file in the same folder with the same name.
{{tip|Because of the bug you can also rename the vmf file pak0#_dir.vpk (make sure you don't use the number 1 for valve is already using it) and put it in the common\portal2\portal2 folder or any of the portal2_dlc folders.}}


== Installing the VPK ==
== Installing the VPK ==
{{Note|If you have the Sixense MotionPack DLC, you will most likely have to create the folder in '<code>Portal 2\portal2_sixense.</code>'}}
# Create a folder in '<code>Portal 2\portal2\</code>' called <code>addons</code>.
# Place your .VPK file inside the <code>addons</code> folder.
# If Portal 2 was running during step 2, type the following in the console: <code>update_addon_paths</code>. Otherwise, skip to the next step.
# To load a single player map, type in the console: <code>map ''mymap''</code> and replace ''mymap'' with the name of your map.
# To load a Co-op map, start a Co-op game with your friend, once you enter the hub type in console: <code>changelevel ''mymap''</code> replace ''mymap'' with the name of your map.


1. Create a folder in 'Portal 2\portal2\' called 'addons'.
==Useful Websites==
 
You can upload your map in many websites. Here are some of them:
2. Place your .vpk file inside the addons folder.
 
3a. If Portal 2 was not running during step 2, load portal 2 and head to step 4.


3b. If Portal 2 was running during step 2, type the following in the console: 'update_addon_paths'.
*http://www.thinking.withportals.com
*http://www.map-factory.org (Down)
*http://www.portal2maps.net (Broken)
*http://www.moddb.com/games/portal-2
*http://steamcommunity.com/app/620/workshop/
{{Note|The last Website is for PeTI maps}}


4. To load a single player map, type in the console: 'map mymap' replace mymap with the name of your map.


5. To load a Co-op map, start a Co-op game with your friend, once you enter the hub type in console: 'changelevel mymap' replace mymap with the name of your map.


== See Also ==
You can also Upload them to file-sharing websites like Rapidshare or Mediafire.
Left 4 dead 2 uses the same technique for it's addons.


http://developer.valvesoftware.com/wiki/L4D2_Campaign_Add-on_Tutorial
== See also ==
* [[L4D2 Campaign Add-on Tutorial]]


http://www.youtube.com/watch?v=tDAF_ZOQx1U - How to make custom VPK.
== External links ==
* [http://www.youtube.com/watch?v=tDAF_ZOQx1U How to make custom VPK]
* [http://www.l4dmaps.com/install-maps.php Installing and playing custom maps / campaigns]


http://www.l4dmaps.com/install-maps.php
[[Category:Portal 2 Level Design]]

Latest revision as of 07:15, 20 May 2025

English (en)Deutsch (de)Polski (pl)Русский (ru)中文 (zh)Translate (Translate)
Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.
Icon-Bug.pngBug:Left 4 Dead-style addons do not work in Portal 2 if DLC folders or the update folder are present. This effectively makes them unusable as a way to distribute addons, as the average user will not have their install modified to remove these. Consider releasing your map on the workshop instead or using DLC folder overrides.

Now that you have made your brilliant map you need a way to get this out to the public. If your map happens to have custom content such as sounds, scripts and materials the best way to release it is putting it inside a VPK. This collects all of your content into a single file and makes it easy to distribute.

Creating the VPK

  1. Create a folder and label it with your addon name.
  2. This folder should now mimic the structure of the 'Portal 2\portal2\' folder.
  3. Start with adding a folder called maps and add in your compiled .BSP.
  4. If you have any scripts be sure it lies in the same relative folder inside scripts\vscripts.
  5. The same applies for sounds and materials.
  6. Inside 'Portal 2\bin\' there is an executable called 'vpk.exe'. Drag your folder you created in step 1 onto this executable.
  7. You will now have a .VPK file in the same folder with the same name.
Tip.pngTip:As an added convenience, a folder can also be dragged onto a shortcut of 'vpk.exe' (provided in Portal 2) in any location.
Tip.pngTip:Because of the bug you can also rename the vmf file pak0#_dir.vpk (make sure you don't use the number 1 for valve is already using it) and put it in the common\portal2\portal2 folder or any of the portal2_dlc folders.

Installing the VPK

Note.pngNote:If you have the Sixense MotionPack DLC, you will most likely have to create the folder in 'Portal 2\portal2_sixense.'
  1. Create a folder in 'Portal 2\portal2\' called addons.
  2. Place your .VPK file inside the addons folder.
  3. If Portal 2 was running during step 2, type the following in the console: update_addon_paths. Otherwise, skip to the next step.
  4. To load a single player map, type in the console: map mymap and replace mymap with the name of your map.
  5. To load a Co-op map, start a Co-op game with your friend, once you enter the hub type in console: changelevel mymap replace mymap with the name of your map.

Useful Websites

You can upload your map in many websites. Here are some of them:

Note.pngNote:The last Website is for PeTI maps


You can also Upload them to file-sharing websites like Rapidshare or Mediafire.

See also

External links