Code Monkey home page Code Monkey logo

gamesharing's People

Contributors

dwd31415 avatar gitter-badger avatar m0mus avatar oddman2017 avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gamesharing's Issues

Make Error Messages optional

Let the app developer decide, if in case a problem occours the problem shall be handled by GameSahring(e.g by be displaying a message) or be handled by app code .

Unable to quit Android app

Hey,

Thanks a lot for this. I followed your blog tutorial and I have imported the GameSharing code. I have one issue - the app never quits when I press the Exit MenuItem in my game (which calls the cocos2d::Director::getInstance()->end() method in the Director). Instead, it relaunches the app and attempts to login into Play Game Services. Previously, this would correctly quit the game.

BTW, how do I specify not to login at app launch? I want to login only when the user selects to submit a high score.

working with cocos2d-x 2.2.3

What changes do I have to make to you code to make it work with 2.2.3 as the game is already made and I dont want to convert my code :(

Authentication window not appearing

Everything about the wrapper works, except the login window doesn't trigger if no user is authenticated. On a test device, there is no visible action when opening the app with no authenticated user.

I don't believe this is due to any kind of login rejection lockout. When signing out of Game Center on the test device and following this sequence: 1) Open app in development, 2) Open other game with GC integration, 3) Open app in development, the login window appears on step 2 but not 3.

This issue occurs both with the standard fork and with the PR I initiated tonight. Any thoughts?

when user log out

GameHelper.java
public void onActivityResult(int requestCode, int responseCode,
                                 Intent intent) {
        debugLog("onActivityResult: req="
                + (requestCode == RC_RESOLVE ? "RC_RESOLVE" : String
                .valueOf(requestCode)) + ", resp="
                + GameHelperUtils.activityResponseCodeToString(responseCode));
        if (requestCode != RC_RESOLVE) {
            debugLog("onActivityResult: request code not meant for us. Ignoring.");


        // add start
            if (requestCode == RC_YOUR_UNIQUE_ID && responseCode == GamesActivityResultCodes.RESULT_RECONNECT_REQUIRED)
            { 
                onConnectionSuspended(requestCode);
            }
// add end
            return;
        }

Cocos2d-JS

Hi,
This feature is supported for Cocos2d-JS?

Exception on no network connection

On playing my game in a bad cell reception area (0 bars), game dies with this:

D/HockeyApp(30441): java.lang.NoClassDefFoundError: com.google.android.gms.R$string
D/HockeyApp(30441):     at com.google.android.gms.common.GooglePlayServicesUtil.b(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.common.GooglePlayServicesUtil.a(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.common.GooglePlayServicesUtil.getErrorDialog(Unknown Source)
D/HockeyApp(30441):     at org.cocos2dx.cpp.GameHelper.showFailureDialog(GameHelper.java:970)
D/HockeyApp(30441):     at org.cocos2dx.cpp.GameHelper.showFailureDialog(GameHelper.java:937)
D/HockeyApp(30441):     at org.cocos2dx.cpp.GameHelper.giveUp(GameHelper.java:915)
D/HockeyApp(30441):     at org.cocos2dx.cpp.GameHelper.resolveConnectionResult(GameHelper.java:884)
D/HockeyApp(30441):     at org.cocos2dx.cpp.GameHelper.onConnectionFailed(GameHelper.java:844)
D/HockeyApp(30441):     at com.google.android.gms.internal.jm.b(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.common.api.c.gJ(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.common.api.c.d(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.common.api.c$4.onConnectionFailed(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.internal.jm.b(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.internal.jl$h.b(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.internal.jl$h.g(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.internal.jl$b.hy(Unknown Source)
D/HockeyApp(30441):     at com.google.android.gms.internal.jl$a.handleMessage(Unknown Source)
D/HockeyApp(30441):     at android.os.Handler.dispatchMessage(Handler.java:102)
D/HockeyApp(30441):     at android.os.Looper.loop(Looper.java:212)
D/HockeyApp(30441):     at android.app.ActivityThread.main(ActivityThread.java:5151)
D/HockeyApp(30441):     at java.lang.reflect.Method.invokeNative(Native Method)
D/HockeyApp(30441):     at java.lang.reflect.Method.invoke(Method.java:515)
D/HockeyApp(30441):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:877)
D/HockeyApp(30441):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:693)
D/HockeyApp(30441):     at de.robv.android.xposed.XposedBridge.main(XposedBridge.java:132)
D/HockeyApp(30441):     at dalvik.system.NativeStart.main(Native Method)

Looks like line 970 in GameHelper.java is the culprit. Basically, no string matches for the errorCode.

errorDialog = GooglePlayServicesUtil.getErrorDialog(errorCode,
                        activity, RC_UNUSED, null);

Build fails on iOS

I get the an error in GameCenterHelper.mm, line:

gkController.leaderboardDelegate = appController.viewController;

Error:

GameCenterHelper.mm:41:46: Assigning to 'id<GKLeaderboardViewControllerDelegate>' from incompatible type 'RootViewController *'

I am using iOS SDK 7.1

leaderboardId function takes Int

To open a leaderboard according to the code we pass in a int for the leaderboardId, but it is a char, does the gamesharing code needs updating?

Game crashes during unlock achievements in android

The game crashes with
Fatal signal 11 (SIGSEGV) at 0x00000088 (code=1), thread 6584 (Thread-6615)
at
static public void updateAchievement(int percentage)
{
if(gpgAvailable){
Games.Achievements.unlock(((RampJump)currentContext).getGameHelper().getApiClient(), achievementIDs[currentAchievementID]);
}
}

The achievements gets unlocked but the game crashes immediately.
I am struck with this error for a long time.
Please help regarding it. Thanks in advance.

Keyboard pop's up next time after play game service login - android

hi I managed to add the code to my android project with game sharing. The first time i start the app the game play service logins and works fine. But next time i start the game the keyboard pop’s up. But if i clear cache and start the app the play game services logins again without the keyboard. Next time i start the game the keyboard pop's up.

Can you please help me to fix the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.