Moderator: OpenTTD Developers
I have started working on an Android port of OpenTTD. The code of the first version of this work has been posted here: http://gitorious.com/openttd-android You can do single player games, but sound, AI, and network content are not functional yet. I haven't posted a binary yet, as it's not ready for normal usage. However, you can download the source code and build a binary using the standard Android NDK tools. A description of the build steps is in the android/README.txt file of the repository. The application has been tested on the Nexus One and on the emulator, but it should work on any Android device that has Froyo (2.2).
Important! In order to be able to run the application on the device, you need to get the game content manually. The Android build automatically pre-packages game data from bin/data in the application package. You can either prepare the game data in that directory before doing the build, or you can copy the files after doing the build to the SD-card. The path in which OpenTTD will look for them is in the sd-card is /sdcard/openttd/data If the application doesn't run for some reason, try getting logs with logcat (adb logcat). Not all error displays have been hooked up yet, but OpenTTD debugging is routed through logcat.
The bare bones of OpenTTD are functioning now, but there remains much work to do before it's ready for use by the general public. If anyone would be interested in collaborating on the remaining work, please feel free to contact me so we can make sure we're dividing the work. We can really use all the help we can get to make the OpenTTD experience on Android match the one on the PC!
That is very very true, minimising changes to the code and feeding any patches for the small screen back to trunk will benefit development enormously, both for future updates to this branch and other small touchscreen devices in the future.bokkie wrote:As has been brought op before in various other low-res/small-screen/touch-screen ports: if you have improvements for them, please make small patches for trunk so it might be included and all can benefit.
Most of the changes to the existing codebase are generic and could eventually be taken to the main trunk. Android-specific changes are only compiled when building for Android. The goal is to keep these changes minimal and as generic as possible. For example, the changes to work around lack of RTTI on a platform are enabled if and only if __GXX_RTTI is off. That code could easily be integrated and all platforms without RTTI will benefit.SHADOW-XIII wrote:I would love to see it in official trunk but I assume it's fairly impossible due to having own development kit (NDK)
The questions that need to be asked though are:
1) Are developers on the official trunk willing to maintain these platform variations going forward;
2) When will the changes be mature enough for the official trunk.
I'd really like to see most of the changes back in the official trunk eventually. That makes maintaining the port easier and easier going forward Right now, there is still much work to do to get the port functioning and clean up the changes.
And in what way does making some android porter an official OpenTTD developer it unlikely that the Mac OS X debacle happens again? Or did you forget the fact that the Mac OS X porter has been an official OpenTTD developer for many years?SHADOW-XIII wrote:so it's not gonna end up like mac os we would need at least one dev in dev team to support android
That may be the case, but an "official" Android developer is the best bet for future support of the platform.Rubidium wrote:And in what way does making some android porter an official OpenTTD developer it unlikely that the Mac OS X debacle happens again? Or did you forget the fact that the Mac OS X porter has been an official OpenTTD developer for many years?SHADOW-XIII wrote:so it's not gonna end up like mac os we would need at least one dev in dev team to support android
openttd has been supporting dozens of platforms without the need of a "dedicated developer"... if a platform needs this, it is poor design of the platform.
Thanks MethiusMethius wrote:Hey,
Just want to say that it's an incredible development!
Only, is this the same version as can be found here: http://code.google.com/p/openttd-android/?
As this version has modified UI, and binaries in APK form
There are currently two parallel efforts going on. I'm working with the maintainer of that port to see what we can do to join efforts in a single codebase.
Please be aware that neither port is by far ready for non-developers. There are many missing features and both ports are unstable. This is the reason for me not to maintain a binary APK yet, although you could easily build one from the code.
- Posts: 1238
- Joined: 17 Jul 2007 01:36
- Skype: moonray_zdo
- Location: Teh matrix, duh.
Users browsing this forum: No registered users and 8 guests