Compile from source - matthewn4444/onscripter-plus-android GitHub Wiki
This page details how to install Eclipse and setup the environment to compile ONScripter Plus for Android.
Download the source
Git: git clone https://github.com/matthewn4444/onscripter-plus-android.git
Direct: Source zip
Install Java and Eclipse (Android) SDK
Java Environment: https://www.java.com/en/
Eclipse with Android: https://developer.android.com/sdk/index.html
Android NDK: http://developer.android.com/tools/sdk/ndk/index.html
Configure Eclipse and Android SDK/NDK
-
Run "Android SDK Manager" and install
- Tools/ (All)
- Android 2.2 - Api 8 (All)
- Extras/ [Support Repo, Support Library, Google USB Driver, Google Web Driver]
- Android 4.0+ (anything newer)
-
To setup NDK, from Eclipse open: "Window -> Preference -> Android -> NDK" and browse the location of your NDK installation. C:{folder to ndk}\android-ndk
Import project and configure it
-
Import the projects: File -> Import... -> Android -> Existing Android Code Into Workspace -> [Then find the repos]
- Import the main project, ONScripter (library) and SherlockActionBar project
-
Add native (NDK) support (if it doesn't have it already) to the ONScripter library
- Right-click the project
- "Android Tools -> Add Native Support"
-
Add the video submodule, configure and compile it
- Read how to compile VPlayer_lib with ONScripter Plus for more details
- Alternatively, you can remove video altogether by deleting lines of code out of the ONScripterGame fragment to not play video
Build and run
From here you can build the application via Eclipse and run it on your device. If any issues you can email [email protected]
Updating the ONScripter version
Since this fork does change the ONScripter's engine, it might be hard to update the source code. The current build uses "onscripter-20131223"
-
Download new version of ONScripter (do not use ONScripter-EN) from http://onscripter.sourceforge.jp/onscripter.html
-
Delete the folder "onscripter-plus/jni/application/onscripter-20131223" and place the new version there instead
-
[OLD PATCH] Apply the patch (hopefully it will work without too many conflicts).
git apply --ignore-space-change --ignore-whitespace onscripter-20131223.patch
Then build a fix merging issues.
If you would like an up-to-date patch, please email me for one.