Author Topic: OXCE v7.12 for Android  (Read 134775 times)

Offline Yankes

  • Commander
  • *****
  • Posts: 3194
    • View Profile
Re: OXCE v7.5.3 for Android
« Reply #165 on: February 13, 2022, 09:54:04 pm »
How other screens look like?

Offline NNTeslaNN

  • Squaddie
  • *
  • Posts: 2
    • View Profile
Re: OXCE v7.5.3 for Android
« Reply #166 on: February 14, 2022, 08:31:45 am »
After I restarted phone everything fixed it self for some reason

Offline Caleb13

  • Sergeant
  • **
  • Posts: 22
    • View Profile
Mouse cursor broken after re-running the game
« Reply #167 on: March 26, 2022, 03:34:38 pm »
Hi, I tried playing TFTD with OCXE 7.5.3 on Samsung Galaxy Tab S7+ (part number SM-T970) which runs Android 12 (core 4.19.113-2322000). I play with a mouse connected via power delivery USB hub, so I enabled the Extended Mouse Mode and Show Cursor options. They work wonderfully until you close the game. When you re-run it, the ingame cursor becomes broken - it doesn't follow the mouse movents anymore and instead only jumps to positions you click/tap on. The only way to fix it is to reboot the entire tablet. The "use app cache" options in the launcher have no effect, it breaks regardless of their settings. If you need some logs to better debug this, please let me know.

BTW, after I first installed OXCE, I also had to reboot the tablet (like NNTeslaNN mentioned), otherwise the game didn't work properly. The main game was unplayable becase no USOs appeared for months and the Mission Generator was throwing missing file errors.

Offline Inglonias

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: OXCE v7.5.3 for Android
« Reply #168 on: April 06, 2022, 11:32:03 pm »
I wanted to report a consistent crash I am experiencing on my Pixel 5A with OXCE 7.5.3. This crash occurs whenever I try to preview my base or soldier arrangement on the skyranger. I am attaching a save file as well as the log file. I can reproduce the crash by tapping on XCOMmand's access lift to preview the base and go through the briefing screen. The preview feature works correctly on my Windows 10 laptop, so I suspect this problem is specific to Android in general, or my phone in particular for whatever reason.

I don't know how late to the party I am on this, but I figured I would report it as best able.

EDIT: Now that I actually look at the log file, it seems that the game is segfaulting and is not telling me where that segfault is happening. Very rude indeed. Is there a different build I can try to load onto my phone that could aid in debugging?
« Last Edit: April 06, 2022, 11:35:46 pm by Inglonias »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: OXCE v7.5.3 for Android
« Reply #169 on: April 06, 2022, 11:38:24 pm »
Thanks for the report.
I'll check if I can reproduce on my end.

Offline luplay2

  • Squaddie
  • *
  • Posts: 1
    • View Profile
Re: OXCE v7.5.3 for Android
« Reply #170 on: May 12, 2022, 10:30:21 am »
Thanks for your sharing!

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8597
    • View Profile
Re: OXCE v7.5.3 for Android
« Reply #171 on: August 02, 2022, 10:34:59 am »
EDIT: Now that I actually look at the log file, it seems that the game is segfaulting and is not telling me where that segfault is happening. Very rude indeed. Is there a different build I can try to load onto my phone that could aid in debugging?

I haven't found any good way how to output the stacktrace on the Android version yet.
It would help me a lot too.
If anyone knows, create a PR please.

I wanted to report a consistent crash I am experiencing on my Pixel 5A with OXCE 7.5.3. This crash occurs whenever I try to preview my base or soldier arrangement on the skyranger. I am attaching a save file as well as the log file. I can reproduce the crash by tapping on XCOMmand's access lift to preview the base and go through the briefing screen. The preview feature works correctly on my Windows 10 laptop, so I suspect this problem is specific to Android in general, or my phone in particular for whatever reason.

I don't know how late to the party I am on this, but I figured I would report it as best able.

I could not reproduce on my devices (samsung s7 and samsung a53), but it's been reported a few times, so there's definitely an issue.
And we have also a report from iOS now, with a stack trace! :) https://openxcom.org/forum/index.php/topic,10695.msg148126.html#msg148126
Hopefully this will be enough to fix the issue.

Offline howareyou32ny

  • Captain
  • ***
  • Posts: 65
  • Work hard and play hard lol
    • View Profile
Re: OXCE v7.6 for Android
« Reply #172 on: August 16, 2022, 03:35:41 pm »
Got problem for android guys

