Issue creating android apks with Intel XDK

Discussion in 'RPG Maker MV Deployment' started by Ayaskull, Nov 7, 2015.

Thread Status:
Not open for further replies.
  1. Ayaskull

    Ayaskull Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    Spanish
    I've tried with different projects already and the result is the same: With some phone and tablet models in the emulator tab, I get an error telling me that the game can't find the title .m4a music or the cursor .m4a sound and I already have those files in their respective folder. If I build the apk and then install the game on my Galaxy S4, I get a similar error and I can't play it there either.
     

    This is what I get with the debugger:

    "Console was cleared /C:/Users/ayask/AppData/Local/Intel/XDK/xdk/components/client/emulator/index.js:17

    Error: Failed to load: audio/bgm/Mystic%20Quest.m4a

        at Function.AudioManager.checkWebAudioError (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1193:15)

        at Function.AudioManager.checkErrors (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1180:10)

        at Scene_Title.Scene_Base.update (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_scenes.js:43:18)

        at Scene_Title.update (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_scenes.js:265:33)

        at Function.SceneManager.updateScene (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1673:25)

        at Function.SceneManager.updateMain (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1641:10)

        at Function.SceneManager.update (http://127.0.0.1:58889/http-services/emulator-webserver/ripple/userapp/x/C/Users/ayask/Documents/NeutralLord/www/js/rpg_managers.js:1576:14) rpg_managers.js:1618"

     

    Am I doing something wrong? Thanks in advance.

    Screenshot_78.png
     
    Last edited by a moderator: Nov 7, 2015
    #1
    Oklahoma33 likes this.
  2. KisaiTenshi

    KisaiTenshi Veteran Veteran

    Messages:
    310
    Likes Received:
    121
    As stated elsewhere, 

    Android versions before 4.4.x do not support WebAudio or WebGL. You have to use a Cordova build.

    The XDK "emulator"'s are just feature switches against Chromium. So if you didn't select a cordova build, then it's going to try and run the html5 build against the featureset of an Android device which none support WebAudio consistantly. The Emulators are "accelerated" and do not replicate the performance of the mobile device.

    If you don't hear music/sound in the "emulator" that is actually correct behavior.

    Also try to avoid putting spaces in the filenames as they are expanded to %20.
     
    Last edited by a moderator: Nov 7, 2015
    #2
  3. Screech1989

    Screech1989 King Pin! Veteran

    Messages:
    107
    Likes Received:
    89
    Location:
    Pontypool, South Wales, UK
    First Language:
    English
    how are you loading the Game into XDK?
     
    #3
  4. Ayaskull

    Ayaskull Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    Spanish
    I was doing a standard html5 build and then replacing the www folder with the game www one... I'm gonna try the same with a cordova build.
     
    #4
  5. Ayaskull

    Ayaskull Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    Spanish
    And still getting the same error...
     
    #5
    Oklahoma33 likes this.
  6. KisaiTenshi

    KisaiTenshi Veteran Veteran

    Messages:
    310
    Likes Received:
    121
    There is actually more you have to do to the index.html.

    Like, literately, create a blank cordova project, copy the contents of the index.html somewhere, dump all the files from the RPG Maker mobile deployment into it, and then copy the lines needed to enable Cordova into it.

    You'll end up with something like this from the Cordova stock index.html:

    <!DOCTYPE html><html><!-- * Please see the included README.md file for license terms and conditions. --><head> <title>Blank Cordova Mobile App Project Template (Lite)</title> <meta http-equiv="Content-type" content="text/html; charset=utf-8"> <!-- see http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag --> <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"> <style> /* following two viewport lines are equivalent to the meta viewport statement above, needed for Windows */ /* see http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html and http://dev.w3.org/csswg/css-device-adapt/ */ @-ms-viewport { width: 100vw ; zoom: 100% ; } @viewport { width: 100vw ; zoom: 100% ; } @-ms-viewport { user-zoom: fixed ; } @viewport { user-zoom: fixed ; } </style> <script src="cordova.js"></script> <!-- phantom library, needed for Cordova api calls, added during build --> <script src="js/app.js"></script> <!-- recommended location of your JavaScript code relative to other JS files --> <script src="xdk/init-dev.js"></script> <!-- normalizes device and document ready events, see README for details --></head><body> <p>Hello, Cordova!</p></body></html>and this from the RPG Mobile deployment:

    <!DOCTYPE html><html> <head> <meta charset="UTF-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent"> <meta name="viewport" content="user-scalable=no"> <link rel="icon" href="icon/icon.png" type="image/png"> <link rel="apple-touch-icon" href="icon/icon.png"> <link rel="stylesheet" type="text/css" href="fonts/gamefont.css"> <title>Project1</title> </head> <body style="background-color: black"> <script type="text/javascript" src="js/libs/pixi.js"></script> <script type="text/javascript" src="js/libs/fpsmeter.js"></script> <script type="text/javascript" src="js/libs/lz-string.js"></script> <script type="text/javascript" src="js/rpg_core.js"></script> <script type="text/javascript" src="js/rpg_managers.js"></script> <script type="text/javascript" src="js/rpg_objects.js"></script> <script type="text/javascript" src="js/rpg_scenes.js"></script> <script type="text/javascript" src="js/rpg_sprites.js"></script> <script type="text/javascript" src="js/rpg_windows.js"></script> <script type="text/javascript" src="js/plugins.js"></script> <script type="text/javascript" src="js/main.js"></script> </body></html>Put the two together:

    Code:
    <!DOCTYPE html><html>    <head>        <meta charset="UTF-8">        <meta name="apple-mobile-web-app-capable" content="yes">        <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">    <!-- see [URL="http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag"]http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/quick-tip-dont-forget-the-viewport-meta-tag[/URL] -->    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">        <link rel="icon" href="icon/icon.png" type="image/png">        <link rel="apple-touch-icon" href="icon/icon.png">        <link rel="stylesheet" type="text/css" href="fonts/gamefont.css">        <title>Project1</title>    <style>        /* following two viewport lines are equivalent to the meta viewport statement above, needed for Windows */        /* see [URL="http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html"]http://www.quirksmode.org/blog/archives/2014/05/html5_dev_conf.html[/URL] and [URL="http://dev.w3.org/csswg/css-device-adapt/"]http://dev.w3.org/csswg/css-device-adapt/[/URL] */        @-ms-viewport { width: 100vw ; zoom: 100% ; }  @viewport { width: 100vw ; zoom: 100% ; }        @-ms-viewport { user-zoom: fixed ; }           @viewport { user-zoom: fixed ; }    </style>    <script src="cordova.js"></script>          <!-- phantom library, needed for Cordova api calls, added during build -->    <script src="js/app.js"></script>           <!-- recommended location of your JavaScript code relative to other JS files -->    <script src="xdk/init-dev.js"></script>     <!-- normalizes device and document ready events, see README for details -->    </head>    <body style="background-color: black">        <script type="text/javascript" src="js/libs/pixi.js"></script>        <script type="text/javascript" src="js/libs/fpsmeter.js"></script>        <script type="text/javascript" src="js/libs/lz-string.js"></script>        <script type="text/javascript" src="js/rpg_core.js"></script>        <script type="text/javascript" src="js/rpg_managers.js"></script>        <script type="text/javascript" src="js/rpg_objects.js"></script>        <script type="text/javascript" src="js/rpg_scenes.js"></script>        <script type="text/javascript" src="js/rpg_sprites.js"></script>        <script type="text/javascript" src="js/rpg_windows.js"></script>        <script type="text/javascript" src="js/plugins.js"></script>        <script type="text/javascript" src="js/main.js"></script>    </body></html>
     
    #6
  7. Shaz

    Shaz Veteran Veteran

    Messages:
    37,712
    Likes Received:
    11,419
    Location:
    Australia
    First Language:
    English
    Primarily Uses:
    RMMV
    Ayaskull, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.
     
    #7
  8. Faytless

    Faytless recently unemployed Kung Fu Master Veteran

    Messages:
    234
    Likes Received:
    155
    First Language:
    English
    Primarily Uses:
    N/A
    Can you please upload your www folder to dropbox or any host of your choice?  I'd like to try to build it.
     
    #8
  9. PrkchpsNaplsaws

    PrkchpsNaplsaws Grandmaster Newb Veteran

    Messages:
    79
    Likes Received:
    24
    Location:
    United States
    First Language:
    English
    were you ever able to figure this out?  I am having the EXACT same issue - frustrating as all hell.  Building a game for mobile was the 1 and only reason I purchased MV.
     
    #9
  10. Ayaskull

    Ayaskull Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    Spanish
    Sorry... Didn't notice.
     
    #10
  11. Ayaskull

    Ayaskull Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    Spanish
    That didn't work...
     
    #11
  12. Ayaskull

    Ayaskull Villager Member

    Messages:
    9
    Likes Received:
    3
    First Language:
    Spanish
    I'll upload it later when I get a better internet connection.
     
    #12
  13. omega1227

    omega1227 Veteran Veteran

    Messages:
    132
    Likes Received:
    15
    First Language:
    English
    Whatever happened to this post? I'm having this exact same problem and I'd like to know if anyone found a solution.
     
    #13
  14. Kes

    Kes Global Moderators Global Mod

    Messages:
    20,794
    Likes Received:
    10,584
    First Language:
    English
    Primarily Uses:
    RMVXA
    omega1227, please refrain from necro-posting in a thread. Necro-posting is posting in a thread that has not had posting activity in over 30 days. You can review our forum rules here. Thank you.


    I suggest you start a new thread which will enable you to be specific about what is happening with your game.
     
    #14
Thread Status:
Not open for further replies.

Share This Page