Udong

Villager
Member
Joined
May 26, 2018
Messages
14
Reaction score
0
First Language
Thai
Primarily Uses
VNM
First I’m sorry for my broken english but I hope who read this topic will get the result that you want :)

This is my first tutorial if anything I had mistake please do not hesitate to comment to ask or notice me at https://www.facebook.com/ONonKunGO/ that I’m mistake


OK let’s start

Brief description:
this tutorial we will go to build an .apk and .aab for our game from Visual Novel Maker Engine (aka VNMaker/VNM)

Requirements:
  • An Android Device with Android 5+ (You can also use an Emulator, This is just for test your .apk build)
  • JDK 11 (Java Development Kit)
  • Android Studio + SDK
  • Node.js
  • Cordova
  • Gradle (latest version)
  • Visual Studio Code (or other ide)

Installation Guide​

I will show you how to install JDK , Android Studio + SDK , Node.js , Cordova , Gradle

JDK 11​

  1. go to https://www.oracle.com/java/technologies/downloads/#java11-windows
1*hVbWNszVK12iFKF5M9pznw.png

you will see a page like this

2. for me is windows OS click on jdk-11.0.17_windows-x64bin.exe

1*f8G9v_cK95rap7503UH43Q.png

website will pop-up this click on download

3. if you not have oracle account it will redirect you to create or login just register and it will continue download

1*dZ0CXIdkP3tTnC2QpebrQw.png


4. open file that you dowload and install it

1*hC9YOntmYhTPh3xe29UA4Q.png


5. open command prompt and type

java --version
1*7C8adjTJblezo_deUS0mOw.png

if you get message like this all is correct

6. set JAVA_HOME path

1*xjCVg6p_HqFlVpI5GUyfRg.png

type environment in search bar and click on edit the system environment variables

1*dLbI319_U2F2Uy8I5UnCYg.png

click & fill follow step 1- 5

6.1 for step 4 is the path of your JDK install location if you not change anything while install it should be like me

Android Studio + SDK​

  1. go to https://developer.android.com/studio#downloads
1*b_o-qEC4df0-fJkyvNahpw.png


2. click on green button “Download Android Studio”

1*UepxTsIlMCMAPyjCMDel3g.png

it will popup like this

3. read term of use and scroll down and click download on green button

4. install by double click it

1*2F8KGk8eTYkaMJZxRb_Z_g.png


5. also you can follow this installation guide https://www.c-sharpcorner.com/article/how-to-download-and-install-android-studio-in-windows-10/

5.1 if you use AMD processor like me and get message “Android Emulator Hypervisor Driver for AMD processors installation failed” please follow this tutorial

5.2 it will not install after that but just continue follow this instruction , you will see how to install Android Emulator Hypervisor Driver for AMD processors again

6. open android studio and click on 3 dot button (in red circle)

1*A9-zuilElnfFZqTUmW8Pnw.png


7. click on sdk manager

1*CodHPFFN5wmx7uZpI9908Q.png


8. “SDK Platforms” tab is platform you want freely check just you want

1*HVE8qpHNSs9HbVc5L4NSTQ.png


9. “SDK Tools” tab just check like me

1*pTsAIIuqch85jVK1ztQ6wg.png

for AMD processors check on Android Emulator Hypervisor Driver for AMD Processors too

10. then click ok or apply it will take a few minutes to install

Node.js​

  1. go to https://nodejs.org/en/
  2. click on LTS version (any version is ok just download latest LTS version)
1*KEqjRgMrXHVn6RqJ2c1Osw.png


3. install it

1*8Waxki-gXX2RbdgBKfO3Ow.png


4. follow setup wizard (I think node.js is easy to install I will skip setup step)

Cordova​

  1. open command prompt and type
npm install -g cordova

2. wait for it , after finish type

cordova --version
1*Z_3DIG-s6HF29Ex81Oni1w.png

if your install is correct it will show you a cordova version

Gradle​

  1. go to https://gradle.org/releases/
1*adFaT3WzbNMdJ3iMqCflYw.png

2. scroll down and find a version you want (latest version is recommend)

3. click on complete at download line

1*8r-utgY8YtE1GCoB0-w1cw.png

for me is v7.5.1 because it latest at 16/11/2022

4. open .zip file that you download at (3) step

1*ffljOagpfSvld8supnsrEw.png


5. go to C Drive or other drive that you install your windows on it (other drive is ok but I’m not sure will it work)
and create folder and rename to Gradle

1*yfHRkzelW3mIt2a-Tgr2Vw.png


6. open Gradle folder and drag Gradle-7.5.1 folder in zip file into it

1*BV2uaB98EzMMtNSSH-Ib6A.png

7. edit The system environment like JDK step 6

1*a6AvGCxgQYdEODSBpzwRTw.png


8. but it a little different,
at step 2 double click on “Path”
at step 4 is the location that you install Gradle , If you follow my step same exactly same to me, just use location same to me

Visual Studio Code​

sorry but I will not teach you this step but if you never use Visual Studio Code before (VScode) please follow this instruction

Build Guide​

I will show you how to build .apk or .aab file , and how to change your game icon

