The full story: assets only ought to mean 'only lua, bitmaps and other files in your project, but not gideros parts nor plugins', but due to encryption at least one gideros lib is copied too: libgideros.so. Unluckily, lua lib has changed too in 2016.6, and newest libgideros.so depends on it. It would probably be OK if you manually copy 2016.6 liblua.so from Android template in gideros installation folder, but generally speaking using a newer version of gideros requires are full export the first time. And this is why manual integration of plugins is tedious, because you currently have to do it again after each full export
@hgy29 well I have the latest Gideros installed and the gaming plugin is now working with my game. Thanks!!
I changed the calls to setSteps() and setStepsImmediate() with increment() and incrementImmediate() which is what my game requires.
So while this all works now the plugin seems to be missing the ability to reveal a hidden achievement. That would be something nice to have access to in future
We can add revealAchievement call, I'll do it. But regarding setSteps vs increase, I am not sure what is the correct behaviour. We probably need both. Others: any thought ?
@hgy29, awesome! With regards to setSteps() and incremenet(), both are required for a full feature set. I suppose there are times where setSteps() would be required but I can't think of any right now.
Ok, so I've added a revealAchievement call and an incrementAchievement call, both supported for google play services only. To simplify coding, reportAchievement 'numSteps' parameter will: - set current steps toward achievement when positive - unlock the achievement when 0 - increment the achievement by (-numSteps) when negative.
incrementAchievement(steps) will do the same as calling reportAchievement(-steps), and should be used instead for incrementing.
Will these only be added to the Android version of play services or to the iOS version too?
Coder, video game industry veteran (since the '80s, ❤'s assembler), arrested - never convicted hacker (in the '90s), dad of five, he/him (if that even matters!). https://deluxepixel.com
@hgy29, any idea when the next improvements will be available? I have discovered that while my incremental achievements are working now, my non incremental ones are not working.
I suppose in the meantime I can change some code and make it into an incremental one.
@antix, we are aiming at doing a fix release before the end of the month, but we'd like to fix an issue with newest QT that makes some users unable to launch Gideros Player. We've narrowed the issue down to an OpenGL problem, probably related to this: https://blog.qt.io/blog/2014/11/27/qt-weekly-21-dynamic-opengl-implementation-loading-in-qt-5-4/ John, who has a computer exhibiting the crash, shall test a possible fix.
@hgy29, it works! I managed to unlock the achievement this morning, thanks so much!
I have attached a version of the gaming plugin that uses the folder structure of an Android Studio project. It has some modified java files that comment out the appstate stuff which doesn't work with the newest versions on Google Play Services. It does not contain the heyzap and gamecircle java files though.
Comments
Unluckily, lua lib has changed too in 2016.6, and newest libgideros.so depends on it. It would probably be OK if you manually copy 2016.6 liblua.so from Android template in gideros installation folder, but generally speaking using a newer version of gideros requires are full export the first time.
And this is why manual integration of plugins is tedious, because you currently have to do it again after each full export
Likes: antix
I changed the calls to setSteps() and setStepsImmediate() with increment() and incrementImmediate() which is what my game requires.
So while this all works now the plugin seems to be missing the ability to reveal a hidden achievement. That would be something nice to have access to in future
Likes: simwhi
Likes: antix
- set current steps toward achievement when positive
- unlock the achievement when 0
- increment the achievement by (-numSteps) when negative.
incrementAchievement(steps) will do the same as calling reportAchievement(-steps), and should be used instead for incrementing.
Anything else ? :P
Likes: antix
https://deluxepixel.com
Likes: simwhi
I suppose in the meantime I can change some code and make it into an incremental one.
John, who has a computer exhibiting the crash, shall test a possible fix.
I have attached a version of the gaming plugin that uses the folder structure of an Android Studio project. It has some modified java files that comment out the appstate stuff which doesn't work with the newest versions on Google Play Services. It does not contain the heyzap and gamecircle java files though.
Likes: hgy29
I didn't want to comment out appstate stuff without understanding what it was about. Is there a replacement in newest google play services ?