aliens

Author Topic: OpenXcom for Android - new official thread  (Read 350168 times)

Offline jmf

  • Captain
  • ***
  • Posts: 60
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #210 on: February 23, 2017, 11:52:09 pm »
also, games dont save on ufo defense but do on terrof from the deep

Offline bukimi

  • Sergeant
  • **
  • Posts: 10
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #211 on: February 24, 2017, 10:36:52 am »
also, games dont save on ufo defense but do on terrof from the deep

Well, I never had any problems with saving. Do you have any error message or your saves just disappear?

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9047
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #212 on: March 26, 2017, 12:15:23 pm »
Hi Sfalexrog,

I tried building the OpenXcom for Android myself (latest commit: 11257d7) using your compilation instructions and everything went quite fine.

I used:
- Android SDK Build-Tools 25.0.1 (see attached for specific package versions)
- Android SDK Platform 23
- Android NDK n14b
- Gradle 2.14.1
- jdk1.8.0_74

Using "gradlew assemble", I got this unsigned APK: https://drive.google.com/open?id=0B8itkFQbhj-YOU1KXzNWLWgteEk

Can I use your gradle build script to produce a signed APK too somehow?
I see some config there, but don't know how to use it...

Anyway I signed the app myself (manually) and produced this signed and zip-aligned APK: https://drive.google.com/open?id=0B8itkFQbhj-YMnpBUVVmRmtsaVk

It installs fine and runs same like your APK, but there are issues with sounds:
- with v1.4 sounds... they are extremely loud (clipping) and are cut off (don't play until end, as far as I can say) and low quality (might be related to loudness/clipping)
- with v1.0 sounds... volume is OK, but they are also cut prematurely

For example:
- button click sound
- heavy plasma fire sound
- soldier death sound
- and so on...

Any idea what could be wrong? Are you getting the same issue?

PS: tested on "Samsung Galaxy Tab 3 10.1" tablet (Android 4.4.2) and "Lenovo Vibe P1 Pro" phone (Android 6.0.1)

PS2: also as SupSuper mentioned above, the game freezes or becomes unresponsive quite a lot after leaving Options dialog. This happens using both your latest published APK and my newest APK. https://openxcom.org/forum/index.php/topic,2428.msg51749.html#msg51749 But this is not such a big issue. The sounds issue however makes the game almost unplayable, so I'd love to know how to fix or avoid it.



EDIT:

OK, so I downgraded to commit 7c1ee9c (not a8e05cf) and this one doesn't have the sound issue.

For anyone who would like to try themselves, I used also different build tool versions:
- Android SDK Build-Tools 21.1.2
- Android SDK Platform 22
- Android NDK n10e
- Gradle 2.2.1

Now to try to integrate with OXCE+ 8)
Unfortunately the recommended way -- merge OXCE+ into sdl2 branch -- is not possible... the whole source is just one big merge conflict by now.
I'll try to merge sdl2 branch into OXCE+ instead; or redo the whole stuff from scratch.
« Last Edit: March 27, 2017, 05:07:23 pm by Meridian »

Offline sambojin

  • Captain
  • ***
  • Posts: 78
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #213 on: March 27, 2017, 02:38:54 am »
Just a quick report that your version seems to work fine Meridian. My phone is a Huawei G526-L22 with 1gig of ram, running android 4.1.2.  So pretty old and low spec.

Was using the signed version, which is reporting itself as OXC 1.011257d7, so a very recent one compared to the old android release (which reports itself as OXC 0.9 on my version).

Haven't run into the sound bugs yet, but I've only just opened a test game. I'll edit this if something comes up.

Might see how it goes with mods too, just for a laugh.
« Last Edit: March 27, 2017, 02:46:08 am by sambojin »

Offline Nord

  • Commander
  • *****
  • Posts: 1744
  • The Gate is open.
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #214 on: March 30, 2017, 01:44:59 pm »
Unbelievable! I waited for it so long... Thank you very much, Meridian!

Offline xracer

  • Commander
  • *****
  • Posts: 565
  • X-COM lover, we've gone at it everywhere
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #215 on: June 01, 2017, 05:12:44 pm »
So where is the APK with no sounds issues?  ::)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9047
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #216 on: June 01, 2017, 05:19:15 pm »

