schere00x at August 24th, 2012 03:00 — #1
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! …
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 …
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 )
moadib at August 24th, 2012 03:34 — #2
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 at August 24th, 2012 03:57 — #3
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?
moadib at August 24th, 2012 04:17 — #4
Read carefully Scoreloop manual, you also forgot to link scoreloop library
schere00x at August 24th, 2012 04:24 — #5
I dont know why, … but I delete the -ObjC Flag … and now it works? o.O … without any crashes? … hmmm
really strange …
vishalhsoni at December 4th, 2012 08:20 — #6
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?