"
[13-08-2022_14-01-01]   [INFO]   Current locale is en-us
[13-08-2022_14-01-01]   [INFO]   OpenXcom Version: Extended 7.6 (v2022-07-15)
[13-08-2022_14-01-01]   [INFO]   Platform: Android 21
[13-08-2022_14-01-01]   [INFO]   Data folder is: /storage/emulated/0/openxcom/
[13-08-2022_14-01-01]   [INFO]   Data search is:
[13-08-2022_14-01-01]   [INFO]   - /storage/emulated/0/openxcom/
[13-08-2022_14-01-01]   [INFO]   User folder is: /storage/emulated/0/openxcom/
[13-08-2022_14-01-01]   [INFO]   Config folder is: /storage/emulated/0/openxcom/
[13-08-2022_14-01-01]   [INFO]   Options loaded successfully.
[13-08-2022_14-01-01]   [INFO]   SDL initialized successfully.
[13-08-2022_14-01-01]   [INFO]   SDL_mixer initialized successfully.
[13-08-2022_14-01-01]   [INFO]   Attempted locale:
[13-08-2022_14-01-01]   [INFO]   Detected locale:
[13-08-2022_14-01-01]   [INFO]   Setting GL format to RGB565
[13-08-2022_14-01-01]   [INFO]   Current _baseWidth x _baseHeight: 1408x678
[13-08-2022_14-01-01]   [INFO]   Attempting to set display to 1408x678x32...
[13-08-2022_14-01-01]   [INFO]   Attempting to create a new window since we have none yet
[13-08-2022_14-01-01]   [INFO]   Created a window, size is: 1408x678
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Listing available rendering drivers:
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]  Number of drivers: 3
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]  Driver 0: opengles2
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]    Number of texture formats: 4
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 0: SDL_PIXELFORMAT_ARGB8888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 1: SDL_PIXELFORMAT_ABGR8888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 2: SDL_PIXELFORMAT_RGB888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 3: SDL_PIXELFORMAT_BGR888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]  Driver 1: opengles
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]    Number of texture formats: 1
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 0: SDL_PIXELFORMAT_ABGR8888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]  Driver 2: software
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]    Number of texture formats: 8
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 0: SDL_PIXELFORMAT_ARGB8888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 1: SDL_PIXELFORMAT_ABGR8888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 2: SDL_PIXELFORMAT_RGBA8888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 3: SDL_PIXELFORMAT_BGRA8888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 4: SDL_PIXELFORMAT_RGB888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 5: SDL_PIXELFORMAT_BGR888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 6: SDL_PIXELFORMAT_RGB565
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer]     Texture format 7: SDL_PIXELFORMAT_RGB555
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Renderer created
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Created new SDLRenderer, using opengles2
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Current scaler is linear
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Texture pixel format set to SDL_PIXELFORMAT_ARGB8888
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Texture resolution set to 1408x678
[13-08-2022_14-01-01]   [INFO]   Display set to 1408x678x32
[13-08-2022_14-01-01]   [INFO]   Pre-bar scales: _scaleX = 1, _scaleY = 1
[13-08-2022_14-01-01]   [INFO]   Scale (post-bar): scaleX = 1, scaleY = 1
[13-08-2022_14-01-01]   [INFO]   Black bars: top: 0, left: 0
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Output resolution: 1408x678
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Offset: 0x0
[13-08-2022_14-01-01]   [INFO]   Setting GL format to RGB565
[13-08-2022_14-01-01]   [INFO]   Current _baseWidth x _baseHeight: 640x400
[13-08-2022_14-01-01]   [INFO]   Attempting to set display to 1408x678x32...
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Old scale hint: linear, new scale hint: linear
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Texture resolution set to 640x400
[13-08-2022_14-01-01]   [INFO]   Display set to 1408x678x32
[13-08-2022_14-01-01]   [INFO]   Pre-bar scales: _scaleX = 2.2, _scaleY = 1.695
[13-08-2022_14-01-01]   [INFO]   Scale (post-bar): scaleX = 1.695, scaleY = 1.695
[13-08-2022_14-01-01]   [INFO]   Black bars: top: 0, left: 162
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Output resolution: 1084x678
[13-08-2022_14-01-01]   [INFO]   [SDLRenderer] Offset: 162x0
[13-08-2022_14-01-01]   [INFO]   SDL reports this number of touch devices present: 1
[13-08-2022_14-01-01]   [INFO]   Loading data...
[13-08-2022_14-01-01]   [INFO]   Scanning standard mods in '/storage/emulated/0/openxcom/'...
[13-08-2022_14-01-01]   [INFO]   Scanning user mods in '/storage/emulated/0/openxcom/'...
[13-08-2022_14-01-01]   [INFO]   Skipped scanning user mods in the data folder, because it's the same folder as the user folder.
[13-08-2022_14-01-01]   [INFO]   Active mods:
[13-08-2022_14-01-01]   [INFO]   - xcom2 v1.0
[13-08-2022_14-01-01]   [INFO]   Loading begins...
[13-08-2022_14-01-01]   [INFO]   Pre-loading rulesets...
[13-08-2022_14-01-01]   [INFO]   Loading vanilla resources...
[13-08-2022_14-01-01]   [FATAL]   A fatal error has occurred: Segmentation fault.
[13-08-2022_14-01-01]   [FATAL]   Unfortunately, no stack trace information is available
[13-08-2022_14-01-05]   [FATAL]   OpenXcom has crashed: Segmentation fault.
Log file: /storage/emulated/0/openxcom/openxcom.log
If this error was unexpected, please report it on OpenXcom forum or discord.
The following can help us solve the problem:
1. a saved game from just before the crash (helps 98%)
2. a detailed description how to reproduce the crash (helps 80%)
3. a log file (helps 10%)
4. a screenshot of this error message (helps 5%)
"

