Unreal SDK Installation and Set Up

Installation #

The following steps outline how to install the LootLocker SDK into your Unreal project.

Installing From Github Repository #

  1. Download the latest Unreal Package release from the Github repository.

  2. Download Repository as a Zip or Clone the project.

  3. Copy the LootLockerSDK folder from the plugins folder equivalent to the Unreal Version you intend to use. For example, if you are using Unreal Version 4.26, Navigate to 4.26/Plugins to find the appropriate LootLockerSDK folder.

  4. Create a plugins folder in your Unreal project root folder if it doesnt already exist.

  5. Paste the LootLockerSDK folder into the plugins folder created.

  6. Return to the root project folder.

  7. Right-click on the “Unreal Engine Project Launch” file and click on “Generate Visual Studio Project Files”.

  8. Open the .sln file of your project.

  9. Open your project’s Build.cs file.

  10. Add {“LootLockerSDK”} to the PublicDependencyModuleNames list.

    Example: PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “LootLockerSDK” });

  11. Add {“Http”, “Json”, “JsonUtilities”} to the PrivateDependencyModuleNames list.

    Example: PrivateDependencyModuleNames.AddRange(new string[] { “Http”, “Json”, “JsonUtilities” });

  12. Setting Config

    V1.0.0 #

    1. Open the LootLockerConfig.CPP file located in the plugins folder.

    2. Modify the LootLockerGameKey, Platform, Game Version, Development mode and AllowTokenRefresh (Set to true if you want the LootLockerSDK to attempt to refresh the token if it expires).

    3. You should now have access to the SDK in both your C++ and Blueprint projects.

    V1.0.1 #

    1. Navigate to Edit/Project Settings.

    2. Scroll down on the left panel until the plugins sections of the project settings.

    3. Click on LootLockerSDK.

    4. Modify the LootLockerGameKey, Platform, Game Version, Development mode and AllowTokenRefresh (Set to true if you want the LootLockerSDK to attempt to refresh the token if it expires).

  13. You should now have access to the SDK in both your C++ and Blueprint projects.

  14. Please note that, if you ever update the plugin you might have to do steps 14 & 15 again. You can also choose to skip step 14 & 15 by opting 15 set the configuration via code.

Installing From Marketplace #

  1. In the Epic Games launcher, search for LootLocker SDK.

  2. Click on the LootLockerSDK and click “Install to Engine”.

  3. If you were previously using the plugin as a project plugin, delete the LootLockerSDK folder under “Plugins” directory in your existing Unreal project.

  4. Open your Unreal project in the Unreal Editor.

  5. Navigate to Edit/Plugins in the menu.

  6. Search for LootLockerSDK.

  7. Tick “Enabled”, the editor should prompt you to restart Unreal.

  8. Once restarted, click on File/Refresh Visual Studio Project in the menu.

  9. Click on File/Open Visual Studio.

  10. Once the solution opens in visual studio, navigate to the LootLockerSDK folder located in the Engine Plugins/Marketplace folder.

  11. Open your project’s Build.cs file.

  12. Add {“LootLockerSDK”} to the PublicDependencyModuleNames list.

    Example: PublicDependencyModuleNames.AddRange(new string[] { “Core”, “CoreUObject”, “Engine”, “InputCore”, “LootLockerSDK” });

  13. Add {“Http”, “Json”, “JsonUtilities”} to the PrivateDependencyModuleNames list.

    Example: PrivateDependencyModuleNames.AddRange(new string[] { “Http”, “Json”, “JsonUtilities” });

  14. Setting Config

    V1.0.0 #

    1. Open the LootLockerConfig.CPP file located in the plugins folder.

    2. Modify the LootLockerGameKey, Platform, Game Version, Development mode and AllowTokenRefresh (Set to true if you want the LootLockerSDK to attempt to refresh the token if it expires).

    3. You should now have access to the SDK in both your C++ and Blueprint projects.

    V1.0.1 #

    1. Navigate to Edit/Project Settings.

    2. Scroll down on the left panel until the plugins sections of the project settings.

    3. Click on LootLockerSDK.

    4. Modify the LootLockerGameKey, Platform, Game Version, Development mode and AllowTokenRefresh (Set to true if you want the LootLockerSDK to attempt to refresh the token if it expires).

  15. You should now have access to the SDK in both your C++ and Blueprint projects.

  16. Please note that, if you ever update the plugin you might have to do steps 14 & 15 again. You can also choose to skip step 14 & 15 by opting to set the configuration via code.