Really sorry for the noob question, but I've been struggling for hours trying to find out how.
I've decided to clone the source code, edit some values to make my experience a bit better and I really cannot find a way how to compile it into a .apk file.
I've tried using android-studio and I got emulator working, but I didn't find a way to compile, as it gave me a "no runner" error. Using the files in travis directory didn't really help either since it seems the scripts there are made for debian, and I use arch.
Any help?
v0.7.17 released to Google Play!
Useful links
Source code of the game - Contribution guide - ATCS Editor - Translate the game on Weblate - Example walkthrough - *NEW* Andor's Trail Directory - Join the Discord
Get the game from Google, our server, or itch.io
Useful links
Source code of the game - Contribution guide - ATCS Editor - Translate the game on Weblate - Example walkthrough - *NEW* Andor's Trail Directory - Join the Discord
Get the game from Google, our server, or itch.io
How do I compile Andor's Trail from source?
-
- Posts: 1
- Joined: Sat May 21, 2022 7:33 am
- android_version: 4.4 - Kitkat
- Nut
- Posts: 1019
- Joined: Mon Oct 27, 2014 12:14 pm
- android_version: 8.0
- Location: Glade
Re: How do I compile Andor's Trail from source?
Hi Miuzu, welcome to our forum!
good that you asked, because you would have struggled still for days or weeks, because you must know a few things about the compile.
First thing is that the base of the engine is rather old. It is not possible to compile it with actual AndroidStudio versions.
(We don't have anybody in the dev team at the moment who is willing and capable to modernize the engine so that it works with actual AndroidStudio versions. I myself use AndroidStudio 2.2.2 and never updated it)
You would best use rijackson741's saved version: https://www.dropbox.com/s/cy924oqpaori5 ... s.exe?dl=0
Get the official and actual Andors-Trail sources from https://github.com/AndorsTrailRelease/andors-trail.
When you import the project, AndroidStudio will offer to migrate it to Gradle. DON'T do that, it won't work afterwards.
Then you can try to build the APK and get it running. Best use the "Run" option, so that AndroidStudio will compile it first and then launch it.
(I myself use an old phone via USB as target. It must have been prepared for debugging before you can do it.
But you can also use a virtual device on your PC)
good that you asked, because you would have struggled still for days or weeks, because you must know a few things about the compile.
First thing is that the base of the engine is rather old. It is not possible to compile it with actual AndroidStudio versions.
(We don't have anybody in the dev team at the moment who is willing and capable to modernize the engine so that it works with actual AndroidStudio versions. I myself use AndroidStudio 2.2.2 and never updated it)
You would best use rijackson741's saved version: https://www.dropbox.com/s/cy924oqpaori5 ... s.exe?dl=0
Get the official and actual Andors-Trail sources from https://github.com/AndorsTrailRelease/andors-trail.
When you import the project, AndroidStudio will offer to migrate it to Gradle. DON'T do that, it won't work afterwards.
Then you can try to build the APK and get it running. Best use the "Run" option, so that AndroidStudio will compile it first and then launch it.
(I myself use an old phone via USB as target. It must have been prepared for debugging before you can do it.
But you can also use a virtual device on your PC)
Nut
_____
Moppl *, Conina Lvl 46, Lara: Lvl 49, Anwyn: Lvl 52, Nut: Lvl 61
_____
Moppl *, Conina Lvl 46, Lara: Lvl 49, Anwyn: Lvl 52, Nut: Lvl 61