Any fix for this guys?

Offline howareyou32ny

  • Captain
  • ***
  • Posts: 65
  • Work hard and play hard lol
    • View Profile
Re: OXCE v7.7 for Android
« Reply #173 on: August 25, 2022, 04:39:01 pm »
YEAH. Finally work in my phone. Thanks for all the hard work Mer. Please create a patreon so some of us can pay our respect for your work. Again. Appreciated.

Offline howareyou32ny

  • Captain
  • ***
  • Posts: 65
  • Work hard and play hard lol
    • View Profile
Re: OXCE v7.4 for Android
« Reply #174 on: August 27, 2022, 01:24:41 am »
Quote from: Flipbard on January 18, 2022, 01:24:23 pm

    what about a long press or a second finger press?  a long press works on the base screen, which means it is possible.  I really miss the middle click on the science screen and the middle and right click on the buy/sell screen


yes, that's possible
Can this be done Mer? right click is so important in base management. without it android version is hard to play as it already is.

Offline howareyou32ny

  • Captain
  • ***
  • Posts: 65
  • Work hard and play hard lol
    • View Profile
Re: Mouse cursor broken after re-running the game
« Reply #175 on: August 28, 2022, 05:52:10 am »
Hi, I tried playing TFTD with OCXE 7.5.3 on Samsung Galaxy Tab S7+ (part number SM-T970) which runs Android 12 (core 4.19.113-2322000). I play with a mouse connected via power delivery USB hub, so I enabled the Extended Mouse Mode and Show Cursor options. They work wonderfully until you close the game. When you re-run it, the ingame cursor becomes broken - it doesn't follow the mouse movents anymore and instead only jumps to positions you click/tap on. The only way to fix it is to reboot the entire tablet. The "use app cache" options in the launcher have no effect, it breaks regardless of their settings. If you need some logs to better debug this, please let me know.

BTW, after I first installed OXCE, I also had to reboot the tablet (like NNTeslaNN mentioned), otherwise the game didn't work properly. The main game was unplayable becase no USOs appeared for months and the Mission Generator was throwing missing file errors.
I have the same problems. Any fix on this guys?

Offline rbuck000

  • Sergeant
  • **
  • Posts: 23
    • View Profile
Re: OXCE v7.7 for Android
« Reply #176 on: September 02, 2022, 06:39:55 am »
Is there any way to put this on PSVITA?
There is a OpenXcom on vita but no OXCE.

Offline R1dO

  • Colonel
  • ****
  • Posts: 436
    • View Profile
Re: OXCE v7.7 for Android
« Reply #177 on: September 02, 2022, 11:43:44 am »
You might want to reach out to Northfear for that. This is the person that created the OXC port.

If you want to try porting yourself the following diff view might be handy:
https://github.com/OpenXcom/OpenXcom/compare/master...Northfear:OpenXcom-vita:master

It shows the differences with OXC, which could be used as starting point for an OXCE port.

Offline hubaj

  • Sergeant
  • **
  • Posts: 11
    • View Profile
Re: OXCE v7.7.3 for Android
« Reply #178 on: October 10, 2022, 10:36:28 am »
I have been playing on Android for some time and I really enjoy the improvements in battlescape (including advanced movement, hit log, custom night vision).

Would it be possible to add possibility to use right and middle mouse button to base menus? Specifically to manufacture (to be able to move all engineers with one click or to set infinite number of manufactured items), purchase and selling menus and loot menu (to be able to check what I already researched and can set to autosell). It already is in research menu in a way, though including button to middle click directly in research would be nice as well.

Offline metaltooth

  • Squaddie
  • *
  • Posts: 6
    • View Profile
Re: OXCE v7.8 for Android
« Reply #179 on: November 17, 2022, 09:34:44 pm »
Do you think you can change the function of the back button on android when running the game? I think itd be a better use of it if when you hit it itd back out of the current screen or bring up the escape button menu.