The International Simutrans Forum

 

Author Topic: Github action workflow for android nightly build  (Read 7566 times)

0 Members and 1 Guest are viewing this topic.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #105 on: October 19, 2021, 03:14:14 AM »
THere seems now a special keycode for this. Maybe it works in r10181

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #106 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?). ???

 

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #107 on: October 19, 2021, 06:48:28 AM »
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.

Offline Andarix

  • *
  • Posts: 336
  • Languages: de
Re: Github action workflow for android nightly build
« Reply #108 on: October 19, 2021, 07:06:57 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

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #109 on: October 20, 2021, 10:00:04 PM »
Should 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)
points 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? 

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #110 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.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #111 on: October 21, 2021, 03:25:52 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?.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #112 on: October 21, 2021, 07:45:13 AM »
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.
« Last Edit: October 21, 2021, 01:11:27 PM by prissi »

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #113 on: October 21, 2021, 02:29:59 PM »
The 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.


 



Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #114 on: October 21, 2021, 06:26:44 PM »
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
This is great! ... I will update and test tonight. 😎

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #115 on: October 28, 2021, 01:53:41 AM »
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).

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #116 on: October 28, 2021, 12:08:32 PM »
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.

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #117 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:
Code: [Select]
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

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #118 on: November 03, 2021, 04:20:41 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:
Code: [Select]
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. 😒

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #119 on: November 04, 2021, 04:13:55 AM »
THis is currently only on my playground branch: https://github.com/prissi/simutrans/actions

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #120 on: November 06, 2021, 02:54:54 PM »
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.

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #121 on: November 10, 2021, 06:00:25 PM »
En la última revisión tengo problemas con la resolución de la pantalla. ☹️

https://www.mediafire.com/view/0g89xqlbwli974p/Screenshot_20211110-134824.jpeg/file



Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #122 on: November 11, 2021, 03:03:23 AM »
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

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #123 on: November 13, 2021, 02:57:36 AM »
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
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".  ??? 

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #124 on: November 21, 2021, 08:44:52 PM »
Now the Android package weighs 77.4mb, that's a big relief for me. 😎

Offline Yona-TYT

  • Devotee
  • *
  • Posts: 1793
    • Simutrans-BLOG
  • Languages: ES
Re: Github action workflow for android nightly build
« Reply #125 on: November 23, 2021, 03:49:28 PM »
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:
 

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10979
  • Languages: De,EN,JP
Re: Github action workflow for android nightly build
« Reply #126 on: November 24, 2021, 03:35:03 AM »
I have no idea, this is quite complicated, since I have only very indirect control on the actual building process.