Test Sign

From Valve Developer Community
Jump to navigation Jump to search

The Test Sign is a tool used in Portal 2 to hint to the player what elements will be presented in the level, and the progress they have made out of the total amount of levels.


To create a test sign, first place a func_instance on the wall where you wish the sign to be. Then choose the VMF filename "instances/signs/info_sign_sp_clean.vmf". Name it "level_sign" Then place a trigger-texture before the player will run up to the sign and tie it to a trigger_once. Make the output for the trigger_once "On Trigger | level_sign | instance:info_panel_activate_rl;Trigger | none" Hammer may indicate that this is invalid, ignore it.

By default, this instance creates a sign that displays "00" and "None" for level number and level progress, with no hazard icons. Test sign data appears to be loaded based on the level name, from the file "scripts/vscripts/transitions/sp_lightboard_icons.txt".

If you make your own sp_lightboard_icons.txt, edited to include your own maps and place it within a VPK package (still following the same file structure), your signs will work. The official single player maps can be removed from your EDITED COPY, but make sure to leave the original in "scripts/vscripts/transitions/sp_lightboard_icons.txt" UNEDITED. The formatting of the sp_lightboard_icons.txt is explained within it, with comments. This method will not change the original file, but the game will use your version while running your map from the VPK.