Mirai
  • NEW!
    NEW!  Connect Ideas Across Notes
    Save time and share insights. With Paragraph Citation, you can quote others’ work with source info built in. If someone cites your note, you’ll see a card showing where it’s used—bringing notes closer together.
    Got it
      • Create new note
      • Create a note from template
        • Sharing URL Link copied
        • /edit
        • View mode
          • Edit mode
          • View mode
          • Book mode
          • Slide mode
          Edit mode View mode Book mode Slide mode
        • Customize slides
        • Note Permission
        • Read
          • Only me
          • Signed-in users
          • Everyone
          Only me Signed-in users Everyone
        • Write
          • Only me
          • Signed-in users
          • Everyone
          Only me Signed-in users Everyone
        • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invite by email
        Invitee

        This note has no invitees

      • Publish Note

        Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

        Your note will be visible on your profile and discoverable by anyone.
        Your note is now live.
        This note is visible on your profile and discoverable online.
        Everyone on the web can find and read all notes of this public team.

        Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

        Explore these features while you wait
        Complete general settings
        Bookmark and like published notes
        Write a few more notes
        Complete general settings
        Write a few more notes
        See published notes
        Unpublish note
        Please check the box to agree to the Community Guidelines.
        View profile
      • Commenting
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
        • Everyone
      • Suggest edit
        Permission
        Disabled Forbidden Owners Signed-in users Everyone
      • Enable
      • Permission
        • Forbidden
        • Owners
        • Signed-in users
      • Emoji Reply
      • Enable
      • Versions and GitHub Sync
      • Note settings
      • Note Insights New
      • Engagement control
      • Make a copy
      • Transfer ownership
      • Delete this note
      • Save as template
      • Insert from template
      • Import from
        • Dropbox
        • Google Drive
        • Gist
        • Clipboard
      • Export to
        • Dropbox
        • Google Drive
        • Gist
      • Download
        • Markdown
        • HTML
        • Raw HTML
    Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
    Create Create new note Create a note from template
    Menu
    Options
    Engagement control Make a copy Transfer ownership Delete this note
    Import from
    Dropbox Google Drive Gist Clipboard
    Export to
    Dropbox Google Drive Gist
    Download
    Markdown HTML Raw HTML
    Back
    Sharing URL Link copied
    /edit
    View mode
    • Edit mode
    • View mode
    • Book mode
    • Slide mode
    Edit mode View mode Book mode Slide mode
    Customize slides
    Note Permission
    Read
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Write
    Only me
    • Only me
    • Signed-in users
    • Everyone
    Only me Signed-in users Everyone
    Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note No publishing access yet

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.

    Your account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Your team account was recently created. Publishing will be available soon, allowing you to share notes on your public page and in search results.

    Explore these features while you wait
    Complete general settings
    Bookmark and like published notes
    Write a few more notes
    Complete general settings
    Write a few more notes
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    8
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Let RPG Maker MV/MZ Games are also available on Android with support In-app Purchase Tutorial :::warning <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> This tutorial article I will no longer continue to update or maintain it, and I am completely open-sourcing it, allowing anyone to modify, use, and republish it as they see fit. However, please do not ask me any further questions regarding this tutorial article. I have been providing these educational resources for free all along, yet no one has been willing to sponsor or support me. ::: :::danger ![](https://i.imgur.com/nP2hqYl.png) ::: :::warning <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> This article was translated using "[DeepL Translator](https://www.deepl.com/translator)". ::: The main purpose of this tutorial is that in August this year, Google announced that new apps will be uploaded in **AAB** format instead of the **APK** and **OBB** file formats that have been used in the past. *** For more details, please refer to this Google announcement:** https://android-developers.googleblog.com/2021/06/the-future-of-android-app-bundles-is.html In short, this tutorial will teach you to export to **AAB** format to get you on the Google Play Store release App, as well as the implementation of **In-App Purchases** and **Admob ads**. * **2022/02/28 Update** Update plugin terms of use, and add information about "Supported Platforms" and optimize some code, etc. * **2021/08/10 Update** Fixed the problem that some Android devices could not run properly, and added **[Extra](#■-Extra)** tutorials. # ◆ Step 1 Go to the following link to download **Android Studio**. → https://developer.android.com/studio ![](https://i.imgur.com/RPAZaxS.png) After checking the box, click **Download Android Studio** to start downloading and installing **Android Studio**. ![](https://i.imgur.com/fDs86PD.png) After installing and running Android Studio, expand the menu item in the upper right corner and select **SDK Manager**. ![](https://i.imgur.com/PjlZifR.png) Select **SDK Platforms** to install the latest version of Android, here I checked **Android 11.0(R)**. ![](https://i.imgur.com/yCbNolg.png) In **SDK Tools**, check all the necessary tools marked by the red checkboxes in the picture. Press **OK** and it will download and install the checked packages. ![](https://i.imgur.com/DbPjqS0.png) # ◆ Step 2 Open the RPG Maker MV/MZ game project and click "File" → "Deployment...", select "Web Browsers / Android / iOS". When using RPG Maker MV, select "Web Browsers" and then click "OK" to wait for the deployment to complete. **[RPG Maker MZ]** ![](https://i.imgur.com/ds3WuKk.png) **[RPG Maker MV]** ![](https://i.imgur.com/FS6qsyO.png) :::warning <i class="fa fa-exclamation-triangle" aria-hidden="true"></i> Remember that folder names can only be alphanumeric and do not contain a half-line margin. If you need to use a half-line margin, please replace it with a ( _ ). ::: # ◆ Step 3 Download the required Android Studio project **(MyApplication.7z)** from the following GitLab link, and the sample project (**ProjectIAP_MV** or **ProjectIAP_MZ**) In-app purchase . The **NekoGakuen_AndroidPlus.js** plugin is also included in the sample project. → https://gitlab.com/MiraiSoSad/android-studio-for-rpg-maker-mvmz/-/tree/en_US Go back to **Android Studio** and click **Open** at the top. Choose to extract the downloaded Android Studio project folder **(MyApplication)** and click **OK**, then open the project and wait for the progress bar in the lower right corner to finish the project sync. ![](https://i.imgur.com/kgTfDen.png) ![](https://i.imgur.com/kuBT0qE.png) # ◆ Step 4 Under **File** → **Project Structure...**, select **SDK Location**. Click **Gradle Setting** and select **Download JDK...** from the **Gradle JDK** menu. ![](https://i.imgur.com/JDpsibU.png) ![](https://i.imgur.com/Ow1F15F.png) After selecting the latest version in **Version**, click** Download**. Select **Oracle OpenJDK** in **Vendor** and click **Download**. ![](https://i.imgur.com/jGwTOAI.png) # ◆ Step 5 If you want to release on the Google Play Store, please select the **IAP** section, on the other hand, if you just want to play game on your Android phone, please select the **Only** section. ![](https://i.imgur.com/sth6ARz.png) ### ■ Only Put your exported RPG Maker MV/MZ project in the **MyApplication\Only\src\main\assets\www** folder. Under **Only**, mouse right-click **res** → **values** → **strings**. After selecting **Open Translations Editor**, you can change **app_name** in **Default Value** to set your APP game name and other string parameters. ![](https://i.imgur.com/QraHjqw.png) Select **Build** → **Build Bundie(s) / APK(s)** → **Build APK(s)** output. ![](https://i.imgur.com/waJPRl3.png) After the output is finished, in the folder **MyApplication\Only\build\outputs\apk\debug**, you can find three apk files, just install **Only-universal-debug.apk** to your Android phone and play game. ### ■ IAP Put the RPG Maker MV/MZ project you just exported Put it in the **MyApplication\RPGAssets\src\main\assets** folder. In **File** → **Project Structure...** in **Modules**, modify the three parameters of **Default Config**, which are **Application ID**, **Version Code** and **Version Name** respectively. ![](https://i.imgur.com/JDpsibU.png) ![](https://i.imgur.com/VXLL9Db.png) ### ■ Change APP Icon Mouse right-click **mipmap** and select **Delete...** to change the icon of the APP. ![](https://i.imgur.com/pLwzyZQ.png) Mouse right-click on **res** and select **New** → **Image Asset**. ![](https://i.imgur.com/uwT72LF.png) Set the APP icon in **Source Asset** and **Scaling** of **Foreground Layer**. ![](https://i.imgur.com/Wm25l0o.png) Set the background color of the APP icon in the **Source Asset** of **Background Layer**. ![](https://i.imgur.com/zsID3Ye.png) Mouse right-click on **Strings** under **IAP** and select **Open Translations Editor** to set some advanced parameters. ![](https://i.imgur.com/lKAJdjF.png) ![](https://i.imgur.com/Pjr2iQk.png) **app_name** sets the name of your app game. **license_key** sets your app license key. :::info <i class="fa fa-info-circle" aria-hidden="true"></i> And **license key** section can be found in the bottom left of **Google Play Console** under **Monetization setup**. ::: ![](https://i.imgur.com/btBgohy.png) The **test_mode** setting is for test mode, but remember to set this to **false** when you publish in the Google Play Store. The remaining five items are for the AdMob ads units, which are currently filled in as test ads units by default. If you use AdMob ads units, remember to change them to the AdMob ads units of your own account. And the use of AdMob ads here I will not explain in particular. Finally, under **Build** → **Generate Signed Bundle / APK...**, select **Android App Bundle** and click **Next**. Select **Android App Bundle** and click **Next**, then create or use your signature key. When finished, upload the exported **AAB** file to Play Store. Of course, I won't explain the two parts of signing key and uploading to Play Store. ![](https://i.imgur.com/jwcEdss.png) ![](https://i.imgur.com/XsxaMI0.png) ![](https://i.imgur.com/1Erx9wz.png) ![](https://i.imgur.com/zskgaU8.png) ### ■ Extra #### ● How to make RPG Maker MV support touch UI? Add that although **RPG Maker MV** itself does not have a built-in button UI features for cell phone touch, but you can use the official **TouchUI.js** plugin to solve the problem of cell phone operation game. :::info <i class="fa fa-info-circle" aria-hidden="true"></i> And the **TouchUI.js** plugin is placed in the folder of **D:\Steam\steamapps\common\RPG Maker MV\dlc\KadokawaPlugins_New\js\plugins**. ::: #### ● How do change the **Splash** image? (ex: **Made by MV** image.) In **MyApplication\IAP\src\main\res\drawable**, replace **logo.png** with the image file of your own Splash. :::info <i class="fa fa-info-circle" aria-hidden="true"></i> If it is **Only**, the path is **MyApplication\Only\src\main\res\drawable**. ::: #### ● How do I change the orientation of my Android phone screen to **Portrait**? This will show you how to modify the display direction of your phone in Android Studio project, while the resolution setting of RPG Maker MV/MZ should not need me to teach you specially. First of all, make changes in the files **manifests/AndroidManifest.xml** and **res/layout/activity_main.xml** respectively. In the **AndroidManifest.xml** file, change **"sensorLandscape"** to **"sensorPortrait"** in the **21st** code. In the **activity_main.xml** file, switch to **Design** and change the parameter of **orientation** to **vertical** in **main**. ![](https://i.imgur.com/5EEiXbw.png) #### ● Why does my RPG Maker MZ game keep stopping on a black screen when I play it on my Android device? You can try changing the syntax around line 2109 in `js/rmmz_managers.js` in the project folder. ```javascript SceneManager.isGameActive = function() { // [Note] We use "window.top" to support an iframe. try { return window.top.document.hasFocus(); } catch (e) { // SecurityError return true; } }; ``` Modify to ```javascript SceneManager.isGameActive = function () { return true; }; ``` Mirai - Patreon: https://www.patreon.com/MiraiDiary Mirai - Twitter(X): https://twitter.com/Mirai_so_Sad Mirai - itch.io: https://miraisosad.itch.io Mirai - Instagram https://www.instagram.com/miraisosad/ ###### tags: `貓咪學園` `NekoGakuen` `RPG Maker` `RPG Maker MV` `RPG Maker MZ` `Android Studio`

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password
    or
    Sign in via Google Sign in via Facebook Sign in via X(Twitter) Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    By signing in, you agree to our terms of service.

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully