Contributions > Builds & Ports

OpenXcom for Android - new official thread

(1/59) > >>

sfalexrog:
(Because we totally don't have two threads already!)

Link to the latest version?
Here: https://openxcom.org/forum/index.php/topic,2428.msg50242.html#msg50242 (OMG TFTD)

Welcome!

Following in page's footsteps, I'm trying to bring OpenXcom to your Android devices. I'll be trying to catch up with the current git version of OpenXcom, with all new fixes and added features. Still, this port is not yet stable and crashes, glitches and generally weird behavior is to be expected.

Installation instructions


* Grab your X-com/OpenXcom data files and copy them to /sdcard/OpenXcom/data folder. If done right, you should (at least) have folders GEODATA, GEOGRAPH, MAPS, MISSDAT, ROUTES, SOUND, TERRAIN, UFOGRAPH, UFOINTRO and UNITS in your /sdcard/OpenXcom/data folder. If you're copying data from your OpenXcom installation, don't worry about other folders being copied over.
N.B.! Check where your /sdcard symlink points at with your favorite Android file manager! On some devices it might point to an actual SD card, on others it might be internal memory storage. Check twice where you're putting your data!
* Install the .apk (it should only ask you for storage access permissions, don't trust it if it asks for anything apart from that!).
* Run the .apk. On the first run you'll see a preloader screen. The preloader is non-interactive, all it does is checks if your files have the same version as the build, and if not, it overwrites them.
* If the preloader screen doesn't appear and you have a black DOS-like screen that tells you you're missing something, you've probably copied the data files to a wrong location. Check and re-check your paths! Note that /sdcard should point to the contents of your "external storage" and not be a subfolder on your memory card!
Features

* Pinch-to-zoom in geoscape mode
* Weapons are highlighted when aiming in battlescape mode
* ...probably something else that I'm forgetting about
Controls - MUST READ!
Since most Android devices are somewhat limited in terms of input, there are some differences in the main and Android versions.

* Turning can be accomplished by either swiping from your soldier in the direction you want or long-pressing on a tile you want to turn to.
* Currently there's no way to force-fire or use alternative movement modes.
* Tap on the weapon frame to get out of aiming mode.
Known problems

* On some devices (notably Samsungs) the screen will be tinted purpleish-red. The fix is to disable hardware overlay in the device's developer options (look up the instructions if you can't find the menu)
* OpenGL screen filters don't work for now. Only SDL2's linear (blurry) filter is available.
* Closing the game by hitting "Quit game" and then reopening it results in intro being played too fast and advanced options menu being overpopulated. You should completely unload OpenXcom from memory (Android 4.0+ users can swipe the app from the recents).
* For now it appears that the app doesn't really "sleep" when the device's screen is locked/turned off. This will result in a higher battery consumption.
Downloads
The downloads will be available on the official mod portal: https://www.openxcom.com/mod/openxcom-android-nightly.
The source code is githubbed at https://github.com/sfalexrog/OpenXcom (branch "experimental"). You're advised to not look directly at the code  ;D

sfalexrog:
New version! Still based on upstream 966b2f2003, but should provide some fixes.
Changeset:

* Attempt to avoid sound-related wakelogs (as seen in https://bugzilla.libsdl.org/show_bug.cgi?id=2480); this may result in loss of sound in some circumstances, but seems to work for now.
* Native code gets unloaded on quitting the game, so the bug with duplicate menu items in advanced options should be solved.
* Date and time should be displayed properly (if they weren't before). Thanks android developers with your zero respect for wchar_t for making me rewrite these functions yet again!
* Git revision now displayed on title screen (though in this build it is reported incorrectly as g25a5039)

meltyman:
Can you upload new apk to Dropbox? I cannot download anything from mods page.

HunterZ:
I'm confused: I thought newer versions of the apk included the OpenXcom data files (not to be confused with X-Com data files), but the instructions in the first post in this new thread say to do that manually?

sfalexrog:

--- Quote from: meltyman on June 26, 2014, 07:08:06 pm ---Can you upload new apk to Dropbox? I cannot download anything from mods page.

--- End quote ---

Here you go: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g6fbb074.apk. Although you should probably report your problems with the modsite to Jo5hua (https://openxcom.org/forum/index.php?action=profile;u=1376)


--- Quote from: HunterZ on June 26, 2014, 07:16:17 pm ---I'm confused: I thought newer versions of the apk included the OpenXcom data files (not to be confused with X-Com data files), but the instructions in the first post in this new thread say to do that manually?

--- End quote ---

I was referring to the original X-Com files, the OpenXcom files should be added automatically. (FWIW, you can just drop your OpenXcom files into the dir, they will simply be overwritten by the data in the .apk file)

Navigation

[0] Message Index

[#] Next page

Go to full version