twg's Forum Posts

  • [quote:2hvn8s1c]Strange. Maybe a bug with one of the newer C3 updates. I had no problem with it when I first tested my game (Which was end of december) I don't know but I can test it in the next days because I plan on finishing my beta this week so I would do a build on the weekend.

    This is what I've been using: 720x1280, Margins 0x0, Unbounded Scrolling, Scale outer, Viewport fit: cover

    I also haven't changed any of the settings on xCode.

    The issue is with the C3 build server not using the latest version of Cordova-ios.

    https://github.com/Scirra/Construct-3-bugs/issues/1279

  • [quote:2a04flyy]Yeah the whole screen was filled for me. Can you upload a c3 file so I can have look at it to compare it with my files?

    It's doing this with a blank project, with no events. Just set a bg color, and set project properties to 1280x720, scale outer, viewport=cover.

    Are you using the default CDVLaunchScreen.storyboard and are you changing any of the settings on the view constraints?

  • > Bump. No one has tried exporting and running a C3 game on iPhone X yet?

    >

    I'm also testing my game on the iPhone X simulator right now. I'm using Portrait only with 720x1280 and scale outer and also cover mode. The only thing I did different is that i'm not using a LaunchImage but rather I'm using the Storyboard. Here is how you can use it: https://oleb.net/blog/2014/08/replacing ... oryboards/

    But other than your game it worked pretty good.

    Is your game filling the entire iPhone X screen? I get the same result with launchimages and storyboards, I have tried changing the constraints on the storyboard and using the safe area and still get the same result as well.

  • Bump. No one has tried exporting and running a C3 game on iPhone X yet?

  • I added some boxes that are set at the viewport edges on all sides to try and see what is happening.

    Without a launch image added

    With 2436x1125 LaunchImage

    Not sure what is causing the whole viewport to get shifted to the left, it's just a blank layout without events. I'm thinking this is a C3 issue because the LaunchImage I set takes up the whole iPhoneX viewport but when the game loads the viewport is shifted off the left of the screen.

    Anyone that has got there project to display correctly on iPhone X I would appreciated any input, thanks.

  • I'm having trouble getting a project to display correctly on iPhone X. I have Fullscreen mode set to "Scale outer" and Viewport fit set to "Cover" and the game is a 16:9 aspect ratio. When I export to Xcode and load the project on my phone it looks like this.

    I get the 2 black bars

    So I added an iPhone X LaunchImage(Portrait 2436 x 1125) into xCode

    Now there is one black bar on just the right side

    Not sure what I'm doing wrong here, any help would be appreciated, thanks.

  • Updated to r76.2 and I can't import audio anymore, with existing projects or new projects. I open up the import sounds dialog, I've tried both dragging files and the file picker. I select the mp3 file I want to import, it shows that the encoding has been completed but the Import button stays grayed out and says encoding audio when hovered over. I'm getting this issue in the latest versions of Chrome, Edge and Firefox on PC and Safari on mac, anybody else having this problem??

  • PM'd.

  • A relaxing puzzle game about numbers on floating islands. Swap any two blocks on the island, keep swapping until you

    unscramble the number on the island.

    DIFFERENT ENVIRONMENTS

    4 different environments spanning over 50 levels.

    SIMPLE CONTROLS

    Tap any block, then tap another block to swap locations.

    RELAXING MUSIC

    Relaxing, meditative soundtrack.

    EXOTIC PLANT LIFE

    Rare plant life native to these islands, never before seen on Earth.

    FLOATING ISLANDS

    There are islands, and they are floating, there is nothing holding them up, it's like magic.

    Trailer:

    Appstore: https://itunes.apple.com/us/app/number-islands/id1271987947?ls=1&mt=8

    GooglePlay: https://play.google.com/store/apps/details?id=com.thebdrive.numberislands&hl=en

    Amazon: https://www.amazon.com/dp/B076LCSLXZ/ref=sr_1_1?s=mobile-apps&ie=UTF8&qid=1508515560&sr=1-1&keywords=number+islands

    Itch: https://thebdrive.itch.io/number-islands

  • twg What is the differences between Canvas+ and Webview or Webview+? In which situation I should use which? I had tried Canvas+ but I got no luck.

    Webview: https://docs.cocoon.io/article/system-webview-engine/

    Webview+: https://docs.cocoon.io/article/webview-engine/

    Canvas+: https://docs.cocoon.io/article/canvas-engine/

    Honestly performance for games I've made has been absolutely horrible with Webview, I've been able to get a constant 60FPS even on really low end devices with Canvas+ and have never had a problem getting it to work.

  • I just finished a mobile game with ads & IAP recently with C2, it was compiled with Cocoon.io Canvas+ for iOS and Android, it was pretty straight forward, no more work than putting an ad sdk in past Unity or GM:S games I have made. I used the Verstala Heyzap plugin found here , I am currently using Admob, UnityAds, Vungle and Heyzap video and reward ads in the game. The plugin is extremely easy to use, comes with good documentation for set up also.

    I ran into a few hiccups getting compiler errors but literally 99% of the time it was because I messed up with the config.xml in Cocoon. A few tips for things I did that made everything work.

    1. When exporting from C2 make sure Minify script if unchecked and PNG recompression is set to "None"

    2. When zipping your C2 project for upload to Cocoon do not include the config.xml file or the intelxdk.config.additions.xml file in the zip, I manually add the plugins myself in Cocoon.

    3. Set Multidex enabled to "Yes" for Android builds.

    4. Make sure every plugin you are using in C2 is also included in the Cocoon.xml file.

    5. Make sure any plugins you are getting from Github have the ".git" appended to the end of the URL in the Cocoon config.xml file(See example configs below).

    6. Check in Cocoon under Installed plugins and make sure Cocoon didn't add any of the "Whitelist" plugins to your project, I got a black screen everytime one of these plugins where included.

    Example iOS config.xml with Verstala Hepzap plugin, Cranberry Game Center leaderboards, EddyVerbruggen Social Sharing Plugin and Cocoon IAP plugin.

    <?xml version="1.0" encoding="UTF-8"?>
    	<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cocoon="http://cocoon.io/ns/1.0" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="YOUR_BUNDLE_ID" version="0.75">
    		<name>YOUR_GAME_NAME</name>
    		<description>YOUR_GAME_DESCRIPTION</description>
    		<author email="YOUR_EMAIL" href="http://www.YOURWEBSITE.com">YOUR_COMPANY</author>
    		<content src="index.html"/>
    		<access origin="*"/>
    		<allow-intent href="http://*/*"/>
    		<allow-intent href="https://*/*"/>
    		<allow-intent href="tel:*"/>
    		<allow-intent href="sms:*"/>
    		<allow-intent href="mailto:*"/>
    		<allow-intent href="geo:*"/>
    		<preference name="Orientation" value="portrait"/>
    		<preference name="Fullscreen" value="true"/>
    		<preference name="target-device" value="universal"/>
    		<platform name="android">
    			<allow-intent href="market:*"/>
    			<preference name="enabled" value="false"/>
    		</platform>
    		<platform name="ios">
    			<allow-intent href="itms:*"/>
    			<allow-intent href="itms-apps:*"/>
    			<preference name="enabled" value="true"/>
    		</platform>
    		<plugin name="com.ludei.canvasplus.ios" spec="*"/>
    		<plugin name="https://github.com/Verstala2016/heyzap1.1.8.git" spec="https://github.com/Verstala2016/heyzap1.1.8.git"/>
    		<plugin name="cocoon-plugin-ads-ios-admob" spec="*"/>
    		<plugin name="https://github.com/Verstala2016/heyzap-cordova-applovin.git" spec="https://github.com/Verstala2016/heyzap-cordova-applovin.git"/>
    		<plugin name="https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git" spec="https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git"/>
    		<plugin name="https://github.com/Verstala2016/heyzap-cordova-unityads.git" spec="https://github.com/Verstala2016/heyzap-cordova-unityads.git"/>
    		<plugin name="https://github.com/Verstala2016/heyzap-cordova-vungle.git" spec="https://github.com/Verstala2016/heyzap-cordova-vungle.git"/>
    		<plugin name="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git" spec="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git">
    			<variable name="CALENDAR_USAGE_DESCRIPTION" value="This app uses your calendar"/>
    		</plugin>
    		<plugin name="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git" source="npm" spec="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git"/>
    		<plugin name="https://github.com/cranberrygame/cordova-plugin-game.git" source="npm" spec="https://github.com/cranberrygame/cordova-plugin-game.git"/>
    		<plugin name="cordova-plugin-inappbrowser" source="npm"/>
    		<plugin name="com.ludei.canvasplus.android" spec="*"/>
    		<plugin name="cocoon-plugin-inapps-ios-appstore" spec="*"/>
    	</widget>
    [/code:2n8kg8d3]
    
    Example Android config.xml with Verstala Hepzap plugin, Cocoon Googleplay Services, and EddyVerbruggen Social Sharing Plugin and Install Location plugin.
    [code:2n8kg8d3]<?xml version="1.0" encoding="UTF-8"?>
    	<widget xmlns="http://www.w3.org/ns/widgets" xmlns:cocoon="http://cocoon.io/ns/1.0" xmlns:cdv="http://cordova.apache.org/ns/1.0" id="YOUR_BUNDLE_ID" version="0.86">
    		<name>YOUR_GAME_NAME</name>
    		<description>YOUR_GAME_DESCRIPTION</description>
    		<author email="nYOUR_EMAIL" href="http://YOURWEBSITE.com">YOUR_COMPANY</author>
    		<content src="index.html"/>
    		<access origin="*"/>
    		<allow-intent href="http://*/*"/>
    		<allow-intent href="https://*/*"/>
    		<allow-intent href="tel:*"/>
    		<allow-intent href="sms:*"/>
    		<allow-intent href="mailto:*"/>
    		<allow-intent href="geo:*"/>
    		<preference name="Orientation" value="portrait"/>
    		<preference name="Fullscreen" value="true"/>
    		<preference name="target-device" value="universal"/>
    		<platform name="android">
    			<allow-intent href="market:*"/>
    			<preference name="enabled" value="true"/>
    		</platform>
    		<platform name="ios">
    			<allow-intent href="itms:*"/>
    			<allow-intent href="itms-apps:*"/>
    			<preference name="enabled" value="false"/>
    		</platform>
    		<plugin name="com.ludei.canvasplus.ios" spec="*"/>
    		<plugin name="https://github.com/Verstala2016/heyzap1.1.8.git" spec="https://github.com/Verstala2016/heyzap1.1.8.git"/>
    		<plugin name="https://github.com/Verstala2016/heyzap-cordova-applovin.git" spec="https://github.com/Verstala2016/heyzap-cordova-applovin.git"/>
    		<plugin name="https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git" spec="https://github.com/cranberrygame/cordova-plugin-ad-chartboost.git"/>
    		<plugin name="https://github.com/Verstala2016/heyzap-cordova-unityads.git" spec="https://github.com/Verstala2016/heyzap-cordova-unityads.git"/>
    		<plugin name="https://github.com/Verstala2016/heyzap-cordova-vungle.git" spec="https://github.com/Verstala2016/heyzap-cordova-vungle.git"/>
    		<plugin name="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git" spec="https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin.git">
    			<variable name="CALENDAR_USAGE_DESCRIPTION" value="This app uses your calendar"/>
    		</plugin>
    		<plugin name="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git" source="npm" spec="https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin.git"/>
    		<plugin name="cordova-plugin-inappbrowser" source="npm"/>
    		<plugin name="com.ludei.canvasplus.android" spec="*"/>
    		<plugin name="cocoon-plugin-application-android" spec="*"/>
    		<plugin name="com.ludei.installlocation.android"/>
    		<preference name="android-installLocation" value="auto"/>
    		<plugin name="cocoon-plugin-social-android-googleplaygames" spec="*">
    			<variable name="APP_ID" value="YOUR_GOOGLEPLAY_SERVICES_ID"/>
    		</plugin>
    	</widget>
    [/code:2n8kg8d3]
    
    If you have did all of those things you should not be getting compiler errors, if you do it's because your plugins and config.xml aren't set up correctly. If you are getting it to compile and getting a blackscreen, I suggest compiling a developer app with Cocoon, installing it on your test device and checking the Log in the developer app to see where you are getting an error. I ran into a problem where everything worked fine on iOS but was getting a blackscreen on Android, after compiling a developer app and looking at the Log I found the problem was the Cranberry Game plugin used for leaderboards wasn't working on Android but was working on iOS, so I switched to the Cocoon Googleplay plugin and everything worked fine.
    
    Cheers.
  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • >

    > >

    > >

    > > Hi,

    > > just go to your cocoon project settings -> android -> Set multidex enabled to Yes.

    > >

    > > Regards

    > > Andy

    > >

    >

    > I get the same error with Multidex set to yes or no. Only way I get it to go away is deleting the plugin, maybe I should try the Cocoon Google plugin instead? Just kinda weird cause Cranberry game is working fine on my iOS builds with Game Center.

    >

    Yes try the Cocoon Plugin. I always use those plugins and they are working fine for me.

    iOS works diffrent then Android in account of the plugin SDK.

    Regards

    Andy

    Thanks Andy, I guess the Cranberry game plugin isn't working right now with Android, I added the Cocoon Google Play plugin and everything is working fine now.

  • Hi,

    just go to your cocoon project settings -> android -> Set multidex enabled to Yes.

    Regards

    Andy

    I get the same error with Multidex set to yes or no. Only way I get it to go away is deleting the plugin, maybe I should try the Cocoon Google plugin instead? Just kinda weird cause Cranberry game is working fine on my iOS builds with Game Center.

  • Having problems with the Cordova Game plugin when compiling with Cocoon. My compiles work fine building for iOS but when I build for Android I'm getting this

    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.

    Note: /workspace/platforms/android/src/com/ludei/injector/android/InjectorPlugin.java uses unchecked or unsafe operations.

    Note: Recompile with -Xlint:unchecked 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.DexException: Multiple dex files define Lcom/google/android/gms/internal/zzabs;

    Any ideas cranberrygame ?

  • Hey guys my game Lectro 2 is out now.

    Trailer:

    Google Play: https://play.google.com/store/apps/details?id=com.nothingordouble.lectro2&hl=en

    App Store: https://itunes.apple.com/us/app/lectro-2/id1243607575?ls=1&mt=8

    Description: One tap controls move you from one ball to the next. Collect powerups that speed you up, slow you down or clear the entire screen for maximum points. Will you aim for bigger ball that is easier to hit, or aim for the smaller ball that is worth more points?