A Godot plugin for collecting playtest telemetry and submitting it to a server.
Screen.Recording.2023-06-13.at.09.05.00.mp4
NOTE: this plugin is designed only for playtesting, not production.
-
Copy the PlaytestTelemetry directory into your
addons
folder. -
Under Project -> Project Settings -> Plugins, enable the PlaytestTelemetry plugin.
-
Under Project -> Project Settings -> General, enable "Advanced settings", search for "Playtest Telemetry", and enter the URL and API key for your telemetry server. Make sure to specify a version number too. It's important to distinguish each version of your game that you send out to playtesters.
-
When you want to record a property, add something like this to your code:
func _ready(): PlaytestTelemetry.record_properties(self, ["global_transform", "health"])
To record an event do this:
PlaytestTelemetry.record_event(self, "weapon_fired")
-
Anywhere in your code where you are currently doing this:
get_tree().quit()
You need to change it to this:
get_tree().get_root().propagate_notification(NOTIFICATION_WM_CLOSE_REQUEST)
-
Under Project -> Export..., in the Features tab of each preset, add
telemetry
to the Custom features field. -
Export your game and run it, then open up the domain name of your telemetry server in a web browser, and enjoy!