Notifications
Clear all

Is Demo Working?

6 Posts
2 Users
0 Reactions
791 Views
(@yuemari)
Posts: 3
Active Member
Topic starter
 

Hi there, I have just started to test combu functionality, I set the server side and now I am testing the demo scene, but when I try to save a score on a Leaderboard seems like the php function PostScore inside wsScore is failing? is there any special thing we should set on the Server side? or something?

,Thanks in Advance. Any help would be nice!

 
Posted : 20/06/2013 8:07 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

There's nothing "special" to setup the server side, besides creating the database and changing the connection settings in /lib/config.php

Are you sending integer or float as score? I tried the demo scene right now and it works here. Are you receiving an error message (you can see it in the Unity console if you check "Log Debug Info" on the CBManager gameobject)?

By the way I noticed only now that in /lib/CB_LeaderBoard.php at line 182 (exactly inside the function PostScore), I forgot to remove a debug line which writes in the log file (by default /_logs/applog.log):

AppLog::Info(count($records));

So if you didn't create the /_logs folder and set its permissions to read+write it could be the source of your issue, can you try to remove that line and retry please? I will remove it myself and reupload anyway since it's not supposed to be there.

EDIT: The package has been updated removing the above debugging line, in case you want to re-download it and try.

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 20/06/2013 8:35 pm
(@yuemari)
Posts: 3
Active Member
Topic starter
 

Ok, I´ll donwload the newest version and retry it, we are sending integer values as score.

 
Posted : 20/06/2013 11:51 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Did it fix your issue?

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 21/06/2013 11:47 am
(@yuemari)
Posts: 3
Active Member
Topic starter
 

It happens that the name of the table on the database was "CB_Leaderboard_User" and in the file CB_Leaderboard.php was this "CB_LeaderBoard_User", when we change this line everything works just fine. =P

BTW sorry! for the late response.

 
Posted : 24/06/2013 5:33 pm
(@skaredcreations)
Posts: 805
Prominent Member Admin
 

Ops, thank you for your report, I probably forgot to enable the flag lower_case_table_names on my MySQL configuration. Since it is already used by other users (they probably haven't the above flag set, else I should have received bug report from them), I will apply the change to CB_LeaderBoard_User::TABLE_NAME as you did because renaming a table name would be trickier for someone (even if it is just a 2-queries exec).

FRANCESCO CROCETTI @ SKARED CREATIONS

 
Posted : 24/06/2013 6:00 pm
Share: