News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

Github action workflow for android nightly build

Started by krosk, August 17, 2021, 08:12:08 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

prissi

THere seems now a special keycode for this. Maybe it works in r10181

Yona-TYT

Regarding themes, I would like to increase the drag area to resize windows as it is very tedious to focus with my device.

The "gui_gadget_width" parameter does just that, but I don't think it changes the size of the resize area (or if it is?). ???


prissi

Android need some more patches to the simuconf.tab, like to activate the roboto TTF in 17 points and maybe using the large theme as default (and teh large them need indeed larger corners.

Andarix

Quote from: Yona-TYT on October 19, 2021, 03:28:22 AM
Regarding themes, I would like to increase the drag area to resize windows as it is very tedious to focus with my device.

The "gui_gadget_width" parameter does just that, but I don't think it changes the size of the resize area (or if it is?). ???

https://forum.simutrans.com/index.php/topic,21181.0.html

Yona-TYT

Quote from: Dwachs on October 16, 2021, 12:22:06 PMShould be better in r10159. Size is taken to be maximum of the resizer-image and scrollbar sizes.
I think that if the size of the scroll bars is increased, then the resizing corners should increase as well.  8)
Quote from: prissi on October 19, 2021, 06:48:28 AMpoints and maybe using the large theme as default (and teh large them need indeed larger corners.
The large modern theme works decent for me, my only complaint is the corners I mentioned earlier.





@Prissi, can you make the windows roll up? On PC this is done with a secondary click on the title bar but ... What do you think about holding down the title bar for a few seconds on Android? 

prissi

Holding down a few seconds is unfortunately not something done easily with the event system. Holding down with two gingers is possible, in principle.

Yona-TYT

Quote from: prissi on October 21, 2021, 03:22:56 AM
Holding down a few seconds is unfortunately not something done easily with the event system. Holding down with two gingers is possible, in principle.
And how about double clicking?.

prissi

#112
EDIT: Double tap will be recognised by Simutrans already, but only if the finger is is the exact same position. So about every 5th to 20th trial ... It will also change the rollup state in r10186.

The double click is also used in depots, so buying vehicles there has the same difficulties.

Yona-TYT

Quote from: prissi on October 21, 2021, 07:45:13 AMThe double click is also used in depots, so buying vehicles there has the same difficulties.
It is not that difficult for me, maybe it will work well.  8)




The icons in the title bar are still a challenge for me, they are very difficult to target and it is very frustrating.

In some android browsers they implement a small preview box that shows the area of the touch but on a more enlarged scale, this allows to press the button comfortably.






Yona-TYT

Quote from: prissi on October 21, 2021, 07:45:13 AMEDIT: Double tap will be recognised by Simutrans already, but only if the finger is is the exact same position. So about every 5th to 20th trial ... It will also change the rollup state in r10186
This is great! ... I will update and test tonight. 😎

Yona-TYT

I have tried the latest changes:

The configurations are still not saved, it seems that when the closing process is executed from the process manager, the android system does not give simutrans time to save anything (forcibly closing apparently). If instead we close from the "Quit" button, simutrans only destroys the map, it closes and immediately a system window appears indicating that "Simutrans has stopped" (This exits if an app has a malfunction).

prissi

I finally tested it on a Fire tablet. The first test was fine, it could start the keyboard was hidden, the game was like when left. Only the mid played one (chopped and did not stopped even when youtube played.

Second time, I could not hide the keyboard.anymore. I think somehow the hide keyboard feature is overwritten.

prissi

I have made some progress, and I think the keyboard handling is more like it should be, as well as the finger usage.

I am using bluestacks (and emulator) for testing, but it might happen on any device:

11-03 23:23:06.616  3514  3537 D com.simutrans: Debug: action_triggered libcurl initialized
11-03 23:23:07.884  3514  3537 D com.simutrans: Debug: action_triggered pak target https://downloads.sourceforge.net/project/simutrans/pak64.japan/120-0/simupak64.japan-120-0-1.zip
11-03 23:23:07.884  3514  3537 D com.simutrans: Debug: action_triggered download successful to /storage/emulated/0/Android/data/com.simutrans/files/pak64.japan-120-0-1.zip, attempting extract
11-03 23:23:07.885  3514  3537 D com.simutrans: Debug: read_zip cannot open zip archive "/storage/emulated/0/Android/data/com.simutrans/files/pak64.japan-120-0-1.zip": Seek error: Value too large for defined data type
11-03 23:23:07.885  3514  3537 D com.simutrans: Debug: read_zip zip archive opened
--------- beginning of crash

Yona-TYT

Quote from: prissi on November 03, 2021, 02:24:23 PM
I have made some progress, and I think the keyboard handling is more like it should be, as well as the finger usage.

I am using bluestacks (and emulator) for testing, but it might happen on any device:

11-03 23:23:06.616  3514  3537 D com.simutrans: Debug: action_triggered libcurl initialized
11-03 23:23:07.884  3514  3537 D com.simutrans: Debug: action_triggered pak target https://downloads.sourceforge.net/project/simutrans/pak64.japan/120-0/simupak64.japan-120-0-1.zip
11-03 23:23:07.884  3514  3537 D com.simutrans: Debug: action_triggered download successful to /storage/emulated/0/Android/data/com.simutrans/files/pak64.japan-120-0-1.zip, attempting extract
11-03 23:23:07.885  3514  3537 D com.simutrans: Debug: read_zip cannot open zip archive "/storage/emulated/0/Android/data/com.simutrans/files/pak64.japan-120-0-1.zip": Seek error: Value too large for defined data type
11-03 23:23:07.885  3514  3537 D com.simutrans: Debug: read_zip zip archive opened
--------- beginning of crash

That's great, I'll try what I have time.

By the way, you were right with the double click, it is very difficult to get it to minimize / roll the windows. 😒

prissi


prissi

r10219 should finally have Android support that is mostly working. It should hide the keyboard, install paks, mute midi in background and saves settings on exit. Unfortunately, it still does not save games on exit.


prissi

I think this is a problem with Autodpi. It probably needs to enforce that at least 600 pixcels are seen in vertical resolution ... All my test devices had higher resolution though

Yona-TYT

Quote from: prissi on November 11, 2021, 03:03:23 AMI think this is a problem with Autodpi. It probably needs to enforce that at least 600 pixcels are seen in vertical resolution ... All my test devices had higher resolution though
Well I think I will try again with the last revision.







Another detail, the automatic detection of the language for SDL2 does not seem to be working well in android, since the language in my device is "Spanish", but the selected one is "English".  ??? 

Yona-TYT

Now the Android package weighs 77.4mb, that's a big relief for me. 😎

Yona-TYT

Is it possible to use an svg as an icon in android ?.  8) 
I would love for us to use a more modern image like the one attached:

prissi

I have no idea, this is quite complicated, since I have only very indirect control on the actual building process.

prissi

Unfortunenately Google does no longer accepts apk for Upload to google play. Since the building of abb is very complex using the current github, the next release will not have an official Android version on Play Store anytime soon. (There will be one on Sourceforge).

prissi

#128
Maybe here is a working play store link (for the first 100 users) for simutrans aab
https://play.google.com/apps/internaltest/4699671641439592866

Flemmbrav

I'm not "invited", does that mean we have 100 users already? That's awesome!

Roboron

We could also consider distributing Simutrans on F-Droid, since we are open source. But I don't have much knowledge about the process, I only know that build instructions must be specified so that F-Droid can run their own builds (so one doesn't actually submit the apk nor any binary).

prissi

Maybe I need to get your Email for your google account via pm or email to invite.

Andarix

nightly-android-bundle.yml

Quote...
2021-12-31T08:14:01.9443744Z > Task :app:bundleRelease
2021-12-31T08:14:01.9444208Z
2021-12-31T08:14:01.9444718Z BUILD SUCCESSFUL in 16s
2021-12-31T08:14:01.9446107Z 35 actionable tasks: 9 executed, 26 up-to-date
2021-12-31T08:14:01.9833409Z ##[group]Run svenstaro/upload-release-action@v1-release
2021-12-31T08:14:01.9833961Z with:
2021-12-31T08:14:01.9835271Z   repo_token: ***
2021-12-31T08:14:01.9835862Z   file: /android-sdl/project/app/build/outputs/bundle/release/simutrans.aab
2021-12-31T08:14:01.9836483Z   asset_name: simutrans.aab
2021-12-31T08:14:01.9836872Z   tag: Nightly
2021-12-31T08:14:01.9837231Z   overwrite: true
2021-12-31T08:14:01.9837555Z env:
2021-12-31T08:14:01.9837982Z   ANDROID_HOME: /opt/android-sdk-linux
2021-12-31T08:14:01.9838520Z   ANDROID_SDK_HOME: /opt/android-sdk-linux
2021-12-31T08:14:01.9839079Z   ANDROID_SDK_ROOT: /opt/android-sdk-linux
2021-12-31T08:14:01.9839624Z   ANDROID_SDK: /opt/android-sdk-linux
2021-12-31T08:14:01.9840078Z   action_state: yellow
2021-12-31T08:14:01.9840441Z ##[endgroup]
2021-12-31T08:14:02.6308344Z ##[error]ENOENT: no such file or directory, stat '/android-sdl/project/app/build/outputs/bundle/release/simutrans.aab'
2021-12-31T08:14:02.6370188Z Cleaning up orphan processes
2021-12-31T08:14:02.6743308Z Terminate orphan process: pid (40841) (java)

Yona-TYT

Since the r10219 it is impossible for me to test, the performance is very bad, just 3fps.

I am concerned that other users will present this performance problem, I assume that hardware acceleration is needed to improve this, right?

prissi

The optimised builds should have better performance. I admid, I could not test it on the old Huwei (Android 9) I got, Simutrans did not start.

Yona-TYT

Quote from: prissi on January 02, 2022, 11:57:24 AM
The optimised builds should have better performance. I admid, I could not test it on the old Huwei (Android 9) I got, Simutrans did not start.
Where do I get the optimized builds?

The one I have I downloaded from GitHub.

Yona-TYT


prissi

There were no SDL2 display related changes in recent releases, thus the github should work as before. I will ivestigate.

MobileGlotze

Group is full? So I have to play with the Nightly build apk and a stable version comes not in the near future?

Yona-TYT

@prissi

About the double click, is it possible that it is fulfilled if the second click is not exactly in the same place?

For example, when minimizing / rolling windows I have problems with touch, since it is difficult to click twice in the same place.

But in my humble opinion, I think the second click would be valid if it is done in the same title bar (other than in exactly the same place).