Creative Golf OpenAPI
Connect TestApp to Creative Golf and try sending a shot.
1. Prepare the game
In Creative Golf, select OpenAPI as the tracking device and open a practice session.
2. Connect TestApp
Open TestApp/bin/CreativeGolfOpenAPITestApp.exe and click Connect. Keep the files in TestApp/bin together.
On the same PC, keep the default Host and Port. If the game runs on another PC, enter its address in Host before connecting.
3. Send a shot
When Game ready appears, click Load normal preset, then Send shot. Try Load putt preset for a putt, or enter your own values.
You can also send club data and device status, test a custom trajectory, or view the current game state in the other panels and tabs.
Examples and API
To build your own connector, choose a source example:
C# · C++ · Python · JavaScript
Each guide explains how to run the example. See the API reference for message formats and integration details.
Troubleshooting
- Cannot connect: check that OpenAPI is selected in the game and no other client is connected.
- Game not ready: enter a playable scene and close in-game menus or dialogs.
- Shot rejected: read the red response in the log for the reason.