On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

LoopLocker login error

A topic by PNGameStudios created May 02, 2022 Views: 135 Replies: 6
Viewing posts 1 to 2

I don't know how to debug this. I don't understand it. I've added the game API to the project settings. Also the Domain key. I can't find any solution online. I need help!

using System.Collections;

using System.Collections.Generic;

using UnityEngine;

using LootLocker.Requests;

public class GameManager : MonoBehaviour

{

    void Start()

    {

        LootLockerSDKManager.StartGuestSession((response) =>

        {

            if (!response.success)

            {

                Debug.Log("error starting LootLocker session");

                return;

            }

            Debug.Log("successfully started LootLocker session");

        });

    }

}

Check the return on the console for debug. Make sure debug mode is enabled at the project settings. Show us the returning error here.

Click in that one:
Server Response: POST v2/session/guest completed in 0.0000 secs


and maybe you can get the return error. There's a success=false, something with the configs maybe.

(+1)

I fixed it and finished the game. Will upload in a bit. Thank you.

Doesn't show any red error. Only reads the debug.log from script

I figure the problem is when I go to lootlocker game settings to rotate the API, when I go to live to copy it, it copies the previous API