Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/modding/overview/launchoptions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ of launch options, please see
| -nogamemount | Do not mount any games/mods specified in the gameinfo mounts block or mounts.kv |
| -nousermount | Do not mount any games/mods specified in the mounts.kv |
| -nocustommount | Do not mount any folders specified in gameinfo which contain wildcards (\* or ?), usually "custom" folders |
| -legacyui | Launches the game with the old VGUI GameUI |
| -legacyui | Launches the game with the old unsupported VGUI GameUI |
| -dev | Developer mode |
| -multirun/-allowmultiple | Disables the creation of the source engine mutex, and allows the game to start even if one already exists |
| -dedicated | Launches the game as a dedicated server |
Expand Down
9 changes: 4 additions & 5 deletions docs/modding/overview/p2ce-mod-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: P2:CE Mod Template
---

# P2:CE Mod Template
The P2:CE Mod Template is a basic skeleton that can be used to create mods building upon the Portal 2: Community Edition feature set. It has one sample campaign with a single test chamber that can be played through to completion.
The P2:CE Mod Template is a basic skeleton that can be used to create mods building upon the Portal 2: Community Edition feature set. It has one sample campaign with a single test chamber that can be played through to completion.
You can find its contents at https://github.com/StrataSource/p2ce-mod-template

![Mod Template Main Menu](images/mod_template_main_menu.png)
Expand Down Expand Up @@ -55,19 +55,19 @@ Launching your mod can also be done programmatically via the P2:CE executable. P
To launch on Windows:

```sh
"X:\path\to\steam_library\SteamApps\common\Portal 2 Community Edition\bin\win64\p2ce.exe" -game "X:\path\to\mod"
"..\..\common\Portal 2 Community Edition\bin\win64\p2ce.exe" -game "%cd%"
```

To launch on Linux:
```sh
"path/to/steam_library/SteamApps/common/Portal 2 Community Edition/p2ce.sh" -game "path/to/mod"
"../../common/Portal 2 Community Edition/p2ce.sh" -game "$PWD"
```

## Contents
The template includes a few files and folders that you can use for easy customization of P2:CE. This section will go over the most important ones, or ones that are different from a typical sourcemod.

### `gameinfo.txt`
This file contains information about your mod and tells Steam which game it's based off of. The only thing you need to edit is the `game` property that sets the name. If you need to mount content from other games, you can specify this in the `mounts` block.
This file contains information about your mod and tells Steam which game it's based off of. The only thing you need to edit is the `game` property that sets the name. If you need to mount content from other games, you can specify this in the `mounts` block.

### `cfg` folder
`cfg` contains important configuration files for your mod.
Expand All @@ -85,4 +85,3 @@ This folder contains resource files, configurations, and notably, your mod's ico

### `scripts` folder
The `scripts` folder contains some useful configurations for UI elements as well as VScripts.