BigKabeza's Recent Forum Activity

  • I have tried on Sansung S6. I can see the sprite just a little little bit jumping.

    In my apps I try to avoid heavy behaviors in big sprites. I say heavy because bullet have to recalculate and draw position every tick.

    Is not an option make the sprite 126x126 and resize in the layout view?

  • Wai

    Bullet behavior use delta time to move, so you dont need to adjust it on events.

    Maybe a sprite of 250x250 is too big to move at that speed. On mobile when I use bullet behavior is with small sized objects. Try to do it 128x128, if not go smaller.

  • garyh

    Here is the download link of my c3 plugins.

    AMAZING! This improve C3 a lot. Thanks

  • Bootfit

    Is good if the instersidial appear on player death but randomly. If the player knows when the intersidial is going to appear he never going to click it.

  • I can no believe it!. After more that one month trying to show ads on my app I have achieve it.

    Thanks for point me in the good direction.

    First I tryed your method, but I got a problem with the jarsigner.

    So what I did was next:

    1.Export with minify script unchecked to Unsigned Release APK with minimun version 5.0

    2.Copy the generated APK to the folder where you have installed "apksigner.bat"----> android studio>sdk<build-tools<27.0.3 (this is my last version installed, also you dont need to have installed Android Studio but you will need the build-tools, in this case apksigner.bat)

    3.Open cmd and go to this folder and execute:

    apksigner sign --ks (the name of your certificate file, it could be .jks or .keystore, both of them works in this command).jks --out (choose a name for your signed apk).apk (the current name of your apk file).apk

    You have to introduce your 2 pass and in less than 10 seconds a signed APK is generated on the same folder.

    This works for me and hope works for you. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    ---------------------------------------------------------------------------------------------------------------------------------------------------------------

    Another useful thing that I have learned today (if you have Android Studio is going to be useful):

    Sometimes when I have my APK I want to test in my device. So I upload to dropbox and from there I download to my device. But sometimes I get a message when I trying to install :"Unable to install the apk file" (even with the developer mode on in the device and deleting previus versions of the app).

    So, there is a command that makes very easy and fast to install the apk on your device:

    1.Enable developer mode on your phone

    2.Go to androidstudio<sdk<platform-tools and execute adb devices to check if your device is connected. You will get a device number here.

    3.Copy your signed apk to this folder.

    4.Execute adb -s (your device number) install (the name of your signed apk).apk

    In less than 10 secons your apk is intalled on your device. <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    If you want to try my succesful App with Ads you can click on:

    https://play.google.com/store/apps/deta ... .trapbeats

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would like to try but the build server is down. As soon as I can I will try your method.

    Really apreciate your advice. Thanks !

  • My neither

  • And at the same time this is the Logcat since the moment the debugger is settled:

    01-16 01:24:04.510 3167-3167/com.ekdu.trapbeats I/System.out: debugger has settled (1349)

    01-16 01:24:04.512 1508-1565/system_process D/EGL_emulation: eglMakeCurrent: 0xa252bb80: ver 2 0

    01-16 01:24:04.522 3167-3167/com.ekdu.trapbeats I/CordovaLog: Changing log level to DEBUG(3)

    01-16 01:24:04.522 3167-3167/com.ekdu.trapbeats I/CordovaActivity: Apache Cordova native platform version 6.3.0 is starting

    01-16 01:24:04.522 3167-3167/com.ekdu.trapbeats D/CordovaActivity: CordovaActivity.onCreate()

    01-16 01:24:04.543 3167-3167/com.ekdu.trapbeats I/WebViewFactory: Loading com.android.webview version 39 (4409265-x86) (code 300007)

    01-16 01:24:04.549 3167-3167/com.ekdu.trapbeats I/LibraryLoader: Time to load native libraries: 1 ms (timestamps 5091-5092)

    01-16 01:24:04.549 3167-3167/com.ekdu.trapbeats I/LibraryLoader: Expected native library version number "",actual native library version number ""

    01-16 01:24:04.556 3167-3167/com.ekdu.trapbeats I/LibraryLoader: Expected native library version number "",actual native library version number ""

    01-16 01:24:04.556 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0

    01-16 01:24:04.560 3167-3167/com.ekdu.trapbeats I/BrowserStartupController: Initializing chromium process, singleProcess=true

    01-16 01:24:04.560 3167-3167/com.ekdu.trapbeats W/art: Attempt to remove local handle scope entry from IRT, ignoring

    01-16 01:24:04.565 3167-3167/com.ekdu.trapbeats W/chromium: [WARNING:resource_bundle.cc(304)] locale_file_path.empty()

    01-16 01:24:04.565 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:aw_browser_main_parts.cc(65)] Load from apk succesful, fd=29 off=46184 len=3037

    01-16 01:24:04.566 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:30 off:229484 len:1089587

    01-16 01:24:04.568 3167-3190/com.ekdu.trapbeats W/AudioManagerAndroid: Requires BLUETOOTH permission

    [ 01-16 01:24:04.594 3167: 3167 D/ ]

    HostConnection::get() New Host Connection established 0xb3cf0d80, tid 3167

    [ 01-16 01:24:04.595 3167: 3167 W/ ]

    Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1

    01-16 01:24:04.605 3167-3167/com.ekdu.trapbeats D/EGL_emulation: eglCreateContext: 0xb3f70700: maj 2 min 0 rcv 2

    01-16 01:24:04.606 3167-3167/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xb3f70700: ver 2 0

    01-16 01:24:04.634 3167-3167/com.ekdu.trapbeats W/chromium: [WARNING:data_reduction_proxy_settings.cc(331)] SPDY proxy OFF at startup

    01-16 01:24:04.641 3167-3167/com.ekdu.trapbeats W/art: Attempt to remove local handle scope entry from IRT, ignoring

    01-16 01:24:04.643 3167-3167/com.ekdu.trapbeats W/AwContents: onDetachedFromWindow called when already detached. Ignoring

    01-16 01:24:04.657 3167-3167/com.ekdu.trapbeats D/SystemWebViewEngine: CordovaWebView is running on device made by: unknown

    01-16 01:24:04.661 3167-3167/com.ekdu.trapbeats W/art: Attempt to remove local handle scope entry from IRT, ignoring

    01-16 01:24:04.661 3167-3167/com.ekdu.trapbeats W/art: Attempt to remove local handle scope entry from IRT, ignoring

    01-16 01:24:04.661 3167-3167/com.ekdu.trapbeats D/PluginManager: init()

    01-16 01:24:04.664 3167-3167/com.ekdu.trapbeats D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)

    01-16 01:24:04.670 3167-3167/com.ekdu.trapbeats D/CordovaActivity: Started the activity.

    01-16 01:24:04.670 3167-3167/com.ekdu.trapbeats D/CordovaActivity: Resumed the activity.

    01-16 01:24:04.672 3167-3209/com.ekdu.trapbeats D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

    01-16 01:24:04.674 3167-3167/com.ekdu.trapbeats D/Atlas: Validating map...

    01-16 01:24:04.709 3167-3209/com.ekdu.trapbeats I/OpenGLRenderer: Initialized EGL, version 1.4

    [ 01-16 01:24:04.709 3167: 3209 D/ ]

    HostConnection::get() New Host Connection established 0xa24d6420, tid 3209

    [ 01-16 01:24:04.709 3167: 3209 W/ ]

    Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1

    01-16 01:24:04.711 3167-3209/com.ekdu.trapbeats W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...

    01-16 01:24:04.712 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglCreateContext: 0xa242e940: maj 2 min 0 rcv 2

    01-16 01:24:04.721 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.723 3167-3209/com.ekdu.trapbeats D/OpenGLRenderer: Enabling debug mode 0

    01-16 01:24:04.736 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.756 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.788 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.814 1508-1532/system_process E/WindowManager: Performed 6 layouts in a row. Skipping

    01-16 01:24:04.815 3167-3167/com.ekdu.trapbeats D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)

    01-16 01:24:04.816 1790-1790/com.google.android.googlequicksearchbox W/IInputConnectionWrapper: showStatusIcon on inactive InputConnection

    01-16 01:24:04.826 1508-1532/system_process I/ActivityManager: Displayed com.ekdu.trapbeats/.MainActivity: +3s484ms

    01-16 01:24:04.841 1141-1560/? D/gralloc_ranchu: gralloc_alloc: Creating ashmem region of size 12582912

    01-16 01:24:04.928 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:04.941 1508-1532/system_process I/WindowManager: Screen frozen for +3s540ms due to Window{11161ef5 u0 com.ekdu.trapbeats/com.ekdu.trapbeats.MainActivity}

    01-16 01:24:05.048 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.049 3167-3167/com.ekdu.trapbeats D/JsMessageQueue: Set native->JS mode to EvalBridgeMode

    01-16 01:24:05.138 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.155 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.156 3167-3167/com.ekdu.trapbeats D/SystemWebChromeClient: file:///android_asset/www/c2runtime.js: Line 21962 : Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.

    01-16 01:24:05.157 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:CONSOLE(21962)] "Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.", source: file:///android_asset/www/c2runtime.js (21962)

    01-16 01:24:05.177 3167-3167/com.ekdu.trapbeats D/SystemWebChromeClient: file:///android_asset/www/start.js: Line 7 : Uncaught TypeError: undefined is not a function

    01-16 01:24:05.177 3167-3167/com.ekdu.trapbeats I/chromium: [INFO:CONSOLE(7)] "Uncaught TypeError: undefined is not a function", source: file:///android_asset/www/start.js (7)

    01-16 01:24:05.178 3167-3167/com.ekdu.trapbeats D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)

    01-16 01:24:05.216 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.230 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:05.911 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.017 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.109 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.161 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.226 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.293 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.383 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:06.458 3167-3209/com.ekdu.trapbeats D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    01-16 01:24:07.012 1508-1532/system_process I/art: Explicit concurrent mark sweep GC freed 27433(1407KB) AllocSpace objects, 9(190KB) LOS objects, 32% free, 8MB/12MB, paused 1.468ms total 62.637ms

    01-16 01:25:00.029 1613-2057/com.android.systemui D/EGL_emulation: eglMakeCurrent: 0xa3452220: ver 2 0

    01-16 01:30:01.025 3222-3222/? E/libprocessgroup: failed to make and chown /acct/uid_10022: Read-only file system

    01-16 01:30:01.025 3222-3222/? W/Zygote: createProcessGroup failed, kernel missing CONFIG_CGROUP_CPUACCT?

    01-16 01:30:01.027 1508-1527/system_process I/ActivityManager: Start proc 3222:com.android.deskclock/u0a22 for broadcast com.android.deskclock/com.android.alarmclock.DigitalAppWidgetProvider

    01-16 01:30:01.099 1508-1931/system_process I/ActivityManager: Killing 2163:com.google.android.apps.maps/u0a36 (adj 15): empty #17

    01-16 01:30:01.100 1508-1931/system_process W/libprocessgroup: failed to open /acct/uid_10036/pid_2163/cgroup.procs: No such file or directory

  • If I open the Android Studio Emulator with the debug mode this is what console says: (the emulator gives me black screen as well)

    01/16 02:23:59: Launching Mobile Advert Test.android.project (2)

    No apk changes detected since last installation, skipping installation of F:\c3\Mobile Advert Test.android.project (2)\build\outputs\apk\Mobile Advert Test.android.project (2)-debug.apk

    $ adb shell am force-stop com.ekdu.trapbeats

    $ adb shell am start -n "com.ekdu.trapbeats/com.ekdu.trapbeats.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D

    Waiting for application to come online: com.ekdu.trapbeats | com.ekdu.trapbeats.test

    Waiting for application to come online: com.ekdu.trapbeats | com.ekdu.trapbeats.test

    Connecting to com.ekdu.trapbeats

    Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page.

    W/ActivityThread: Application com.ekdu.trapbeats is waiting for the debugger on port 8100...

    I/System.out: Sending WAIT chunk

    I/art: Debugger is active

    I/System.out: Debugger has connected

    I/System.out: waiting for debugger to settle...

    Connected to the target VM, address: 'localhost:8610', transport: 'socket'

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: waiting for debugger to settle...

    I/System.out: debugger has settled (1349)

    I/CordovaLog: Changing log level to DEBUG(3)

    I/CordovaActivity: Apache Cordova native platform version 6.3.0 is starting

    D/CordovaActivity: CordovaActivity.onCreate()

    I/WebViewFactory: Loading com.android.webview version 39 (4409265-x86) (code 300007)

    I/LibraryLoader: Time to load native libraries: 1 ms (timestamps 5091-5092)

    I/LibraryLoader: Expected native library version number "",actual native library version number ""

    V/WebViewChromiumFactoryProvider: Binding Chromium to main looper Looper (main, tid 1) {8dedac1}

    I/LibraryLoader: Expected native library version number "",actual native library version number ""

    I/chromium: [INFO:library_loader_hooks.cc(104)] Chromium logging enabled: level = 0, default verbosity = 0

    I/BrowserStartupController: Initializing chromium process, singleProcess=true

    W/art: Attempt to remove local handle scope entry from IRT, ignoring

    W/chromium: [WARNING:resource_bundle.cc(304)] locale_file_path.empty()

    I/chromium: [INFO:aw_browser_main_parts.cc(65)] Load from apk succesful, fd=29 off=46184 len=3037

    I/chromium: [INFO:aw_browser_main_parts.cc(78)] Loading webviewchromium.pak from, fd:30 off:229484 len:1089587

    W/AudioManagerAndroid: Requires BLUETOOTH permission

    [ 01-16 01:24:04.594 3167: 3167 D/ ]

    HostConnection::get() New Host Connection established 0xb3cf0d80, tid 3167

    [ 01-16 01:24:04.595 3167: 3167 W/ ]

    Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1

    D/EGL_emulation: eglCreateContext: 0xb3f70700: maj 2 min 0 rcv 2

    D/EGL_emulation: eglMakeCurrent: 0xb3f70700: ver 2 0

    W/chromium: [WARNING:data_reduction_proxy_settings.cc(331)] SPDY proxy OFF at startup

    W/art: Attempt to remove local handle scope entry from IRT, ignoring

    W/AwContents: onDetachedFromWindow called when already detached. Ignoring

    D/SystemWebViewEngine: CordovaWebView is running on device made by: unknown

    W/art: Attempt to remove local handle scope entry from IRT, ignoring

    W/art: Attempt to remove local handle scope entry from IRT, ignoring

    D/PluginManager: init()

    D/CordovaWebViewImpl: >>> loadUrl(file:///android_asset/www/index.html)

    D/CordovaActivity: Started the activity.

    D/CordovaActivity: Resumed the activity.

    D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true

    D/Atlas: Validating map...

    I/OpenGLRenderer: Initialized EGL, version 1.4

    [ 01-16 01:24:04.709 3167: 3209 D/ ]

    HostConnection::get() New Host Connection established 0xa24d6420, tid 3209

    [ 01-16 01:24:04.709 3167: 3209 W/ ]

    Unrecognized GLES max version string in extensions: ANDROID_EMU_CHECKSUM_HELPER_v1

    W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...

    D/EGL_emulation: eglCreateContext: 0xa242e940: maj 2 min 0 rcv 2

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/OpenGLRenderer: Enabling debug mode 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/CordovaWebViewImpl: onPageDidNavigate(file:///android_asset/www/index.html)

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/JsMessageQueue: Set native->JS mode to EvalBridgeMode

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/SystemWebChromeClient: file:///android_asset/www/c2runtime.js: Line 21962 : Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.

    I/chromium: [INFO:CONSOLE(21962)] "Uncaught SyntaxError: In strict mode code, functions can only be declared at top level or immediately within another function.", source: file:///android_asset/www/c2runtime.js (21962)

    D/SystemWebChromeClient: file:///android_asset/www/start.js: Line 7 : Uncaught TypeError: undefined is not a function

    I/chromium: [INFO:CONSOLE(7)] "Uncaught TypeError: undefined is not a function", source: file:///android_asset/www/start.js (7)

    D/CordovaWebViewImpl: onPageFinished(file:///android_asset/www/index.html)

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

    D/EGL_emulation: eglMakeCurrent: 0xa242e940: ver 2 0

  • Ok. I have made this very simple capx. with the MobileAdvert object, I have exported to Android Studio to check again and I get a black screen as usual.

    When I export I use my app id and app id unit, but I have delete it to share this capx.

    https://www.dropbox.com/s/v0dq6h6si04rfnv/Mobile%20Advert%20Test.c3p?dl=0

    This is how my event looks:

    Once exported to Android Studio the only thing I do is:

    I go to "File<Project Structure<Project" and I change the gradle version from 4.1 to 2.14.1 to avoid the error, because in the build.gradle appears like this. After I generate a signed APK and is generated successfully with no errors.

    I install on my device and black screen.

    If I do the exactly same process without the mobileAdvert object the APK runs ok.

  • Use "set playback rate" inside the audio object

  • I trying to show ads on C3 since a while ago but always I include Mobile Advert object in the project I get a black screen. Without the mobile advert the apk works fine whichever it be the method to export.

    I have tried differnt options:

    -Export to Android Studio from c3. Black screen

    -Export to Cordova from c3 and build locally with cmd. Black screen

    -Export to debug from c3 also gives me black screen.

    Ashley

BigKabeza's avatar

BigKabeza

Member since 21 Apr, 2015

None one is following BigKabeza yet!

Connect with BigKabeza

Trophy Case

  • 9-Year Club
  • Forum Contributor Made 100 posts in the forums
  • Popular Game One of your games has over 1,000 players
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

14/44
How to earn trophies