Point survey: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (fix: clarify reason entity was removed)
m (fix: used wrong word)
Line 2: Line 2:
{{entity|point_survey|type=e0|game=Portal 2|cut=1}} The entity would display a survey on the player's screen based on a script from the folder <code>portal2/scripts/surveys/</code>, and fire an output when it is completed. The survey results were written to a CSV file in the same folder, and the game would also attempt to upload them to a mounted network drive, failing and outputting a console message if said network drive is not present. Presumably, this entity was used during Portal 2's development to get feedback from playtesters.
{{entity|point_survey|type=e0|game=Portal 2|cut=1}} The entity would display a survey on the player's screen based on a script from the folder <code>portal2/scripts/surveys/</code>, and fire an output when it is completed. The survey results were written to a CSV file in the same folder, and the game would also attempt to upload them to a mounted network drive, failing and outputting a console message if said network drive is not present. Presumably, this entity was used during Portal 2's development to get feedback from playtesters.


This entity was still present in the game at launch, but in a March 2023 update (nearly 12 years after Portal 2's release), the entity was removed to fix a security vulnerability.
This entity was still present in the game at launch, but in a March 2023 update (nearly 12 years after Portal 2's release), the entity was removed to fix a security exploit.


== Keyvalues ==
== Keyvalues ==

Revision as of 23:03, 15 July 2023

Info-red.png
This entity is not in the game by default, but got left over in the FGD.
This feature is not available anymore.

Template:Entity The entity would display a survey on the player's screen based on a script from the folder portal2/scripts/surveys/, and fire an output when it is completed. The survey results were written to a CSV file in the same folder, and the game would also attempt to upload them to a mounted network drive, failing and outputting a console message if said network drive is not present. Presumably, this entity was used during Portal 2's development to get feedback from playtesters.

This entity was still present in the game at launch, but in a March 2023 update (nearly 12 years after Portal 2's release), the entity was removed to fix a security exploit.

Keyvalues

Survey Script Name (surveyname) <string>
Name of a survey keyvalues file, from the 'scripts/surveys' folder.


Inputs

ShowSurvey
Displays the survey.


Outputs

OnSurveyComplete
Fired when the player completes or cancels the survey.