Links

Install & Configure the SDK

Download the SDK

The LootLocker Unreal SDK provides an easy way to integrate LootLocker into your Unreal Engine project. The SDK can be downloaded through the Unreal Marketplace or directly from the LootLocker Github repository:
We currently support Unreal Engine minimum version of 4.24. Please contact us if you require support for a lower version of Unreal Engine.
The next step is to install and configure the SDK in your project.

Install the SDK

Installing the LootLocker SDK in your project is very straightforward and flexible with different ways to set it up depending on engine version and personal preferences. Once you have downloaded the SDK, follow these steps to install the LootLocker SDK into your Unreal Engine project.

Install from Unreal Marketplace

In the Epic Games Launcher, search for LootLocker SDK, click on the LootLockerSDK and click Install to Engine.
If you were previously using the plugin as a project plugin, delete the LootLockerSDK folder under Plugins directory in your existing Unreal project.
Open your Unreal project in the Unreal Editor, navigate to Edit/Plugins in the menu and search for LootLockerSDK.
Tick Enabled, and the editor should prompt you to restart Unreal.
Once restarted, click on File->Refresh Visual Studio Project in the menu.
If you don't see "Refresh Visual Studio Project" in the File menu, click File->New C++ Class, select None, click Next, click Create Class, when compilation has finished you should see Refresh Visual Studio Project in the File menu.
Click on File->Open Visual Studio.
Once the solution opens in Visual Studio, navigate to your projects Build.cs file located in; Games ->”ProjectName” -> Source -> “ProjectName” -> Source -> ProjectName.Build.cs
Add {“LootLockerSDK”} to the PublicDependencyModuleNames list (see example below).
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “LootLockerSDK” });
Add {“Http”, “Json”, “JsonUtilities”} to the PrivateDependencyModuleNames list (see example below).
PrivateDependencyModuleNames.AddRange(new string[] { “Http”, “Json”, “JsonUtilities” });
Continue to the next step of the tutorial to configure the SDK in your project.

Install from Github Repository

To start, copy the LootLockerSDK folder to the Plugins folder in the Unreal Engine version you intend to use. For example, if you are using Unreal version 4.26, navigate to 4.26/Plugins and paste the LootLockerSDK folder there. If the */Plugins folder does not already exist, create one and paste the LootLockerSDK inside of it.
Return to the root project folder and right-click on the Unreal Engine Project Launch file and click on Generate Visual Studio Project Files.
Open the .sln file of your project and open your project’s Build.cs file.
Add {“LootLockerSDK”} to the PublicDependencyModuleNames list (see example below).
PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “LootLockerSDK” });
Add {“Http”, “Json”, “JsonUtilities”} to the PrivateDependencyModuleNames list (see example below).
PrivateDependencyModuleNames.AddRange(new string[] { “Http”, “Json”, “JsonUtilities” });
Continue to the next step of the tutorial to configure the SDK in your project.

Configure the SDK

It’s time to connect the SDK in your project to the LootLocker Management Console. Depending on the game engine or the SDK version, there might be different ways to achieve this, so make sure you read everything before getting started.
Now that you have installed the SDK into your Unreal project, you will want to connect the Unreal project to your game in the LootLocker Management Console. The following steps walk you through configuring the LootLocker Unreal Engine 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 console.lootlocker.com or follow this guide.
If you have an old version of the SDK, you can configure the SDK through C++ or Blueprint. In later versions of the SDK (V1.0.1 and later) you must configure the SDK in the Project Settings Plugins menu.

Configure the SDK in Game Settings

Login to the LootLocker Management Console by visiting console.lootlocker.com and navigate to the Game Settings menu in order to copy the API Key.
In Unreal Engine, navigate to Edit/Project Settings and scroll down the left panel until you reach the Plugins section of the Project Settings.
Click on LootLockerSDK.
Modify the following information:
  • API Key is found in Game Settings in the LootLocker Management Console.
  • Game Version refers to the current version of the game in the format 1.2.3.4 (the 3 and 4 being optional but recommended).
  • Platform is the name of the platform the game will be built for (e.g Steam, PSN, Android, iOS).
  • On Development Mode lets you test your unpublished changes in the LootLocker Management Console Development environment (instead of Live).
  • Allow Token Refresh can be selected so that the SDK automatically attempts to refresh the session token if it expires. Otherwise the session token needs to be renewed manually.
If you update the plugin in the future you might need to repeat some of these steps.
You should now have access to the SDK in both your C++ and Blueprint projects. In the next section you will make your first API calls.