Visual Novel Maker (.apk Build)​

  1. open your VNMaker and open your project
  2. open debug console
1*R79z-vknSINDPImNfRX4Sw.png

if you got any error don’t mind it

3. clear console (optional)

1*tnyvAyMcTwaN9q4aypO1Mg.png


4. go to tools -> preference -> project -> general

1*6AT5omokMldlX6BfW5iDLA.png


5. fill any information you want

1*kK-Bz2BlpBKnZ5grEsKLWQ.png


6. go to Android Development tab

you can ignore this tab if you just want .apk but if you want .aab to publish to google play store you must fill all section

I will not show you how to get key store/ key alias/ license key because it will be a long tutorial , but you can google it , it not hard :)

1*j7E0OIUWoxkPWhK3Uj_NtQ.png


7.go to game -> build for -> android (cordova)

1*8yKE_7qVEeb2-FlBLytlvQ.png


8. if no anything wrong you will get message that tell you where is your .apk file

1*NuPoQxRGPcC0x2INZke9Ng.png

9. test it! (for me use blueStack)

1*DbwmfXiL9CFvIOppjgEZWg.png

default icon is cordova icon

1*yqY4cLbU61KoX23BbJoQ4w.png

it work!

Visual Novel Maker (change game icon)​

after this we will use VScode

  1. open build project in VScode (not your VNM project but a project that has build on step 1–8 on .apk build instruction)
1*EG1Y9VAn4z5lK9WMxzfTHw.png

1*FsZwT_LWw2uTBILXKor0WA.png

the build location is show at debug console at step 8 of “Visual Novel Maker (.apk Build)”

2. open new terminal

1*Dt9F6sa29o5uhlnZVVKkiQ.png


3. cd to your project name two times

1*LBg623Kf0IED98-WpEQbaQ.png


4. at left tab open folder like me (Phantom Stars is a Project name)

Project name -> Project name -> platforms -> android -> src -> main -> res

1*SdCs4jwKSR1aUgrElp1UEQ.png


5. open all mipmap folder

1*BVM4qWKLP6VIAHspWT0jog.png


6. replace your icon to all ic_launcher.png and ic_launcher_foreground.png

****please be careful with a picture resolution or you will get wrong icon resolution on installed .apk

you can check picture resolution by right click -> properties -> details -> dimensions

1*2AYhG2NDX1LPKI_ZgAZYTw.png

1*V-BkRnNoTqKobXEjbzjNXQ.png


7.build it again but with command line / terminal in vscode

cordova run android
1*8-8HHwbvxph6FXR6pAaubw.png

and then press return button on keyboard
1*btAet6Hi-AqvZEqNgyGVwQ.png

if green text appear , everything is ok

8. you will got a new app-debug.apk file then test it!

1*xZ2oZTNz-VCIPmZoXW7H8Q.png

YES! it work!

Visual Novel Maker (build .aab)​

  1. type
cordova build --release android
1*gstBXTNKmehrDpbhrnIQAg.png

then press return button on keyboard

2. if everything ok you will see green text and location of .aab

1*QZDISz0mrGzP18eBIPsTqQ.png

WARNING FOR .AAB BUILD​

  1. if you scroll up terminal little bit you will see this message
1*5JSck5h14EdR0T9xiruE6A.png

yes the keystore is already read BUT I dont know it work or not, If anyone follow my instruction and can publish a game on google play store please comment or contact me at facebook link at top of this page , and I will edit this topic

2. .aab cant test (cant install) on any phone or emu .aab is a file for google play store only

but I heard that before the .aab file can convert to .apk

Lastly​

thank you all of you to interest in my topic

you can read this topic at too :)
 
Last edited:

Udong

Villager
Member
Joined
May 26, 2018
Messages
14
Reaction score
0
First Language
Thai
Primarily Uses
VNM
"edit the system environment variables" step picture is low resolution you can see high resolution picture on my medium link at last row(line) of tutorial
 
Last edited:

GiveMeLoliPls

Warper
Member
Joined
Dec 28, 2022
Messages
4
Reaction score
0
First Language
Ukrainian
Primarily Uses
Other
Hello, in the screenshot the game is displayed on the android device after creating the apk, can anyone tell me how to remove the top status bar and the gray parts on the sides?
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

Mmm Tempted so bad to get RPG maker 2000 at some point. I want to make an easter egg in my next real project, but also the allure of being a true hipster and developing in the Engine no one uses.
Definitely one of the stranger specimen.

E9BE10F9-4FEF-446C-9D1C-7FD41FDFB029.jpeg
@SigmaSuccour, it's been a long time I don't see you around.
11.png
Continuing our countdown with Capsule Monster #11 Vampy! While he might have a lower HP he has the unique ability to drain hp from others to restore his own! For any Yu-Yu-Hakusho fans I based a lot of his design on Rinku!
I'm finally done with my demo for the Cube Trail! All that needs to happen is playtesting of the four main characters for any balance changes that need to be done.

Forum statistics

Threads
131,701
Messages
1,222,343
Members
173,444
Latest member
plu2oh
Top