SamRock's Recent Forum Activity

  • Here is my quick fix!

    Download and replace the Audio plugin I uploaded. Worked 100% for me.

  • Here is my quick fix!

    Download and replace the Audio plugin I uploaded. Worked 100% for me.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Here is my quick fix!

    Download and replace the Audio plugin I uploaded. Worked 100% for me.

  • UPDATE: Scirra has now released an update that fixes the below mentioned problem. Head to the Download section and grab the new version <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    Thank you Scirra for always looking after us!

    Original post:

    ** NOTE: THIS IS A TEMPORARY FIX UNTIL SCIRRA RELEASES A NEW VERSION **

    BTW: Please apply the fix at your own risk. It worked perfectly for me. But dont blame me if something else got messed up <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz"> (I know it wont!)

    Hi All,

    Many of us are facing problems with game not running after its exported to Intel XDK or when they try to minify the code. The issue started after the latest C2 version R213 was released with some new Audio fixes. There seems to be a syntax error in the code, but even after fixing it the game doesnt go beyond Progress bar loading.

    Well, I figure it would be best to switch back to the previous version. BUT I had a better idea <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    I instead just took the AUDIO plugin folder from the previous version (R212.2) of Construct 2 and reinstalled R213 and replace the files in the AUDIO folder. And Voila! It worked. I am now able to preview my game in Intel XDK and Firefox! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    I have Zipped and uploaded the plugin here: http://1drv.ms/1QiKFTl

    You dont have to go through the pain for installing two versions of C2 !

    Just download, unzip and replace the files in the below mentioned path.

    C:\Program Files\Construct 2\exporters\html5\plugins\audio

    If this fix worked for you, then please head to Google Play Store (or Windows Store) , download, play and rate my game!! <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

  • As I wrote before, You can try that:

    - go to generated/exported not-minified project folder and find c2runtime.js file

    - find function that starts like: C2AudioInstance.prototype.getDuration = function (applyPlaybackRate)

    - change

    let ret = 0;

    to

    var ret = 0;

    For me, that worked , and as You saw - yes, it's because of Audio update <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink"> ( as expected from update post - https://www.scirra.com/construct2/releases/r213 ... ;p trololololo )

    You can also downgrade C2 to 211.2, here all works, but you also need project with that version.

    (If you are wonder, audio duration function was rebuild from R211 to R213 and disposed from multiple "return" instructions for one instead.)

    The other two errors:

    Uncaught ReferenceError: cr_createRuntime is not defined

    Uncaught ReferenceError: cr_sizeCanvas is not defined

    are caused by the first one, so they will gone after modification that I wrote above.

    Hey thanks for the fix. I was getting a blank screen in XDK and I tried to debug the code in ForeFox. But it didnt occur to me to change LET to VAR <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    Now atleast I see the loading screen on the Intel XDK Emulator. I think there is still some issue, the progress bar wont move past 25-30%. Its stuck!

    I wonder if I can install the previous version Copy the Audio Plugin folder. Then reinstall R213 and replace the files from R212.2?

    I think that should work , rather that miss the other important fixes in this version <img src="{SMILIES_PATH}/icon_e_smile.gif" alt=":)" title="Smile">

    What do you say?

  • Well it depends on how much traffic is on your app. the more people use your app the more you earn. you can earn around $200 dollars or more in a day iff their are around 2000 downloads. By my game ADVENTURE RUSH, i m earning $150 dollars a day.

    Hey $150 per day is AWESOME! Can you post link to your game please?

    I have about 68K downloads on my game but on made $272 out of 252,852 impression

    How did you promote your game? I know majority of my downloads came from Asian countries (Philippines mostly) where the Pay per click is super low.

    How do I reach out to US and EA market?

  • Ashley! Thank you so much for addressing this issue and adding new features to the PubCenter.

    I however had one question:

    As of now, the PubCenter Plugin allows use to enter only one Ad Unit.

    Can you add a property to add another Unit ID so that we can use both Banner and/or Interstitial Ad units?

    Example:

    Banner calls Ad Unit #1

    Interstitial called Ad Unit #2

  • Problem Description

    When I use the Windows 10 export(Visual Studio 2015), the VS Solution does not include a reference to the Microsoft Ads SDK. Hence there are no Ads displayed. I tried adding the reference myself, but then it VS started throwing me loads of compile error, including Compatibility errors.

    Attach a Capx

    Issue is related to exporting to Visual Studio 2015.

    Description of Capx

    NA

    Steps to Reproduce Bug

    • Create a Blank project
    • Add Pubcenter plugin
    • Export to Windows 10
    • Open project in VS 2015

    Observed Result

    No reference to MS AdSDK. Manually added reference results in compile errors.

    Expected Result

    Exported solution should include a reference to MS Ad SDK and should be able to show Ads from pubCenter

    Affected Browsers

    • Chrome: (NA)
    • FireFox: (NA)
    • Edge: (YES)

    Operating System and Service Pack

    Windows 10 (Home?)

    Construct 2 Version ID

    C2 R212.2

  • Naji This looks great. I might explore it if there is no Windows 10 pubCenter plugin coming out soon!

  • SamRock Yup, I meant build the APK. I can't high enough FPS with Intel XDK, but maybe I have to optimize my game more?

    Yes Probably.. look for unwanted loops (eg For Each), Events. Use Family for Collision detection. Disable Collision on Objects that dont need to be checked for Collision (eg. Menu, buttons, etc that are inside the game screen)

    Also what is the size of your graphics? If you are targeting only Mobile and Tabs, you can resize them to smaller size instead of having HUGE images and scaling them smaller within the game.

    Just few things I followed to improve performance on my game

  • I am kind of affraid of seeing adverts on PC yet multiplatform games and applications... like really scared.

    But I guess it is still better to be up to date with the features they propose so I think it is still a good idea.

    Well good thing about MS ads are they show you ads related to your App Category (Games show only games ads)

    Bad thing is they dont have enough ads to show (there by not much to earn either )

  • SamRock What did you use to export to APK? Also, what ad service are you using currently?

    I think you mean to build the APK? I used Intel XDK.

    For Ads, I use Admob, Adcolony and CharBoost (both for Video /Fullscreen Ads)

SamRock's avatar

SamRock

Member since 7 Apr, 2014

None one is following SamRock yet!

Connect with SamRock

Trophy Case

  • 10-Year Club
  • x2
    Coach One of your tutorials has over 1,000 readers

Progress

11/44
How to earn trophies