Hi, I just opened the client however I am unable to find the build variant....Am I missing something?
Exporting to Android (MV Android Client)
RMMV TutorialsGave it a try but couldn't get it work. Same applies to https://hackmd.io/@Mirai/RPGMakerMVMZ-Android_eng Even just making a fresh RPGMaker project -> export to web -> moving to assets/www leads to the screen sometimes being black.
I tried the trick on the previous page about the index.html as well but no dice, although I suppose it goes into the right direction. When I rapidly tap the screen while it's starting it always starts without being stuck with black screen+background music playing.
Guess I will be sticking around with cordova, as deprecated and painfult it is...
EDIT: https://forums.rpgmakerweb.com/index.php?threads/solved-rpg-maker-mz-huge-black-screen-issue.138768/ This worked for me.
EDIT2: Only(?) issue I remain to face is that there is a strange amount of padding below and above the webview for me.
I tried the trick on the previous page about the index.html as well but no dice, although I suppose it goes into the right direction. When I rapidly tap the screen while it's starting it always starts without being stuck with black screen+background music playing.
Guess I will be sticking around with cordova, as deprecated and painfult it is...
EDIT: https://forums.rpgmakerweb.com/index.php?threads/solved-rpg-maker-mz-huge-black-screen-issue.138768/ This worked for me.
EDIT2: Only(?) issue I remain to face is that there is a strange amount of padding below and above the webview for me.
Out of curiosity, can you identify whether the padding are inside or outside the WebView?
If you can't identify it, momentarily replace the index.html with an empty page with just a different background color, preferably yellow or green.
Replacing the BG color in the body with white makes everything around the "game area" turn white, so I guess the webview, including the space above and below, is actually truly fullscreen.
I figured it out after several hours. It's from this snipped in RPGMaker.
Code:
Graphics._stretchHeight = function() {
if (Utils.isMobileDevice()) {
// [Note] Mobile browsers often have special operations at the top and
// bottom of the screen.
const rate = Utils.isLocal() ? 1.0 : 0.9;
return document.documentElement.clientHeight * rate;
} else {
return window.innerHeight;
}
};
Hello everyone, for some reason my project is not working well on Android 12.
I have been using my project on several Android systems (9, 10, 11...) and it works perfectly on all of them, but on my new mobile, which is Android 12, there are graphical errors.
Does somebody knows why it could be?
I have been using my project on several Android systems (9, 10, 11...) and it works perfectly on all of them, but on my new mobile, which is Android 12, there are graphical errors.
Does somebody knows why it could be?
I was thinking the problem was outside of the WebView, but from what I understand now that's not the case.
If it is actually in the body of the document, I had tried to solve it before:
Responsive GameCanvas
Hi :-) I try to transform my game in HTML5 responsive version "fullscreen" but I've a problem... When I try with this HTML : My Game html { height: -webkit-fill-available; } #gameCanvas { height: 100vh...
forums.rpgmakerweb.com
There were technically 3 different issues with the Fullscreen. Two of which were because of the WebView.
(1) There is a difference between Fullscreen and Immersive Fullscreen, the prior reserving space for the bars, even if you make their styling invisible. Immersive Fullscreen truly hides them.
(2) Outdated API which made fullscreen flags not work.
A solution to these two problems, I found online
Immersive fullscreen on Android 11
Before, to enable immersive fullscreen mode, you'd have to use setSystemUiVisibility, like so: getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LAYOUT_STABLE | View.
And then the third problem is the one I posted about on in this thread resulting from the stretching factor. Technically, there is still a tiny bit of padding so it's not 100% edge to edge but maybe that's intended to have enough space for the user to perform a touch interaction with his finger at the edges.
I made a quick plugin to customize the stretch rate (in this case just setting it to 1 for my case).
JavaScript:
//=============================================================================
// RPG Maker MZ - Mobile
// ----------------------------------------------------------------------------
// (C)2021 aura-dev
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
// ----------------------------------------------------------------------------
// Version
// 1.0.0 2023/12/19
// ----------------------------------------------------------------------------
// [GitLab]: https://gitgud.io/aura-dev/star_knightess_aura
//=============================================================================
/*:
* @target MZ
* @plugindesc Mobile
* @author aura-dev
*
* @help mobile.js
*
* Bundle plugin for functionality that only serves mobile deployments.
*
* @param stretchHeightRate
* @text Stretch Height Rate
* @type Number
* @default 1
* @desc Multiplier rate by which the height of the canvas is stretched by. By default set to 1 here,
* which assumes that there are no elements in the height orientation that can overlap with the canvas.
* If there are, adjust the rate accordingly.
*
*/
(() => {
const PLUGIN_ID = "mobile";
const PARAMS = PluginManager.parameters(PLUGIN_ID);
const STRETCH_HEIGHT_RATE = parseFloat(PARAMS["stretchHeightRate"]);
// Inject custom logic to not adjust the height on mobile devices for additional element.
// if the game runs in fullscreen, then this will otherwise just create empty space
const _Graphics_strechHeight = Graphics._stretchHeight;
Graphics._stretchHeight = function() {
if (Utils.isMobileDevice()) {
return document.documentElement.clientHeight * STRETCH_HEIGHT_RATE;
}
return _Graphics_strechHeight.call();
};
})();
This is what my project looks like on Android 12 :/
On my other phone, with Android 11, it looked perfect...
It didn't look as extreme for me but this fixed it on my device
Tileset Gaps on Android
Hi, everyone! Does anyone have a fix for the gap issue in tilesets when you deploy MZ games to Android? In MV I was able to fix it setting "canvas" rendering in Community_Basic.js plugin. I noticed that SceneManager.preferableRendererType method doesn't exist anymore in MZ rpg_managers file...
forums.rpgmakerweb.com
Hello, I did all the steps but I'm encountering this error when I try to create the apk file.
(My game is created in RPG Maker MV.)
(My game is created in RPG Maker MV.)
Although the program interface is in English, the error is in Portuguese, I don't understand why, I don't believe that this is the reason for the error.
But it would be good to analyze the XML files better first.
But it would be good to analyze the XML files better first.
Strangely the error changed completely...
I believe it is an error in the installation of Android Studio, in fact it would be more in the configuration or due to the absence of one or more functioning APIs.
So the ideal would be to install Android Studio and configure everything again.
Maybe the best solution is to use an automated tool, for the first build maybe this one will help you:
Pointing out, this compiler does not support cordova, so plugins for managing local files will not work.
The Freeware version is limited in several aspects, I recommend using it for testing purposes only.
I believe it is an error in the installation of Android Studio, in fact it would be more in the configuration or due to the absence of one or more functioning APIs.
So the ideal would be to install Android Studio and configure everything again.
Maybe the best solution is to use an automated tool, for the first build maybe this one will help you:
Website 2 APK Builder - Web2Apk | Convert your Website or HTML5 to an Android App APK AAB | Your app just a few clicks away! (With App Bundle .aab support)
Website 2 APK Builder Pro (Android App Bundle Support) - Web2Apk. Convert your website or HTML5 site to an Android App & App Bundle (AAB). Convert website to android app APK & AAB. No ads.
websitetoapk.com
The Freeware version is limited in several aspects, I recommend using it for testing purposes only.
@Dev_With_Coffee I tested the website 2 apk builder but it supports 100 MB files. (free version)
ok I reinstalled and tried again and this screen appears.
ok I reinstalled and tried again and this screen appears.
See that the error has completely changed.
But error related to JAVA, how strange, are you sure you have JDK and JAVA installed on your computer? The error itself is returning a link with instructions for updating.
In any case, read this:
stackoverflow.com
And maybe this:
developer.android.com
But error related to JAVA, how strange, are you sure you have JDK and JAVA installed on your computer? The error itself is returning a link with instructions for updating.
In any case, read this:
Do I need to install JDK(Java Development Kit) separately for using Android Studio?
I'm learning Android development from this YouTube playlist which stated that I need to install a JDK(Java Development Kit) separately for using Android Studio. But when I went through the tutorial...
And maybe this:
Configure Android Studio | Android Developers
Learn how to locate and configure Android Studio
Any tips about permissions? As how to set network permissions \ Read or write files?
hi i don´t know what is the problem, i followed the tutorial, i can´t build the apk, not even a debug one to test
Hello, I have created an account exclusively so that someone can help me with my problem, I was able to create the apk successfully, the problem is when I run the apk, I get this warning, I decrypted the .rpgmvp files and put them in the folder to detect the .png, but still not given me result, someone could help me with this?
When you compress the game when you export, it could lead to that error due to some plugin wasn't designed to handle files that were compressed. One way to fix this is to fix that plugin or simply just export your project to mobile without compressing it.
Edit: I mean encrypt. I forgot the English word for it.
how do I do the second method? the one of exporting it without encrypting, I tried to export it in the 2 ways, the first one leaving the rpgmvp files intact, the second one I decrypted them to .png
what do I have to do to export it without encrypting it?
Original thread: https://forums.rpgmakerweb.com/threads/exporting-to-android-mv-android-client.84971/