Offline xracer

  • Commander
  • *****
  • Posts: 565
  • X-COM lover, we've gone at it everywhere
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #217 on: June 01, 2017, 06:01:20 pm »
Awesome Thanks!!!!!

Offline pancho

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #218 on: June 07, 2017, 11:24:34 am »
Many thanks for the Android build, now I can experience one of my favorite games on my Android tablet!
Any chance to build Android version basing on Nightly build 2017-04-15 or later in order to launch the latest Final Mod Pack ?

Online Solarius Scorch

  • Global Moderator
  • Commander
  • *****
  • Posts: 11702
  • WE MUST DISSENT
    • View Profile
    • Nocturmal Productions modding studio website
Re: OpenXcom for Android - new official thread
« Reply #219 on: June 07, 2017, 06:31:39 pm »
Many thanks for the Android build, now I can experience one of my favorite games on my Android tablet!
Any chance to build Android version basing on Nightly build 2017-04-15 or later in order to launch the latest Final Mod Pack ?

You can try the OXCE+ version, which is not exactly up to date, but should be new enough.
https://openxcom.org/forum/index.php/topic,5409.0.html

Offline pancho

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #220 on: June 07, 2017, 10:33:44 pm »
That's actually the version I installed and it was created one day before the latest version Final Mod Pack requires.
But anyway, the previous version of Final Mod Pack works fine on this OXCE+ Android version, so thank you :)

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9047
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #221 on: July 17, 2017, 03:36:41 pm »
It installs fine and runs same like your APK, but there are issues with sounds:
- with v1.4 sounds... they are extremely loud (clipping) and are cut off (don't play until end, as far as I can say) and low quality (might be related to loudness/clipping)
- with v1.0 sounds... volume is OK, but they are also cut prematurely

For example:
- button click sound
- heavy plasma fire sound
- soldier death sound
- and so on...

Hi again sfalexrog,

I see you have done some changes regarding sound issues: https://github.com/sfalexrog/openxcom-android/commit/3ea57a3651df540fbc31b2ab10bf8bf31acab450

I tried compiling the newest version (5354d18), but I still have the same issues.
The only way to resolve this for me is to downgrade to 4f9eb95.

Can you please confirm you still have the issues, or it's just me?

Offline kutchinka1

  • Squaddie
  • *
  • Posts: 4
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #222 on: July 21, 2017, 09:58:05 pm »
hey guys. where is the mods folder located? i can't really find it.
thx.

Offline sfalexrog

  • Captain
  • ***
  • Posts: 56
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #223 on: August 03, 2017, 09:19:37 pm »
Hey everyone! Sorry for not really being a part of the community for so long. Had a rough year, didn't really do much in terms of maintaining the port. Still, I'm not dead yet, and I'll try to contribute whenever possible!

Having said that, I've managed to get some use from Travis, and now there will be automated builds for OpenXcom-android on my Github page: https://github.com/sfalexrog/openxcom-android/releases - these are all signed and are slimmer than the ones I used to produce (but are single-arch).

There are still some bugs that I know of and hope to fix eventually, and lots of bugs that I don't know about. I'll try and read through everything I've missed, but, chances are, I'll miss a lot. I know, github issues seem intimidating and for many that's yet another service that they'll have to register at, but I'd be really happy if you wrote about your bugs there!  :)

Can you please confirm you still have the issues, or it's just me?

The sound issues come from using the bleeding edge SDL version. There was a major rewrite of the resampler, and as a result sound got broken. I hoped it would get fixed soon, but alas, no such luck. So I guess I'm stuck with a sensible choice of using stable 2.0.5  :)

Offline Yataka Shimaoka

  • Colonel
  • ****
  • Posts: 284
  • I'm the trouble maker
    • View Profile
Re: OpenXcom for Android - new official thread
« Reply #224 on: August 04, 2017, 04:39:20 am »
Welcome back sfalexrog!! It is nice that you managed to keep up with the builds of OXC to port it on android, but question, are those builds from github up to date?