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:

    [LootLockerSettings]
    ; You can get your api key from https://console.lootlocker.com/settings/api-keys
    api_key="prod_1c52468fc6e8620c955e3b6c303ea8cc"
    ; You can get your domain key from https://console.lootlocker.com/settings/api-keys
    domain_key="1g0glch3"
    ; The game version must follow a semver pattern. Read more at https://semver.org/
    game_version="1.2.1.4"

You have now configured the LootLocker SDK. In the next section you will learn how to make your first API calls.

Last updated