loicteixeira / gj-unity-api

[MOVED] Game Jolt API wrapper for Unity.
https://github.com/InfectedBytes/gj-unity-api/
MIT License
16 stars 13 forks source link

Highscore Screen not showing highscore #47

Closed sebasrez closed 7 years ago

sebasrez commented 9 years ago

When I show the highscore screen using the gamejolt API it only displays the logo, close, and the table name but not the users and their scores.

capture

loicteixeira commented 9 years ago

Summing up the previous discussion on GameJolt, deleting the gameobject/scripts and reimporting it again initially solved the problem but it appeared again the next time the game was run.

loicteixeira commented 9 years ago
sebasrez commented 9 years ago
  1. Thats the name of the table not the name of the game. Sorry about that
  2. I created another table and when I click between the two to show score, the score and names appear for a second then disappear.
sebasrez commented 9 years ago

Here is my script I am using http://pastebin.com/kmedNWha

// (c) Copyright HutongGames, LLC 2010-2013. All rights reserved.

using UnityEngine;
using System.Collections;

namespace HutongGames.PlayMaker.Actions
{
    [ActionCategory("Gamejolt")]
    [Tooltip("Shows the Gamejolt Api Highscore screen.")]
    public class ShowHighscore : FsmStateAction
    {

        public override void OnEnter(){
            GameJolt.UI.Manager.Instance.ShowLeaderboards(); 
            Finish();
        }
    }
}
loicteixeira commented 9 years ago

Oh right I forgot you are using PlayMaker. I'll have a look as soon as I can but I'm not really familiar with PlayMaker so I'm not sure I'll be able to find anything before the Jam ;(

sebasrez commented 9 years ago

I figured it out. It's the Use Caching enabled that removes it. Once I disable that it works. In the latest version I think it was automatically enabled.

loicteixeira commented 9 years ago

It's good that you could make it work.

I don't understand what's going on here but that should give me some lead to investigate. Thanks for your help.

ghost commented 9 years ago

This actually happened to me the first two times I tried it.. then the third it worked fine. (I didn't do anything different, just clicked the button a few times.) After that I haven't had it happen a single time.