Point servercommand: Difference between revisions
Jump to navigation
Jump to search
Bug:This entity can corrupt the vmf file if used improperly. If your map crashes when you open it, this could be the problem. Open the vmf file in notepad and press Ctrl+F. Search for command and remove that line.
One way in which this entity can become corrupted is by enclosing commands that contain spaces in quotation marks. In some other contexts this is necessary to make sure the computer does not interpret a space as the end of the command, but here it will cause an immediate map crash on attempting to compile or open the map. The map can be repaired by removing the superfluous quotation marks in Notepad or with a tool such as PSPad. Attempting to open the map in Object Viewer may fail but yield a useful error message that gives the exact line of code to be edited, referred to as a "malformed expression." [todo tested in ?]
Sagesource (talk | contribs) (→Entity Description: More info on error detection and correction.) |
MossyBucket (talk | contribs) m (Made most of the text a bug, although i don't think this is specific to just this entity, as quote characters ALWAYS corrupts VMF files.) |
||
Line 5: | Line 5: | ||
An entity that issues commands to the server console. It's used by simply placing it in a map and triggering the Command input, the parameter override should be the exact console command to run. | An entity that issues commands to the server console. It's used by simply placing it in a map and triggering the Command input, the parameter override should be the exact console command to run. | ||
'''This entity can corrupt the vmf file if used improperly.''' If your map crashes when you open it, this could be the problem. Open the vmf file in notepad and press Ctrl+F. Search for command and remove that line. | {{bug|'''This entity can corrupt the vmf file if used improperly.''' If your map crashes when you open it, this could be the problem. Open the vmf file in notepad and press Ctrl+F. Search for command and remove that line. | ||
One way in which this entity can become corrupted is by enclosing commands that contain spaces in quotation marks. In some other contexts this is necessary to make sure the computer does not interpret a space as the end of the command, but here it will cause an immediate map crash on attempting to compile or open the map. The map can be repaired by removing the superfluous quotation marks in Notepad or with a tool such as PSPad. Attempting to open the map in [[Object Viewer]] may fail but yield a useful error message that gives the exact line of code to be edited, referred to as a "malformed expression." | One way in which this entity can become corrupted is by enclosing commands that contain spaces in quotation marks. In some other contexts this is necessary to make sure the computer does not interpret a space as the end of the command, but here it will cause an immediate map crash on attempting to compile or open the map. The map can be repaired by removing the superfluous quotation marks in Notepad or with a tool such as PSPad. Attempting to open the map in [[Object Viewer]] may fail but yield a useful error message that gives the exact line of code to be edited, referred to as a "malformed expression."}} | ||
==Availability== | ==Availability== |
Revision as of 05:37, 7 February 2011
Template:Wrongtitle Template:Base point
Entity Description
An entity that issues commands to the server console. It's used by simply placing it in a map and triggering the Command input, the parameter override should be the exact console command to run.

Availability
Template:In game Template:Game-base Template:In code
Keyvalues
- Name (targetname) <string>[ Edit ]
- The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g.
parentname
ortarget
).
Also displayed in Hammer's 2D views and Entity Report.See also: Generic Keyvalues, Inputs and Outputs available to all entities
Inputs
- Command <string>
- The command to execute.