Android port

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
DeletedUser10
Traffic Manager
Traffic Manager
Posts: 204
Joined: 01 Jun 2017 10:03

Re: Android port

Post by DeletedUser10 »

It's a terrible feature.
I installed on the Amazon Fire TV and it crashes whenever I clicked cloud save.
Is it a SDL bug?
Sent from my Ubuntu 16.04 LTS
pelya
Transport Coordinator
Transport Coordinator
Posts: 345
Joined: 18 Nov 2010 19:48
Contact:

Re: Android port

Post by pelya »

Yes it's a bug. Un-check the 'Save to network' button, it should stop crashing.
I'll try to fix it if I get an Amazon tablet.
User avatar
CN
Engineer
Engineer
Posts: 23
Joined: 28 Nov 2004 16:50
Location: Toronto

Re: Android port

Post by CN »

pelya wrote:New release 1.7.1.70 removes 'switch toolbar' button, and puts all actions into submenus, the setting is called 'Compact vertical toolbar'.

Did anyone notice window border ornament in Android version? I am kind of worried, it's been half-year already, and no one has complained about this. Did I pick too muted color for it?
I noticed the window edges were different. But I switched phones exactly at the time that you made this update, so I attributed it to the different phone ;)

Also, the cloud save feature works? Or was that just to get the SDL stuff to work?
User avatar
DeletedUser10
Traffic Manager
Traffic Manager
Posts: 204
Joined: 01 Jun 2017 10:03

Re: Android port

Post by DeletedUser10 »

Actually what can i do with cloud save?
Sent from my Ubuntu 16.04 LTS
User avatar
DeletedUser10
Traffic Manager
Traffic Manager
Posts: 204
Joined: 01 Jun 2017 10:03

Re: Android port

Post by DeletedUser10 »

And i also noticed that sdl ottd works slowly, even on my nvidia shield with 2.2Ghz x4
Why?
Sent from my Ubuntu 16.04 LTS
pelya
Transport Coordinator
Transport Coordinator
Posts: 345
Joined: 18 Nov 2010 19:48
Contact:

Re: Android port

Post by pelya »

When you save your game with 'Save to network' enabled, you can click 'Load from network' on a different phone, and load your savegame.
Also works if you uninstall OpenTTD or factory reset your phone.
That's all it does.
User avatar
DeletedUser10
Traffic Manager
Traffic Manager
Posts: 204
Joined: 01 Jun 2017 10:03

Re: Android port

Post by DeletedUser10 »

I see.
Could it transfer grf between 2phones?
Sent from my Ubuntu 16.04 LTS
pelya
Transport Coordinator
Transport Coordinator
Posts: 345
Joined: 18 Nov 2010 19:48
Contact:

Re: Android port

Post by pelya »

No. Select network-save.sav and click the button 'Find missing content online' to re-download missing NewGRFs.
User avatar
NewGRF
Engineer
Engineer
Posts: 11
Joined: 04 Apr 2017 02:36

Re: Android port

Post by NewGRF »

I got two errors,when I unzip "OpenTTD-1.7.1.70-src.tar".
Platform:Windows 10,NTFS,7zip

I am lost. :bow:
Attachments
2.png
(106.67 KiB) Not downloaded yet
1.png
(106.86 KiB) Not downloaded yet
pelya
Transport Coordinator
Transport Coordinator
Posts: 345
Joined: 18 Nov 2010 19:48
Contact:

Re: Android port

Post by pelya »

Android version of OpenTTD will not work on Windows PC. Try to use Windows version from here: https://www.openttd.org/en/download-stable
User avatar
NewGRF
Engineer
Engineer
Posts: 11
Joined: 04 Apr 2017 02:36

Re: Android port

Post by NewGRF »

thanks to pelya. :bow: :bow: :bow:
I'm sorry for my ignorant.
I want to research the source code .
thank you again. :bow: :bow: :bow:
pelya
Transport Coordinator
Transport Coordinator
Posts: 345
Joined: 18 Nov 2010 19:48
Contact:

Re: Android port

Post by pelya »

Android version has a lot of modifications on top of the original sources.
Original sources: https://www.openttd.org/
Android sources: https://sourceforge.net/projects/libsdl ... k/OpenTTD/

And yes, it's that src.tar.xz package that you have downloaded earlier. You will need Linux or MacOs to compile Android version, it cannot be done on Windows because of symlinks in the archive.
User avatar
NewGRF
Engineer
Engineer
Posts: 11
Joined: 04 Apr 2017 02:36

Re: Android port

Post by NewGRF »

thanks :bow: :bow: :bow:
User avatar
DeletedUser10
Traffic Manager
Traffic Manager
Posts: 204
Joined: 01 Jun 2017 10:03

Re: Android port

Post by DeletedUser10 »

The android ottd ui is excellent.
Do you have SDL ottd for Linux or some other os?
Sent from my Ubuntu 16.04 LTS
pelya
Transport Coordinator
Transport Coordinator
Posts: 345
Joined: 18 Nov 2010 19:48
Contact:

Re: Android port

Post by pelya »

Yes, there is a build of OpenTTD with the same touch interface for Windows tablets: viewtopic.php?t=75868
User avatar
DeletedUser10
Traffic Manager
Traffic Manager
Posts: 204
Joined: 01 Jun 2017 10:03

Re: Android port

Post by DeletedUser10 »

pelya wrote:Yes, there is a build of OpenTTD with the same touch interface for Windows tablets: viewtopic.php?t=75868
I'm not using win.
Is there any sdl for Linux?
Sent from my Ubuntu 16.04 LTS
User avatar
DeletedUser10
Traffic Manager
Traffic Manager
Posts: 204
Joined: 01 Jun 2017 10:03

Re: Android port

Post by DeletedUser10 »

I use a x86 tab with ubuntu.
Sent from my Ubuntu 16.04 LTS
pelya
Transport Coordinator
Transport Coordinator
Posts: 345
Joined: 18 Nov 2010 19:48
Contact:

Re: Android port

Post by pelya »

To build touch version of OpenTTD for Ubuntu:

1. sudo apt-get build-dep openttd
2. Download the -src.tar.xz archive from here: https://sourceforge.net/projects/libsdl ... k/OpenTTD/
3. tar xvf OpenTTD-*-src.tar.xz
4. cd project/jni/application/openttd/src
5. ./configure
6. make -j8

Delete your ~/.openttd/openttd.cfg to enable various touch interface options.
User avatar
DeletedUser10
Traffic Manager
Traffic Manager
Posts: 204
Joined: 01 Jun 2017 10:03

Re: Android port

Post by DeletedUser10 »

Fantastic!
I don't have to be confused with the SMALL buttons of OpenTTD anymore.
Sent from my Ubuntu 16.04 LTS
jil8885
Engineer
Engineer
Posts: 7
Joined: 01 Mar 2015 14:36
Location: Ansan,Korea

Re: Android port

Post by jil8885 »

I try to port JGR Pack for android, and I got information from OpenTTD Wiki("Apply Patch from Linux"). But when I started to use svn from project/jni/application/src/src, after I patch successfully and run build.sh on root folder, it stuck at waiting for unfinished works..... I think its problem is that source in src folder is not modified for android, what shell I do in that time? And is there any one who can modify normal OpenTTD source for Android?
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 1 guest