In this guide we will be creating the most basic of Assets, a Generic Asset and implementing it in a game. You can find other guides that explain how to create other types of Assets in the Working with Assets section in the How-to guides of the LootLocker documentation.
An Asset is an item of property that can be connected to a player - something a player can earn, purchase, or possess. At its core, an Asset is an empty shell looking to be assigned a Context and populated with relevant data or information. Before assigning a Context to an Asset, Contexts must be created with Complexities and any other relevant information. This can be done in the Asset Settings menu.
Learn more about Assets in the link below.
Before you create your first Asset, you will want to configure Asset Contexts, so that LootLocker know what and how you plan on using the Assets in your game.
An Asset Context is a way to group and describe Assets. All Assets must be assigned an Asset Context when being created. Defining the Context of an Asset lets your game know what type of Asset it is, and lets LootLocker know what sort of information or logic will be stored in the Asset and any special relationships it should have, for example with Character Classes and Default Loadouts.
The Context Configuration menu can be found in the Game Settings menu by clicking the
Settings icon on the left bar of the Management Interface.
Click on the
Context Configuration tab at the top of the Game Settings menu. You should be taken to a menu that looks like this.
To create a new Context, click the
Add Context button. As we want to create a Generic Asset, select
Generic Assets (Simplified) from the Complexity dropdown menu.
Next we will want to fill in the rest of the information about the Context. A detailed explanation about each of the Context options can be found here.
Friendly Name: (can leave this blank if the Friendly Name is the same as the Name)
Detachable?: Yes (so that this Context can be unequipped by the player, in case they do not want to wear a hat)
User Facing?: Yes
Depends On: Independent (No Asset)
Save Contexts to save this Context. It should now look like this:
Now lets navigate to the Asset Manager to create our first Asset. The Asset Manager can be accessed by clicking the
Content button of the side bar and selecting
To create an Asset, click the
Add Asset button in the top right corner of the Asset Manager. Fill in an Asset Name and select the
Hat Context from the drop down menu. Click
Create to create the Asset.
Once the Asset has been created, you will be taken to the Asset's page where you can see all of it's stored information and data. It should look like this:
In this tutorial we will ignore most of the fields as they are not required. We will, however, attach an image to this Asset that can be sent to the game and used as an icon in-game. To do this, click on the
Filters & Storage tab in the Asset menu.
Next, either drag the image file you'd like to use for the Asset's icon into the box under the
Files header, or click on the box to open a dialog.
The final step is to activate the Asset so that it is sent to the game and players can access the Asset. To do this, click the
Activate button on the right side of the Asset menu. Clicking Activate will automatically Activate and save any changes you have made to the Asset.
All of the work we've done so far has been in the Stage Environment of LootLocker - where you can make changes to Assets and settings and easily test those changes before sending them to the Live Environment for your players to see in their game. While we usually suggest testing all changes against the Stage Environment first, for the purpose of this tutorial we will push the new Asset to the Live Environment and test it there.
To push the Asset to the Live Environment, click the
Review Changes button in the side bar of the Management Console.
This will take you to the Differences screen where you can see all the differences between the Stage and Live Environments of your data in LootLocker. To calculate these differences you will need to switch to the Live Environment by clicking the
Switch to Live button on this screen. This will automatically switch you to the Live Environment and calculate the differences between the two states. You will be taken to a screen that looks like this:
Since we want to push both the new Asset and the new Context information we will tick the boxes next to both entries and then select
Push Selected to Live. In the confirmation modal that appears, click
Merge to merge the changes into the Live Environment.