Android/iOS - (TL:DR) Converting your project using the MANUAL METHOD

10/28/2015
 
A new tech demo was uploaded to the store that will give you options to see how your device will lag under certain events that take alot of resources ( i.e. animations, sprites, weather, etc)   It was uploaded at 5:30am PST,  will be available by 10AM PST Today
 

Version 4 Toms SPM
BETA USERS have reported this might cause the program to crash. If it does, just relaunch. I've had good luck with it after a simple relaunch

-- Added SAVE function to save variables
-- Added Version Code (ALPHA) (this allows you to UPDATE your apk for the playstore)



Updated Link
https://www.dropbox.com/s/i0pd2u3s81vfd8r/Toms%20SPM%20vr4%20.exe?dl=0
 


CONDENSED VERSION
I have packaged Python, ANT, Crosswalk and my Environment path/Compile program in one package. You still have to register the paths, but it beats going to 3
different websites for your files.


Android Conversion Pack  ( Python,  ANT,  Crosswalk, TomsPathomizer Version3)
https://www.dropbox.com/s/9idijlq0e4x78f8/Android%20Conversion%20Pack.zip?dl=0

1. Download the conversion pack. Unzip this to your C Drive.
2. Install Java JDK, take note of the installation path
3. Install Android SDK (Zip version, and transfer into the Android Conversation Pack Folder.
3a. Right click run SDK manager inside the folder and Install API 21 (I personally recommend getting api 23, 21, and 19)
4. Open Toms Pathomizer.
5. Read my warning and select Python Path -- Navigate to Android Conversion pack folder and select the python folder
6. Click Select Java Payh -- Navigate to your Java folder and select the the JDK(SOMEVERSION NUMBER) folder (i.e. JDK.1.8.85)
7. Click Select Ant Path -- Navigate to the Android Conversion Pack, and select the Ant folder.
8. Click Select AndroidSDK Path, Navigate to your android folder and select it.
9 Click Unlock Backup, and click Back up Paths. Once you see a message, click Register Environment Paths.
10. Go to actions, click Compile APK.
11. Click Find Under www. Find your www Folder
12. Click find under crosswalk folder. go to Android Conversion Pack and find your crosswalk folder.
13. Fill out the name, version, and APPID. Pay attention to format.
14. If you don't have a manifest, click compile sample manifest.
15. Click Compile APK.
16. If this works, you can deploy your updated project again as long as you keep your www folder in the same location.
and click recompile with Last Settings. OR you can run the compile.bat file the program created as admin.



FULL INSTRUCTIONS
 









 
1. Install Python (write env. variables, custom install, system var, install to C:\)
https://www.python.org/downloads/
2. Install Java (take note of install path)
http://www.oracle.com/technetwork/java/javase/downloads/index.html
3. Download Ant and extract to C:\
http://ant.apache.org/bindownload.cgi
4. Install Android SDK, (install to root of C:\, don't run automatically)
https://dl.google.com/android/installer_r24.4.1-windows.exe
     a.  go to the folder now right click on SDK manager click run as admin
     b. if this doesn't open,  EEK.  You need to find out why its not.  You can ask here -- watch my troubleshoot video (not up yet) -- or google
     c. Install SDK Platform Tools,  SDK Build Tools,  everything under API 19 and above , and google USB drivers.  ( this will take a while)
5. Download a crosswalk template extract to C:\      (zip)
https://download.01.org/crosswalk/releases/crosswalk/android/stable/10.39.235.16/
6. Download Tom's Pathomitizer V4 and RUN AS ADMINISTRATOR (This is custom application I wrote)
https://www.dropbox.com/s/x78v4qgh6livewo/TomsSystemPathMaker.exe?dl=0
    Read the EULA,  If you agree, continue. 
    a.  click the check box to unlock back up,  click back up path
    b.  Click Find Java Path, then go through and find your Java Folder.  It should end in a bunch of numbers
    c.  Click Find Ant, find your Ant folder
    d.  Click Find Android SDK, navigate to your android SDK folder
    e.  Click Register Paths, if it worked,  you will get a message.
    f.   Open command prompt with admin privileges.
         a. Type in Python --version
         b.  java -version
         c.  adb version
         If you get version numbers for all,  you're doing it right
7. Export your RPG Maker Game to somewhere you can find.
8. Open my custom application
 
  
    a.  Click find next to www.  select your www folder.  Make sure your path ends in www.
    b.  Click the box below and find your crosswalk folder that you extracted.
   c. Enter the name of your game, version number, orientation
   e.  enter your AppID (i.e. com.example.sample) in that format.
         e1.  Click Compile Manifest
   f.  click Compile APK,  give this a while
   g. Move appropriate APK to device to test!


screenshto.png
Although I hadn't had the chance to try it, but I'm really thankful for this tutorial and I'm sure many others too.  🤘   🤣   🤘
Thanks for this, very helpful. 🙂

Also, this may be an odd request, but I'm (slowly) learning C# and was wondering if you could share the source for your app (TomsSystemPathMaker) as I'm curious how you've done things, in particular the manifest/json stuff.

Understand if you say no, but would be nice to see how it is done and to learn from. 🙂
Blah,  I'm rewriting the entire program for "other" purposes lol.

But here is how you do it.

1.  add System.IO to your project 

using System.IO;

2.  Add Streamwriter Object,

Streamwriter SOMENAMEHERE = new Streamwriter("NAMEOFFILE.js")

3.  Write your statements (and use variables)

String NameofYourGame;

SOMENAMEHERE.Writeline (" SOME TEXT HERE");

SOMENAMEHERE.Writeline (" SOME TEXT HERE");

SOMENAMEHERE.Writeline (" SOME TEXT HERE" + NameofYourGame + "SOME MORE TEXT");

4. Don't forget to close your object

SOMENAMEHERE.close();

The general rule is that if you can code it with an HTML document,  You can use stream writer to code it... or use it to be an rear end in a top hat lol

like below. 

Bool LOL = true;

Int LOLCounter = 0;

While (LOL == true)

{

Streamwriter LOLCODE = new Streamwriter ("text" + LOLcounter +".dat");

LOLCounter++;

LOLCODE.Close();

}
I did try the manual method and this happened:



What did i do wrong?
Hrm...  I think its your java path.  Did you back up your environment paths?   I can remote in to your PC to see what the issue is if you want. 
Hrm...  I think its your java path.  Did you back up your environment paths?   I can remote in to your PC to see what the issue is if you want. 
I backed up the enviroment paths, what am I doing wrong?
try reverting to your backing up.  Uninstall java,  and redownload it.  Make sure you're not getting an alpha build.  the folder ouput should be similar to the one in the video.  I just got home from work.  If you want to arrange some time for me to remote into your computer,  please PM me privately.  I am in PST.
my commands fails at the system requirements and closes so fast i can't read the rest . i run Win 10 on 6Gb Ram i7 Procc and Intel 3000HD /Nvidia 520M , i think that is sufficient to make an apk file 

EDIT : REsolved but still gets this error ... 

[IMG]http://i.imgur.com/gy8vVva.png[/IMG]
are you able to test your paths?   can you run a version check everything?  do you get version numbers for everything including ant?
yes i do get all the paths working but should i install the latest android API or any one of my choice ?
First make you can compile an apk. So once all your paths are working re-download my program , compile a manifest after filling out the two boxes at top left, fill in appId, compile apk
Just wondering if there is a way to make the pre-requisites more portable since I don't want to install too many things.
Hmmm...I get an error in the ant.bat. Returns exit code 1 on line 948, I think it is. Returning a null character.


I know all paths are correct. It gets through all the typical steps. I get three warnings twice and then


it fails on that error. I have tried multiple things to make it work. No luck.


Now my eyes are droopy...I gotta get some sleep, lol.


I will conquer it tomorry, or perhaps I will concur it. Hmm, we shall see. 😉 Night/Morning


GhostWolf aka Carl T.
I am currently working on this.  However,  I've pushed this project back a bit to figure out more pressing issues.
well thank you anyway, i did get the Android package built this time. and here is the reasons for my errors !

The EXE software you made actually adds the enviroment paths of ant and Android SDK and Java's JDK everytime you click on the "Register paths" button so at the end you can get so many repeated paths with sometimes double ";" which is a path error. So all you need to do is you have errors is Just Go check your paths and Delete all the paths related to Ant, Java,and Android SDK, then go back to the EXE you downloaded and backup then re-register your paths.  

2nd thing is the Crosswalk verison, the crosswalk version you downloaded is for API14 or higher so you need to have API14 or higher installed Via your Android SDK Manager.

3rd thing is HDD Disk space, You will need 2Gb of empty HDD space per 300MB of APK file, it means if you want to creat an apk file with a volume of 300MB you will need at least 2GB of free space on your hard disk only for the creating process, so check your HDD space before you hit that build button.
in the video i stated " if you make a mistake with your paths,  you must revert to your back up"  assuming you created one.  So yes,  I'm aware of what it does.  the 2nd thing is also cover in the video. 

if you would like to use a batch file to create your apk

if you would like,  you can create a batch file to make it easier to compile.  I'm changing this in version 3 of the exe to not delete it when its finished.

example below,  but you need to replace it with your own stuff

replace the path at the end of CD to your www folders path,  replace c:\crosswalk with the path of your make_apk file

CD C:\Users\tom\Desktop\1\Fateless\www                                      ,
python C:\crosswalk-10.39.235.16\make_apk.py  --package=com.sample.sampe  --manifest=manifest.json
DEL final.bat
Pause
Hi Faytless

Thanks for making this video. However, I have a couple of questions. I want to make my game run on iPad instead of android. What are the necessary steps to do that? As I see from your video this seems to only work for andriod and not iOS if I am correct.

So is it possible to use some aproach like this for iPad/iPhone? Will I be able to do it in windows or do I need a mac?

I have never done any app for iPad (nor andriod for that matter) so if you could explain to me step by step I would be ever so grateful.

Thanks 🙂
No matter what your going to need to own a mac. Not to compile or anything, but your ClientID can only be generated from a real Mac computer.

You can compile with xdk in windows, but xdk will require that you enter your clientID.

I don't have any documentation at this time for manually xonverting, I suggest looking at RM MRS knowledge base by pressing f1 in game, select platform support, then ios
I was able to create an apk file in Intel XDK. That was actually easy. Now how do I create a .obb file? I have the Android SDK but I don't see the "jobb tool" you're supposed to open. Any easy explanation for this? I don't understand coding in the slightest so I'm definitely going to need a step by step process.

Original thread: https://forums.rpgmakerweb.com/threads/android-ios-tl-dr-converting-your-project-using-the-manual-method.47780/