Portal 2 Guide

How to create and use your own advanced pti editor mod for Portal 2

How to create and use your own advanced pti editor mod

Overview

This is only able to be accomplished with portal 2 authoring toolsplease post any mods you make in the comments

Just to let you know it could take a few times to do this fluently

This is the hard way to let you know

There is a simpler way but I have not made a guide for it yet I will sometime if I get the chance

What you will need

Before doing this make sure you have backup files of anything changed so if you do something wrong you can fix it

1 Portal 2 authoring tools
You can find it under the tools section of your library
2 an entity made with hammer

After you have an entity

Save your entity with a name in

SteamSteamAppscommonPortal 2sdk_contentmapsinstancesp2editor

The code

you can change certain things in this code

Open up this txt SteamSteamAppscommonPortal 2portal2_dlc2scriptseditoritems.txt
copy the whole code at the very bottom before this }

“Item” { “Type” “ITEM_{your items name here}” “Editor” { “SubType” { “Name” “{Your Items name here}” “Model” { “ModelName” “switch.3ds” “TextureName” “buttonpedestal.png” } “Palette” { “Tooltip” “Your items name here” “Image” “palette/pedestal_button.png” “Position” “3 1 0” // 2. Zeile, 4. Reihe (line 2, row 4) } “Sounds” { “SOUND_CREATED” “P2Editor.PlaceOther” “SOUND_EDITING_ACTIVATE” “P2Editor.ExpandOther” “SOUND_EDITING_DEACTIVATE” “P2Editor.CollapseOther” “SOUND_DELETED” “P2Editor.RemoveOther” } } “MovementHandle” “HANDLE_4_DIRECTIONS” “InvalidSurface” “CEILING WALL” “OccupiesVoxel” “0” } “Exporting” { “Instances” { “0” { “Name” “instances/p2editor/[Your items saved hammer name here].vmf” “EntityCount” “18” “BrushCount” “16” “BrushSideCount” “96” } } } } }

Now you should be able to run portal 2 and have your instance in the editor if you did everything right

Have fun

SteamSolo.com