CocoonIO - Help, Ressources & free capx examples

Discussion of tools and resources for game developers

Post » Sun Jul 23, 2017 6:34 am

jobel wrote:
AndreasR wrote:@jobel
You also can add your certificate to cocoonio. Then the cloud compiler signs and aligns your file automatically.
See this link, please.

https://shatter-box.com/knowledgebase/c ... rtificates

It makes it a way better ;)

Good luck to your games!

Regards
Andy


thanks! what about building for iOS.. does shatterbox help with that? I don't know much about deploying to iOS except that you need provision files? and a paid developer account?


Sure,
it's all covered up at shatter-box.com
See here: https://shatter-box.com/knowledgebase/p ... tunes-ios/

If you miss anything specific, just let me know and I add it to the tutorial.

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
103
S
37
G
31
Posts: 1,164
Reputation: 28,928

Post » Sun Jul 23, 2017 4:38 pm



haha... that's crazy! man, the iOS folks do not make it easy!
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Wed Aug 23, 2017 2:43 pm

Compiled my game for Android the game works pretty good, except for a little slow-down at the beginning. I am using the physics behavior, so I can live with it.

My only major problem is the sound effects. After playing the game for a while (30 mins) sounds are missing, and then some sounds get stuck repeating over and over like the skipping record player. It's very strange.

Here are my Cocoon.io settings
Cordova Android v6.2.3
WebviewEngine: Webview+

Installed Plugins:
cordova-plugon-crosswalk-webview
ludei.webviewplus.ios
ludei.webviewplus.android


Does this look right? I guess I don't need the ios one in there, but I can't imagine that is causing this problem.

Any ideas? thanks!
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Fri Aug 25, 2017 3:12 pm

I've tried compiling with:

Canvas+ (get a black screen)
Webview+ (seems to work okay, but got some weird audio errors while testing)
Webview (seems to work okay - haven't fully tested it)

what is the difference between Webview and Webview+?
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Fri Aug 25, 2017 6:41 pm

okay I think I figured out exactly how muted sounds happen. If I just leave the game and let the phone "go to sleep" when you wake it up, all sounds in memory are muted. Music folder sounds play fine.

So it looks like the memory is getting flushed when the phone goes idle. And when you wake up the game those sfx are silent (or probably no longer in memory).

This happens with Webview and Webview+

If I had a way to trigger, "Got Focus" or something the triggers when the player switches to it, I could probably reload the audio I think. But I can't figure a way to do that. CocoonIO doesn't seem to work using Browser and the Cocoon objects have nothing like that.

Someone must have run into this problem... Any ideas?
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Sat Aug 26, 2017 5:57 am

What cocoon version have you set? Latest?
If so, please try "2.2.0-beta" (just for testing, not for a live version)

Regards
Andy
Image Image iTunes: Match3 | Google Play: Match3
B
103
S
37
G
31
Posts: 1,164
Reputation: 28,928

Post » Fri Sep 08, 2017 5:03 pm

AndreasR wrote:What cocoon version have you set? Latest?
If so, please try "2.2.0-beta" (just for testing, not for a live version)

Regards
Andy


figured it out from another thread.. it's a work around where you play a silent audio clip every second. I have no idea why it works, but it does..
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Sat Sep 09, 2017 5:12 am

so frustrated. The CocoonIO website is very annoying. Sometimes the Project Settings get reset when you drop in a new Zipfile. I'm not sure how I got it to work before - I don't remember the settings, but now the game will not compile. I've been trying for 2 days. This is a terrible workflow.

COMPILER ERROR:

/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':transformClassesWithDexForArmv7Debug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Post » Sun Sep 10, 2017 4:32 pm

jobel wrote:so frustrated. The CocoonIO website is very annoying. Sometimes the Project Settings get reset when you drop in a new Zipfile. I'm not sure how I got it to work before - I don't remember the settings, but now the game will not compile. I've been trying for 2 days. This is a terrible workflow.

COMPILER ERROR:

/workspace/platforms/android/gradlew: Command failed with exit code 1 Error output:
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':transformClassesWithDexForArmv7Debug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536


The settings get only reseted if you forget to delete the "config.xml" file coming from C2. That's not an issue from cocoon.
I'm running a cocoon support forum (and I'm also moderator at the cocoon forum), please if you have any issues with cocoon, post it here.
https://shatter-box.com/forums/forum/9-cocoonio/

Thank you!
Image Image iTunes: Match3 | Google Play: Match3
B
103
S
37
G
31
Posts: 1,164
Reputation: 28,928

Post » Wed Sep 13, 2017 9:48 pm

yes that is what happened, I forgot to delete the config.xml.. very annoying!

Workflow:
  1. Export from C2>Cordova
  2. Open export folder in WinRAR
  3. delete config.xml
  4. zip folder contents (make sure to use WinRAR because regular zip/compress will NOT work)
  5. login to CocoonIO
  6. drag/drop zip file
  7. click "compile" on CocoonIO
  8. when compilation complete it emails you
  9. click on Android symbol in CocoonIO to download apk zipfile
  10. unzip to local desktop
  11. move debug apk to DropBox folder
  12. remove previous version of the app from your phone/device
  13. navigate to DropBox on phone/device
  14. tap apk to install & run

very cumbersome.

and forget the Plugins.. it's completely a crap shoot. Sometimes you get varying results depending on the order! Also, even though I don't compile for iOS, somehow the ad-system needs that plugin to work?? no idea, but it's totally a process of elimination.

I originally had it working and I blew away my Settings by accident (by leaving the config.xml) and it took me over a week to get it running again.
B
100
S
33
G
16
Posts: 1,204
Reputation: 16,865

Previous

Return to Tools and Resources

Who is online

Users browsing this forum: No registered users and 2 guests