Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Gaming plugin loadScores() plugin bugs — Gideros Forum

Gaming plugin loadScores() plugin bugs

In file:GameGamekit.m file line 235 change range.location = 0; to range.location = 1;

Otherwise you get this error: Leaderboard range {0,25} must have a location >= 1 and a range <= 100

In file:GameClass.mm - On line 186 - add another ,"" in this list
Score gscores = {"", "", "", "", 0}; change to Score gscores = {"", "", "", "", "", 0};

Otherwise you get Thread 1: signal SIGABRT error.

typedef struct Score
{
std::string rank;
std::string score;
std::string name;
std::string playerId;
std::string pic;
int timestamp;
} Score;

Likes: MoKaLux

+1 -1 (+1 / -0 )Share on Facebook

Comments

  • MoKaLuxMoKaLux Member
    edited January 28
    I will try the plugin on android when I am done with the wiki for 3d (https://wiki.gideros.rocks/index.php/Libs3D), please continue sharing your findings, really appreciated 😉.
    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
  • JohnJohn Member
    edited February 1
    The following was tested but failed due to missing method error message
    Gaming:getPlayerId
    Gaming:getPlayerName
    Gaming:getPlayerPicture
    Gaming:isLoggedIn
    Gaming:loadPlayerCenteredScores
    Gaming:getPlayerScore

    The following were tested and works
    Gaming:login
    Gaming:getPlayerInfo
    Gaming:showLeaderboard
    Gaming:reportScore
    Gaming:logout - It doesn't crash and it looks like it doesn't do anything given you are still logged in
    Gaming:showAchievements
    Gaming:loadAchievements
    Gaming:reportAchievement
    Gaming:incrementAchievement

    The following were tested and had issues and the fix that I mentioned in OP resolves the issue
    Gaming:loadScores

    The following was not tested
    Gaming:autoMatch
    Gaming:deleteState
    Gaming:getAllPlayers
    Gaming:invitePlayers
    Gaming:joinRoom
    Gaming:loadState
    Gaming:resolveState
    Gaming:revealAchievement
    Gaming:sendTo
    Gaming:sendToAll
    Gaming:showInvitations
    Gaming:showWaitingRoom
    Gaming:updateState

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
  • JohnJohn Member
    I've decided to add achievements so this list will change in next couple of days and I'll edit it as soon as I try things out.

    Likes: MoKaLux

    +1 -1 (+1 / -0 )Share on Facebook
Sign In or Register to comment.