Game with the name ... does not exist.

0 votes

Hi, i want to implement app42 leaderboard api to my game, but i have a problem:

I have created a flash builder project, and then i've implemented app42 api.

then in my main class i've wrote:

_serviceAPI = new ServiceAPI("...","...");

var gameName:String = "BuyFromMe";    
var userName:String = "Arman";  
 
//var sBoard:ScoreBoardService = new ScoreBoardService(
var sBoard:ScoreBoardService = _serviceAPI.buildScoreBoardService();
var cb:MyCallBack = new MyCallBack();
cb.container = this;
sBoard.saveUserScore(gameName,userName,1,cb);
 
it says:
Exception is : Error: {"app42Fault":{"httpErrorCode":404,"appErrorCode":3002,"message":"Not Found","details":"Game with the name 'BuyFromMe' does not exist."}}
 
what should i do now? :( 
 
asked Aug 13, 2015 in App42 Cloud API-BaaS by Arman BM (26 points)

1 Answer

+1 vote
 
Best answer

Hi Arman,

You have to create game first before calling saveUserScore. Game can be created from AppHQ console as well as through createGame API of GameService. For more details please go through our Leaderboard tutorial.

Let me know if problem continues.

Thanks.

answered Aug 13, 2015 by rajeev.etc (1,660 points)
selected Aug 13, 2015 by Arman BM
Hi Rajeev.Etc.
tanks a lot for your fast reply.
sorry i've forgot to say i've created the game in app42 pannel.
the problem is still exist
Can you try saving score from AppHQ Console to check if this working in your case? To save score from Dashboard login to AppHQ-> Selct Gaming -> Leaderboard -> Click on Add User Score option. Let me know if it is working in your case.
OH MY GOD.
I was Creating Apps not Game!
Tanks for your help, it is working now.♥
Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...