Forum > C++ > upSL & Scoreloop SDK

upSL & Scoreloop SDK

By schere00x Posted 2012-08-24 07:00 Comments 5
schere00x
  • Posts: 16

Hi all,

I have a question about ‘Scoreloop’…

I integrate the SDK and the upSL into cocos2dx 2.0.1. Its running by the way without any errors… :) yeah! :P

But…. when I start the Scene, at first, a notification popup comes, where I can create a new user oder login, … in the background I see the TOS,
after accepting the TOS, my App/Game crashes …

ERROR:
Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason: ’~~: unrecognized selector sent to instance 0xe53b4b0’
…in main.m~~> Thread 1: signal SIGABRT …?!

I dont know how to fix :/ …

I hope, anyone of you, can help me by this problem :)

(sry for my poor english :P)

Respectfully,
schere00x

Check out my game https://itunes.apple.com/app/tiny-survivor/id660307024?mt=8 - Tiny Survivor for iOS developed using Cocsos2D-X
Facebook (please like it!): https://www.facebook.com/TinySurvivorGame

moadib
  • Posts: 99

#1 RE: 2012-08-24 07:34

You have same situation like this issue describes.

You forgot to add -ObjC flag in “Other Linker flags” which required by Scoreloop SDK.

I’ve added this to Integration Guide yesterday since there is common error in project setup.

schere00x
  • Posts: 16

#2 RE: 2012-08-24 07:57

Thank you very much, for your fast response :)

When I add this flag, … I got 13 Errors … Undefined symbols for architecture i386 . … etc

Do you have any idea? :)

Respectfully,
Chris

Check out my game https://itunes.apple.com/app/tiny-survivor/id660307024?mt=8 - Tiny Survivor for iOS developed using Cocsos2D-X
Facebook (please like it!): https://www.facebook.com/TinySurvivorGame

moadib
  • Posts: 99

#3 RE: 2012-08-24 08:17

Read carefully Scoreloop manual, you also forgot to link scoreloop library :)

schere00x
  • Posts: 16

#4 RE: 2012-08-24 08:24

I dont know why, … but I delete the -ObjC Flag … and now it works? o.O … without any crashes? … hmmm

really strange …

Check out my game https://itunes.apple.com/app/tiny-survivor/id660307024?mt=8 - Tiny Survivor for iOS developed using Cocsos2D-X
Facebook (please like it!): https://www.facebook.com/TinySurvivorGame

vishalhsoni
  • Posts: 26

#5 RE: 2012-12-04 13:20

Hello, I am facing an issue while integrating Scoreloop with Cocos2dx in Android.

Hi, I downloaded upSL-master.zip file.

In Scorloop.h file while declaring following line:

static void SubmitScore(ScoreController self, double result, double minor_result = 0.0, unsigned int level = 0, unsigned int mode = 0, std::map* context = NULL);

It shows the following errors

Multiple markers at this line

candidate is: static void Scoreloop::ScoreController::SubmitScore(Scoreloop::ScoreController**, double, double, unsigned int, unsigned int, int**)
template argument 4 is invalid
template argument 2 is invalid
template argument 3 is invalid
‘string’ is not a member of ‘std’
template argument 1 is invalid

And also in the jni_scoreloop.cpp file where this method is defined shows the following error

prototype for ‘void Scoreloop::ScoreController::SubmitScore(Scoreloop::ScoreController**, double, double, unsigned int, unsigned int,
std::mapstd::basic_string**)’ does not match any in class ‘Scoreloop::ScoreController’

what can be the problem?

Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps