Configure the SDK
Now that you have installed the SDK into your Godot project, you need to connect the Godot project to your game in the LootLocker Management Console. The following steps walk you through configuring the LootLocker Godot SDK to work with a game that has already been created in the LootLocker Management Console. If you haven’t created a game or account yet, please visit our account creation page.
Configure via LootLockerSettings.cfg
Log on to the LootLocker management console and find your Game Settings.
Find your Game Key in the API section of the settings
Open or create the file
res://LootLockerSettings.cfg
. The file follows the ini format and must have the following settings:First, the header
[LootLockerSettings]
Then
api_key="<your api key from console.lootlocker.com>"
Then
domain_key="<your domain key from console.lootlocker.com>"
And finally
game_version="<a semver representation of the current game version>"
Once you've done this, you will have a file that looks something like this:
You have now configured the LootLocker SDK. In the next section you will learn how to make your first API calls.
Last updated