OpenXcom Forum

Contributions => Builds & Ports => Topic started by: sfalexrog on June 25, 2014, 12:59:08 am

Title: OpenXcom for Android - new official thread
Post by: sfalexrog on June 25, 2014, 12:59:08 am
(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


Features

Controls - MUST READ!
Since most Android devices are somewhat limited in terms of input, there are some differences in the main and Android versions.

Known problems

Downloads
The downloads will be available on the official mod portal: https://www.openxcom.com/mod/openxcom-android-nightly (https://www.openxcom.com/mod/openxcom-android-nightly).
The source code is githubbed at https://github.com/sfalexrog/OpenXcom (https://github.com/sfalexrog/OpenXcom) (branch "experimental"). You're advised to not look directly at the code  ;D
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 26, 2014, 02:08:26 pm
New version! Still based on upstream 966b2f2003, but should provide some fixes.
Changeset:
Title: Re: OpenXcom for Android - new official thread
Post by: meltyman on June 26, 2014, 07:08:06 pm
Can you upload new apk to Dropbox? I cannot download anything from mods page.
Title: Re: OpenXcom for Android - new official thread
Post by: 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?
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 26, 2014, 07:47:19 pm
Can you upload new apk to Dropbox? I cannot download anything from mods page.

Here you go: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g6fbb074.apk (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 (https://openxcom.org/forum/index.php?action=profile;u=1376))

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?

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)
Title: Re: OpenXcom for Android - new official thread
Post by: HunterZ on June 27, 2014, 01:07:02 am
I guess I was confused because the wording in the OP is "X-com/OpenXcom".
Title: Re: OpenXcom for Android - new official thread
Post by: kiksy on June 27, 2014, 06:15:22 pm
Hi,

Installing OpenXcom-1.0-g6fbb074.apk just gives me a black screen as soon as it runs. Can't see any major issues in CatLog, just one reference to :

dalvikvm E >>>> org.libsdl.openxcom [ userid 0 ] [ appId 10264]

Rolling back to the apk : OpenXcom-1.0.apk

and it runs fine again.

Samsung Galaxy S5
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 27, 2014, 07:45:42 pm
Hi,

Installing OpenXcom-1.0-g6fbb074.apk just gives me a black screen as soon as it runs. Can't see any major issues in CatLog, just one reference to :

dalvikvm E >>>> org.libsdl.openxcom [ userid 0 ] [ appId 10264]

Rolling back to the apk : OpenXcom-1.0.apk

and it runs fine again.

Samsung Galaxy S5

Sounds like there's something wrong with the auto-update module. Do you have files like "openxcom_data_marker", "openxcom_translation_marker" and "openxcom_patch_marker" in your /sdcard/OpenXcom/data folder? What are their contents? Also, could you please post the whole logcat (or the relevant part, when you start up the newer version)?
Title: Re: OpenXcom for Android - new official thread
Post by: judgeholden on June 28, 2014, 07:36:58 am
I'm having trouble installing, too. Forgive me if my questions are very basic, by the way. I just installed Android on my Touchpad today. For this. So, I'm a major newb.
First, my Touchpad doesn't have an sdcard0, which may be the issue. It just has an sdcard1. Perhaps this doesn't matter, and it just points to sdcard.

Anyway, I'm getting the "Failed to open directory: SoldierName/" error.
I downloaded the apk and installed it.
Next, I created an sdcard1\OpenXcom\Data. In it I pasted GEODATA, GEOGRAPH, Language, MAPS, Resources, ROUTES, Ruleset, Shaders, SoldierName, SOUND, TERRAIN, UFOGRAPH, UFOINTRO, and UNITS.

I then ran the apk and got the DOS-like screen. Anyone have any ideas as to what I'm doing wrong and how I may correct it?
Many thanks!
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 28, 2014, 11:33:36 am
First, my Touchpad doesn't have an sdcard0, which may be the issue. It just has an sdcard1. Perhaps this doesn't matter, and it just points to sdcard.

Unfortunately, that does seem to matter. For now the paths are hardcoded, and if there's no sdcard folder in the root of your device (see screenshot; there should also be "dev", "etc", "mnt", "proc" folders around), the game won't work properly. I'll see what I can do about it, though.
Title: Re: OpenXcom for Android - new official thread
Post by: kiksy on June 28, 2014, 01:17:46 pm
I'm having trouble installing, too. Forgive me if my questions are very basic, by the way. I just installed Android on my Touchpad today. For this. So, I'm a major newb.
First, my Touchpad doesn't have an sdcard0, which may be the issue. It just has an sdcard1. Perhaps this doesn't matter, and it just points to sdcard.

You might be able to symlink sdcard0 to sdcard1. I vaguely remember having to do this before for an app years ago.


Sounds like there's something wrong with the auto-update module. Do you have files like "openxcom_data_marker", "openxcom_translation_marker" and "openxcom_patch_marker" in your /sdcard/OpenXcom/data folder? What are their contents? Also, could you please post the whole logcat (or the relevant part, when you start up the newer version)?

I do not have "openxcom_data_marker", "openxcom_translation_marker" and "openxcom_patch_marker"  in sdcard/OpenXcom/data .

Attached is a logcat, this is just me opening the app, and straight away seeing the black screen, waiting a few seconds, then stopping logging.

https://dl.dropboxusercontent.com/u/175186/logcat_and_device_info.zip
Title: Re: OpenXcom for Android - new official thread
Post by: judgeholden on June 28, 2014, 09:02:24 pm
Ok, I was about to table this and go to a Touchpad forum, since that seemed more specific to my issue, but I fixed it.
(turns out I didn't have root access and therefore wasn't seeing the right folder.)

As I mentioned, total newb without any prior Android experience so I'm bound to do many stupid things. But thank you, it was helpful to see the exact problem was, in fact, a directory one, and manage to troubleshoot from there. Took all of 30 seconds this morning to realize what I was doing wrong.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 28, 2014, 11:35:46 pm
Well, just as I was fighting through some Android weirdness... (turns out android didn't have *official* SD card support before version 4.4, so good luck trying to figure out where your /sdcard symlink really points to)

New build! Based on upstream 18ebd7cc1c.

Changeset:

Just as usual, the updated version is on the mod page. My Dropbox mirror is https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-ge1f416d-bundle.apk (for those having trouble downloading from the modsite).
Title: Re: OpenXcom for Android - new official thread
Post by: judgeholden on June 29, 2014, 04:11:00 am
I really do appreciate you attempting to solve my issue for me. It's kind of incredible.

I do have another issue, uncertain if it's a known issue I'm not seeing mentioned. When I go to either buy or sell, the up and down arrows are staying selected somewhat. If I hit up arrow to buy more canon rounds, it will just shoot all the way up till it tells me my stores are full. If I hit down, it'll go to zero. If I hit both, it will just flip up and down one based on where I hit it.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 29, 2014, 04:01:51 pm
I really do appreciate you attempting to solve my issue for me. It's kind of incredible.

I do have another issue, uncertain if it's a known issue I'm not seeing mentioned. When I go to either buy or sell, the up and down arrows are staying selected somewhat. If I hit up arrow to buy more canon rounds, it will just shoot all the way up till it tells me my stores are full. If I hit down, it'll go to zero. If I hit both, it will just flip up and down one based on where I hit it.

Well, OpenXcom should kick you in the balls during the game, not while you're trying to get it running  :)

Sticky keys is a weird issue that should have been fixed at least twice: by the SDL2 guys and by me. Looks like it depends on the device (I couldn't reproduce the issue neither on my Nexus 4 nor Nexus 7, but saw that kind of behavior on a Galaxy S3 that I don't really have access to). You might try pressing the stuck button again, it worked on the said S3 device, but your mileage may vary. Hope there'll be a proper fix eventually.
Title: Re: OpenXcom for Android - new official thread
Post by: kiksy on July 01, 2014, 11:20:28 am
Having issues with OpenXcom-1.0-ge1f416d-bundle.apk.  :'(

Game loads fine, Geoscape is fine, as soon as I try and enter Battlescape, game FCs.

Tried a total uninstall, removed openxcom dir from internal SDcard, removed all OpenXcom files from external SDcard and did a fresh install on PC, copied over all the files again and then installed OpenXcom-1.0-ge1f416d-bundle.apk again. No luck though.

Logcat:

https://dl.dropboxusercontent.com/u/175186/logcat_and_device_info.zip

Thanks again for all your effort on this.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on July 01, 2014, 12:15:54 pm
Looks like it's missing a file for some reason. Have you tried installing to an internal SD card (path to data would be /storage/emulated/0/OpenXcom)? The preloader expects data to be there (will probably have to add some more paths to the preloader, shouldn't be hard).

Alternatively, just unzip the attached data.zip file into your OpenXcom folder, overwriting everything.

(The problem is caused by a missing graphic and a missing reference to it in the ruleset - the current data version is somewhat different from the nightlies, so a working auto-updater is a must, it appears)
Title: Re: OpenXcom for Android - new official thread
Post by: kiksy on July 01, 2014, 12:50:17 pm
Have you tried installing to an internal SD card (path to data would be /storage/emulated/0/OpenXcom)?

This solved it.

There was already a dir in /storage/emulated/0/ called 'openxcom' (note lower case) which seems to contain save games and config .cfg files, my 'data' dir is now in there too, and everything works fine. This version seems to have solved the stick buttons on the buy/sell screen.

Thanks again!

If its useful ,Samsung seem to use:

/mnt/sdcard (internal sdcard)
/mnt/extSdCard (external sdcard)

as well as

/storage/emulated/0/ (internal sdcard)
/storage/extSdCard/ (external sdcard)

for their mount points.
Title: Re: OpenXcom for Android - new official thread
Post by: arrakis69ct on July 01, 2014, 07:02:24 pm
Great work. Thx
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 10, 2014, 06:43:24 am
Tried the port on my LG G Pad v500. Game run very fine. However, I got pretty irritated with the controls. Really hard to select a specific soldier without accidentally making the previous selected one to walk. Is there anyway to ask for confirmation before let the soldier walk? Ideal situation would be to have a radial menu, so if you tapped somewhere near a soldier, it would ask if you wanted to select that soldier our move the previous one to a nearby square.

Also, for some weird reason, when tapping somewhere to move, the cross never gets in the place i clicked
Title: Re: OpenXcom for Android - new official thread
Post by: Yankes on July 10, 2014, 10:22:39 pm
Its already available, option with path preview or something in name.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 10, 2014, 10:58:06 pm
the path preview is being shown, but that´s what I meant with the "cross". The cross at the end of the path preview, where I want the soldier to move, is never where I touch the screen. Even with path preview, it´s still off-target. Then sometimes trying to place the cross in the correct position, the soldier moves to the wrong one.

but of course, even worse is trying to select a soldier, and the game understanding I touched in a blank space near that soldier, and moving the previous soldier to that location, spending all the TUs.

Problem could largely be solved by having a "move confirmation button".
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 11, 2014, 04:14:13 am
imho, the problem is that specially in a game like this, moving to an undesired space, even if VERY NEAR where you wanted, can have big consequences. Gee, even turning to the wrong side can have big consequences, since you spend your TUs.

so, on the PC, actually every action has a confirmation... which is the mouse click. Because before CLICKING the mouse with either button, you move the cursor with the mouse and the cursor highlights if it´s over a soldier or where EXACTLY it is. THEN you click it.

on a touchscreen, you don´t see the "box" from the PC version, showing exactly which caracther you have your "mouse over". You tap to select and ONLY THEN the box appears... usually in the wrong place. And the "confirmation" is another tap. However, if you already selected the wrong space instead of selecting a soldier, then you try to tap over that soldier again but again tap right next to it, you are ACCIDENTALLY confirming the action of moving the previous soldier. See the problem?

Therefore, I think there should be a confirmation button to avoid this. Instead of tapping where you want the soldier to go, the ideal would be to drag that box around, just like you did with your mouse. Than confirming a move... or confirming you want to change the player selected. A tapping button replacing the left mouse button.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on July 12, 2014, 02:00:29 am
Hi, I have trouble starting the app on my Xperia ZL.
I've installed what I believe is the UFO Collector's Edition from an old magazine disc, applied the "universal patch" and installed OpenXcom for Windows, which in itself works flawlessly on my PC. I then installed the latest version of the app and copied the data folder to the phone's storage. The folder seems to be the right one, since before I found out where exactly to put it, the app would tell me it can't find the files. Now it seemingly does, but I get this error message:

"Loading OpenXcom 1.0-ge1f416d...


ERROR: GMDEFEND not found" etc.

Googling it, I've only found others with this issue on the desktop version of OpenXcom, where it seems to be related to unpatched files of Xcom 1.0. But, in my case, I have applied the patch and the desktop version runs fine. Any ideas? :)


Either way, great work! It's lovely seeing this legendary game in an updated form on mobile devices! Keep it up! :)

[edit]
Solved the problem! See my next post.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 12, 2014, 02:45:10 am
Made more tests, and I discovered what is the problem that is afflicting me.

For some reason, only at the battlescape, the tapping point is not calibrated. That means, the game is recognizing the touch about one/one and a half squares from where you click. Meaning that if I try to move a soldier, I tap in a place but the game will show the path ending in a square about 1 or 2 squares "southeast" of where I tapped. Same thing when selecting a soldier. I must tap a bit left of the soldiers head, instead of tapping his feet, to select him.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on July 12, 2014, 03:37:01 am
Solved my problem, sort of! I've exchaned the midi files in the SOUND folder with ogg music from this (https://users.atw.hu/xcom-sounds/) page, and now the app runs flawlessly :D I'd still like to use the midi files at some point, but I'm happy it works now.

I've played for an hour and I must say I am really surprised just how well the game works. Especially how well the controls work in geoscape and the menu! Apart from all being a little bit small it feels very natural and well ported. Alas, I have to agree with aceshigh concerning the movement controls in battlescape. It's not as bad as I thought it would be, but just like he describes it just feels "off". Especially since often times when tapping on a tile, it will show a movement path to that point, whereas the "cursor box" will be placed at a different tile next to that spot. I guess one problem is that the cursor in the PC version is never directly placed on the tile itself, but as aceshigh said you still always know exactly what you are pointing at because of the box.

Still, it's awesome to have such a high quality version of X-Com on a mobile phone, thanks a lot!


[edit]
I've disabled "drag scrolling" in the options, which enables you to just move the cursor by dragging on the screen. This shows that indeed the cursor works exactly as on the PC, but since you can actually see and move the cursor box, making precise inputs is much easier. I think it would greatly improve the controls if normal dragging with one finger would only move the cursor like that, whereas dragging with two fingers would move the camera. This way I think you could easily combine precise with quick controls without the need for additional buttons or functions :)
The only problem would be the "long press tile to turn soldier" function, since it often triggers accidentally when dragging the cursor.

[edit²]
Played a lot longer than intended now. With the knowledge that you have to tap slightly above (not to the side, just above) the ground tile you wish to select, the controls are much less of an issue. They're not ideal, but I've only rarely made mistakes now, while ordering the squad around is still quick.
I'm pretty fascinated, playing Xcom on a mobile phone this way is so much more fun than I imagined. I'm really surprised I haven't heard of your android port before, this is pretty big news!
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 12, 2014, 04:53:59 pm
[edit]
I've disabled "drag scrolling" in the options, which enables you to just move the cursor by dragging on the screen. This shows that indeed the cursor works exactly as on the PC, but since you can actually see and move the cursor box, making precise inputs is much easier. I think it would greatly improve the controls if normal dragging with one finger would only move the cursor like that, whereas dragging with two fingers would move the camera. This way I think you could easily combine precise with quick controls without the need for additional buttons or functions :)
The only problem would be the "long press tile to turn soldier" function, since it often triggers accidentally when dragging the cursor.



this is a good idea Syrion. I am sure people will be able to think on more solutions. My guess is that the cursor is a bit way off from where you tap, because you can´t always see the feet of the soldiers (where you should be tapping). Like inside the skyranger... soldier on the near wall have only their heads visible. Your solution would be good... move the cursor around like with a mouse. But you did not explain how did you select the soldiers or where they should go. I mean, you move the cursor around until it´s exactly over the soldier you want. Fine. But how to select him?

I noticed no Android only menu exists yet. The menus are all exactly like the PC version. I wonder if in future versions we can have some 2-3 Android only (touch screen) movement/selecting configurations and select which one we prefer from the menu...
Title: Re: OpenXcom for Android - new official thread
Post by: johnny on July 13, 2014, 01:28:18 pm
hey guys,

wow - what an awesome port of the game! the first dos classic that really is fun to play on a mobile device with awesome accurate controls! thank you very much.

i just got a question: can i use my android savegames for the windows game and vice versa? or does the android version writes something different in the savegames than the windows version?

cheers,
j.
Title: Re: OpenXcom for Android - new official thread
Post by: SupSuper on July 13, 2014, 06:19:52 pm
hey guys,

wow - what an awesome port of the game! the first dos classic that really is fun to play on a mobile device with awesome accurate controls! thank you very much.

i just got a question: can i use my android savegames for the windows game and vice versa? or does the android version writes something different in the savegames than the windows version?

cheers,
j.
Savegames should be the same across versions.
Title: Re: OpenXcom for Android - new official thread
Post by: ufomesh on July 14, 2014, 08:31:30 am
Hi!

I still can't download your great mod/port from the mod site, it says that there's no such file (the same picture with all versions of android openXcom, other mods are downloaded perfectly). Could you post direct links to it here at forum when new version is ready for download?

Thanks a lot!
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on July 14, 2014, 09:20:31 am
The modsite didn't work for me either. Use the Dropbox link sfalexrog posted on the previous page (post #12) :)
Title: Re: OpenXcom for Android - new official thread
Post by: ufomesh on July 14, 2014, 10:54:06 am
Oh, thanks! I've already downloaded and installed it. I thought there's another newer version already.
I wonder who CAN download from that site, because counter shows some ammount of downloads
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 14, 2014, 03:01:48 pm
can anybody else confirm the touchscreen imprecision at BattleScape on their Android devices, as reported by me and Syrion?

I was wondering if by any chance if might be caused by hi-resolution devides, or unusual resolutions?

The display resolution of Open XCom on my LG G Pad is showing as 1920 x 1114. But real display resolution of the device is 1920 x 1200.
Title: Re: OpenXcom for Android - new official thread
Post by: HunterZ on July 14, 2014, 04:19:15 pm
It felt a bit off for me at first, but I think it was just that you have to get used to tapping where there feet are, especially when you can only see a soldier from the waist up.

I play on a 720p-ish 2012 Nexus 7.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 14, 2014, 05:50:59 pm
It felt a bit off for me at first, but I think it was just that you have to get used to tapping where there feet are, especially when you can only see a soldier from the waist up.

I play on a 720p-ish 2012 Nexus 7.

but as I said before, it´s way off-target for me. If I tap where their feet are, I won´t be able to select them. I have to tap LEFT of them.

So basically you confirmed me the inverse of what I asked. If you must tap at their feet, then the problem is NOT happening on all Android devices. I will try to take a photo showing where I have to tap...
Title: Re: OpenXcom for Android - new official thread
Post by: HunterZ on July 14, 2014, 06:18:27 pm
but as I said before, it´s way off-target for me. If I tap where their feet are, I won´t be able to select them. I have to tap LEFT of them.

So basically you confirmed me the inverse of what I asked. If you must tap at their feet, then the problem is NOT happening on all Android devices. I will try to take a photo showing where I have to tap...
Are the Android buttons on your device software ones that are drawn on the screen, or are they physical buttons?
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on July 14, 2014, 06:51:20 pm
Sorry for my long absence, especially with these bugs around! There's a new build up, which may or may not fix the issues you're having; the touch imprecision seems to affect the game when the screen is letterboxed, and I didn't encounter that behavior because I usually play with window size of 1280x800 (I turn off software buttons) and/or with battlescape scale of 1/3, though there might still be some issues (and THAT would be puzzling).

So, new build! Based on upstream 395e967e.

Changeset:

As usual, the new version is posted on the mod portal, but for those who are having trouble downloading it, here's a Dropbox link: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g8e47898-bundle.apk
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 14, 2014, 07:01:02 pm
Are the Android buttons on your device software ones that are drawn on the screen, or are they physical buttons?

you mean the "home", "return" and "menu" Android buttons? They are software. Like in the image below
(https://fs04.androidpit.info/userfiles/4155894/image/LG-G-Pad-Teaser.JPG)
Title: Re: OpenXcom for Android - new official thread
Post by: HunterZ on July 14, 2014, 07:04:50 pm
Hmm, mine are software too, so I guess it must be that letterboxing thing.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 14, 2014, 07:23:31 pm
  • (Hopefully) fix the touchscreen issues in Battlescape. Please tell me your experience with that!

it worked!!!! It's awesome!

It was incredibly frustating before... I guess people can imagine how frustrating it is to tap somewhere and it recognize the tap half a centimeter to the side!

Thus now when I tried it again, it was just so awesome, just to tap where I wanted and the cursor showing that exact place!

Thanks a lot!
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on July 15, 2014, 08:28:35 am
I can confirm that the controls seem much more precise now :)

Playing this version is actually the very first time that I play X-Com seriously, getting further than only the first terror mission :D It plays just about flawlessly on my phone and I haven't encountered a single bug on it.
I've also tried it on my Galaxy Tab 3 7.0, on which plays very comfortably due to the increased screen size. Though, only on the Tab I get the "stuck key" bug when for example purchasing stuff. I consecutively tap on for example the upper arrow to increase the amount of scientists I want to buy, and at some point the button gets stuck and the number increases ludicrously fast. Tapping the button again frees it, so it's not a major problem, but rather annoying. Also only on the Tab, it's sometimes nearly impossible to center the view on an enemy in sight. The little red "1" is shown in the corner of the screen, but when I tap it, it only sets a path for my unit to move. It even shows the description of the button, but it doesn't work. I haven't figured out where or how to tap it to make it work, it just sometimes does.
Finally, I really don't like the "swipe unit to turn view" function. When I mean to use it, I rarely make it work, whereas I often trigger it accidently while dragging the view around, wasting precious time units. I find that "long press tile to turn" works very well already, so if possible it should at least be an option :)
Title: Re: OpenXcom for Android - new official thread
Post by: HunterZ on July 15, 2014, 06:28:08 pm
I get the "stuck key" bug when for example purchasing stuff. I consecutively tap on for example the upper arrow to increase the amount of scientists I want to buy
I wonder if this is why I've never encountered it on my 2012 Nexus 7... I always hold the button down instead of repeatedly tapping it.

Quote
Finally, I really don't like the "swipe unit to turn view" function. When I mean to use it, I rarely make it work, whereas I often trigger it accidently while dragging the view around, wasting precious time units. I find that "long press tile to turn" works very well already, so if possible it should at least be an option :)
This describes my experience as well.
Title: Re: OpenXcom for Android - new official thread
Post by: Jo5hua on July 16, 2014, 02:26:46 am
I'm fixing the download on the modsite. It will be working soon. I will comment again when it's working again.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 16, 2014, 04:15:45 pm
wow... I am loving it... the precision is very good now!

I wonder if it would be possible to zoom in and out with your fingers (instead of going to video options to change battlefield zoom)
Title: Re: OpenXcom for Android - new official thread
Post by: arrakis69ct on July 17, 2014, 02:06:15 am
Great work. Thx
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on July 17, 2014, 12:16:13 pm
Once again, new build!

Changeset:

It's already been uploaded to the modsite, so sorry for the late post. Backup dropbox link: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-gea133a1-bundle.apk
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 17, 2014, 06:36:54 pm
don´t seem to there be much more stuff in the to-do list. The previous version, with the fix for tapping in different resolutions had already made it completely playable. I played it on the bed, before going to sleep, the last two nights, for a total of 6 hours at least.

I will keep my eye on any eventual bug, but so far, it´s awesome! Everything I wanted on Android!


Only thing I miss is opening doors without needing to go through them. Preferably without needing to stay right in front of them too (from the diagonal would be nice)
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on July 17, 2014, 09:03:30 pm
Thanks for all your work and the quick fixes! As aceshigh said this is a fully, and surprisingly comfortably, playable port :) I'm loving it!

I guess what this port could use the most now would be even more touch-focused controls. Like I said, I don't like the "swipe to turn" function, whereas I think switching levels by swiping with two fingers works well and makes gameplay a bit more fluid, especially when embarking from the Skyranger. I just sometimes find that you switch levels too quickly, making you sometimes "overshoot" and switch several levels at ones. Maybe the range for swiping until the view changes 1 level should be higher, or maybe it would even be a bit more comfortable if you could only switch 1 level at a time, but I'm not sure.

Concerning opening doors, a natural way could be that they are opened by long pressing on them, but only when the selected unit already stands next to it and faces it. This way, if a soldier walks up to the door, the first long press on it might still make him only look at the door, if that's what you want him to do. If you want to open it, another long press would do that.

Regarding "force firing": When I started playing OpenXcom, I hoped it would be automatically triggered if you tried to shoot an enemy again when no line of sight is available. I don't know how hard that is to program, but it would again be a rather natural way of doing it without the need for an extra button. You would just aim and tap on the unit, which triggers the "No line of sight" warning sign, and if you still do it again, the unit would just "force fire".

Finally, I've read that in OpenXcom on PC you can cancel a unit's movement by right clicking. I understand that this means you can stop a unit while it is already walking? If so, that would be another great addition to your port. Since you can't really do anything else while a unit walks, anyway, why not make it so just tapping (or double-tapping so it doesn't happen accidently) anywhere during movement would stop it? This would also reduce the severity of mis-tapping.
Title: Re: OpenXcom for Android - new official threa
Post by: x60mmx on July 22, 2014, 07:11:45 pm
I tried it on my Galaxy S4.  It works fine but the control in the battlescape makes it a no-play for me currently.  Major sticking point being turning.  Half the time I tried to turn I moved my troops.  In general I had a lot of accidental moves.  That's a dealbreaker for me with X-Com :-/ That aside, it is fantastic.  A hair away from being a dream come true!
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 22, 2014, 07:55:46 pm
Set the path showing option on, therefore you have to tap twice the same spot for moving a soldier. Therefore a soldier will never move if you tap a spot once and keep pressing for the soldier to turn.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 22, 2014, 07:57:58 pm
Its creating for me now. Maybe because yesterday i tried installing the real view mod before realizing it replaced the .exe

Crashing when it loads the battlescape
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 22, 2014, 10:15:09 pm
oh my god... it´s getting worse. Deleted all real vision files from Android OpenXCom folder. Deleted CFG file. Deleted Xcom1Ruleset.rul (the only file Real Vision installed in the data folder) and replaced it with the same file from the PC OpenXCom installation folder.


Now when entering battlescape, it doesn´t even reach the loading screen, it crashes as soon as soon as you click YES in "Begin Mission". (the loading screen it crashed before was that one between the "Begin Mission" screen and the inventory screen.
Title: Re: OpenXcom for Android - new official thread
Post by: Muukalainen on July 22, 2014, 10:22:21 pm
oh my god... it´s getting worse. Deleted all real vision files from Android OpenXCom folder. Deleted CFG file. Deleted Xcom1Ruleset.rul (the only file Real Vision installed in the data folder) and replaced it with the same file from the PC OpenXCom installation folder.


Now when entering battlescape, it doesn´t even reach the loading screen, it crashes as soon as soon as you click YES in "Begin Mission". (the loading screen it crashed before was that one between the "Begin Mission" screen and the inventory screen.

Did you save your game while you used the Real Vision mod? It adds new stat to the units: nightvision. And that can cause some problems.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 22, 2014, 10:26:59 pm
that's possible.

yesterday, when I installed it, Real Vision did not work but the game did not crash either and I played normal XCOM on it. Only today the game started crashing when entering battle scape.


is it possible to manually edit the save game files?
Title: Re: OpenXcom for Android - new official thread
Post by: Muukalainen on July 22, 2014, 10:34:17 pm
that's possible.

yesterday, when I installed it, Real Vision did not work but the game did not crash either and I played normal XCOM on it. Only today the game started crashing when entering battle scape.


is it possible to manually edit the save game files?

Yes. You need some editor like notepad. Notepad++ is thou recommended.

Check if the soldiers have that new nightvision stat on your save file. If they do have that, my suggestion is to remove every line on that save file that has nightvision on it. If you edit the file you must follow the YAML standard.

You should probably first try to start a new test game, and try if you can start battles there. If the new game works then you know if the problem is in the old save.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 22, 2014, 10:53:15 pm
hmmm... no, actually game crashed when starting battlescape even in a new game.

what about options.cfg? Any change on it?
Title: Re: OpenXcom for Android - new official thread
Post by: Muukalainen on July 22, 2014, 10:59:01 pm
hmmm... no, actually game crashed when starting battlescape even in a new game.

what about options.cfg? Any change on it?

It is then possible that it somehow corrupted your options. I don't know how that area works, but it happened to me once. It seemed that nothing was working, not the original game or my new modifications. I got it back to working when I clicked that "default options" on the game. It puts them back to default, but then you have to adjust all of them back to what you liked.
Title: Re: OpenXcom for Android - new official thread
Post by: aceshigh on July 22, 2014, 11:23:27 pm
nope. Not even that worked.


BUT... SUCCESS!! Tried reinstalling the APK. And now it works again...
Title: Re: OpenXcom for Android - new official thread
Post by: Muukalainen on July 22, 2014, 11:41:41 pm
nope. Not even that worked.


BUT... SUCCESS!! Tried reinstalling the APK. And now it works again...

Ok, good to hear.

I put a warning on the mod's read me that it will not probably work on non-windows systems. Let's hope people will now read those installation instructions :)
Title: Re: OpenXcom for Android - new official thread
Post by: demoness on July 23, 2014, 01:18:08 am
Thanks for making this port, it's great.

...


Only thing I miss is opening doors without needing to go through them. Preferably without needing to stay right in front of them too (from the diagonal would be nice)

About opening doors: I'm still two builds behind, but this is already possible. When a player-controlled unit with enough TUs is standing in range of a door and facing directly towards it, whether directly in front or diagonal, swipe towards the door as if you are trying to turn the seleted unit. In otherwords, if a unit is already facing a door, telling it to "turn" towards the door will cause the unit to open the door.

Very useful. However, as Syrion suggested earlier, a different method like longpress might be better, as the current method is easy to mess up. Maybe add an option that lets the user enable one or both methods?
Title: Re: OpenXcom for Android - new official thread
Post by: x60mmx on July 23, 2014, 03:59:31 am
Set the path showing option on, therefore you have to tap twice the same spot for moving a soldier. Therefore a soldier will never move if you tap a spot once and keep pressing for the soldier to turn.

I already had path showing on.  I just tried again and still have the same problem exactly half the time.  Every other time I try turning a soldier they move.  Like clockwork.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on July 23, 2014, 10:42:38 am
About opening doors: I'm still two builds behind, but this is already possible. When a player-controlled unit with enough TUs is standing in range of a door and facing directly towards it, whether directly in front or diagonal, swipe towards the door as if you are trying to turn the seleted unit. In otherwords, if a unit is already facing a door, telling it to "turn" towards the door will cause the unit to open the door.
Oh, oops, I didn't even try that. In that case, my silly "suggestion" is already in the game, as long-pressing the door does the same as swiping on the unit in front of it :)

I already had path showing on.  I just tried again and still have the same problem exactly half the time.  Every other time I try turning a soldier they move.  Like clockwork.
How do you try turning them? It can be done by swiping away from a unit or by long-pressing on any tile you want it to look at. Does it happen with both methods?
Title: Re: OpenXcom for Android - new official thread
Post by: x60mmx on July 23, 2014, 11:17:15 am
The "moving every other time" thing happens with the long pressing method.  The swiping method works much better.

Is it just me or does it seem like touching a tile selects the tile where the troops torso would be instead of the tile you touched?

It would be nice if you could scroll around the battlescape without having a troop selected.  Also makes it easy to move troops accidentally.
Title: Re: OpenXcom for Android - new official thread
Post by: x60mmx on July 24, 2014, 10:13:06 am
Spent a few hours playing on my Galaxy S4 and it is fantastic except for panning around the battlescape causing my troops to turn and sometimes move.

edit: Spent a couple more hours and found that using the map to re-center my view whenever I needed to pan around worked for those with the same complaint.  Not as convenient but does solve the troops turning while panning issue.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on July 26, 2014, 12:03:32 am
This all sounds like your units move as soon as you tap somewhere. Is that the case? Because on my phone, by default, they only move when you've tapped a tile twice.
It really sounds like it doesn't work as intended on your S4.
Title: Re: OpenXcom for Android - new official thread
Post by: x60mmx on July 26, 2014, 02:50:22 am
They only issue I have is that units turn while you pan on the battlescape.  Lets say I want to pan north.  I touch and hold ond the north edge of the screen to pan, which causes the selected soldier to turn north since long pressing in a direction turns.
Title: Re: OpenXcom for Android - new official thread
Post by: HunterZ on July 26, 2014, 05:10:16 am
You can pan by dragging, just like in Google Maps. It's one of the best features of the Android port.
Title: Re: OpenXcom for Android - new official thread
Post by: pkhtjim on July 31, 2014, 06:08:50 am
Hey there. Love the game. Dig how I could play Xcom on the go!

Since the phone I use is a Galaxy Relay (Samsung Galaxy S3 with a slide keyboard), it works great in geoscape when I can type things out without it obstructing the screen. Battlescape refuses to load, though. As soon as it tries to load, the program crashes. Tried previous versions, and it's the same result. I reinstalled the game, copied over my PC files, and no change.
Title: Re: OpenXcom for Android - new official thread
Post by: demoness on August 14, 2014, 12:43:40 pm
I don't think this has been reported ITT yet:

When I use a psi ability in the current version, the target select cursor changes from the psi cursor to the crosshair used for selecting a target to shoot with a weapon. On the PC version and on the Android build 2 updates behind the current one, the psi targetting cursor remains even after using a psionic ability. The crosshair that appears in the current build consumes 25 AP from the selected unit, and nothing else - not that I'm aware of, at least (it might still count towards stat growth but I doubt it). This forces me to click through the menu and reselect the psi ability, should I wish to use it again.
Title: Re: OpenXcom for Android - new official thread
Post by: 32bits on August 29, 2014, 03:22:55 pm
Hey guys,

I've just installed the latest version of android port, copied needed directories with files to /sdcard/OpenXcom/data directory, but, unfortunately, application crashed. The log file is empty.
Here is the screenshot:
Title: Re: OpenXcom for Android - new official thread
Post by: Piotr Karol Żółtowski (Piter432) on August 29, 2014, 09:37:49 pm
Looks nice. Will be it released on Play Store?
Title: Re: OpenXcom for Android - new official thread
Post by: HunterZ on August 30, 2014, 04:41:45 am
My guess is not likely, as people downloading it from there wouldn't understand why it doesn't do anything out of the box.
Title: Re: OpenXcom for Android - new official thread
Post by: caleafterearth on September 04, 2014, 04:32:54 pm
hey all, I've been enjoying openxcom on both windows and android for a few weeks now,

while windows is fine, except for my laptop, isn't. lol
the android version likes to display all the gifs, and music, in to their libraries.

a simple fix for this is to create a txt file, and name it ".nomedia" and place it in openxcom's root folder. (it seems to block all sub folders).

i used ES explorer, and when you do this, the file vanishes, but then all the xcom junk should vanish from your galleries, and stop auto backing up to drive.

hope this helps!

i'm guessing it should be included in the actual .apk? if any of the developers notice this..... lol
Title: Re: OpenXcom for Android - new official thread
Post by: HunterZ on September 04, 2014, 05:12:41 pm
The .nomedia file doesn't vanish - you probably just have ES File Explorer set to hide files that start with a period :)

Good idea though!
Title: Re: OpenXcom for Android - new official thread
Post by: ucel on October 05, 2014, 11:25:35 pm
.nomedia works perfectly by me - created with Total Commander.

BTW, can we expect a new version? Some mods requires lates nightlies to work properly...
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on October 17, 2014, 07:35:07 pm
Hi everyone! Sorry I've been out of touch for so long. Anyway, there's a new version available!

I can't upload it to the modsite at the moment, so there's just a Dropbox link available: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g51856cd.apk

The build is based on current upstream 98d5381. Not much to say in terms of Android-specific stuff, though I've tried making first run easier: if the game can't find its data, it will ask for data path; you can also specify the folders you want to use to store your saves and configuration files. Note that this feature is not exactly foolproof, nor is it tested enough, so prepare for various bugs (I'm pretty sure you can copy the entire contents of your SD card to the app's private storage with that).

This build may or may not have problems with touchscreen precision, though I've tried to address that issue. Try changing video options if you run into some problems, I'm using the "Display 1/3" option which seems to work just fine.

There's also an unpleasant bug which is caused by entering and exiting (via the "cancel" button) the options screen on a clean install: after that the touches no longer register like they should. If you don't have any method of resizing the game "window" after that (like, for example, hiding or showing the on-screen Android controls), you'll have to exit the game and restart it. Starting a new battle after a clean install may also lead to crashes.

Still, I'm still somewhere around and hope to update the port from time to time!

P.S. If you're experiencing bugs/crashes, try removing "openxcom_*_marker" files from the data folder to force data update; it seems to not work sometimes.
Title: Re: OpenXcom for Android - new official thread
Post by: xoen on November 04, 2014, 05:45:00 pm
Hello, this is my first post there..
First of all, i'd like to say THANK YOU for this project.
I spent LOTS of time playing Amy versions(a500 first, without hdd, then a1200+4mb ram and with 89mb seagate)...i am 36 y.o. now...terrified by actual gaming world...just terrified.

I need help, though - everything is working ok, but since i am fiddling with another batch of mods, i got into crashes.
Everything was ok until i added most of this list:
Ryskeliini_GunsNGadgets_1st_pack_v12.zip
FarmAddonTerrain_v1.0.zip
CityAddonTerrain_v1.0.zip
AlienBaseAddonTerrain_v1.2.zip
GaussMod_1.6b.zip
HMG-2.zip
HMG.zip
CustomGrenades.zip
Alien Armoury Expanded_1.3.9.zip
RecycledAlienCollection_1.3.zip
Terrain Pack v2.3.zip
gazer_alien_1.6_OpenXcomMOD.zip
anthropod_alien_1.5_OpenXcomMOD.zip
gazer_alien_1.5a_OpenXcomMOD.zip
cover_alien_2.3a_OpenXcomMOD.zip
men_in_black_4.2_OpenXcomMOD.zip
ubase0.31c.zip
XCOM_Raven(v1).zip
Sentinel.zip
AlienBaseCave_v1.2.zip
Reproduction.zip
Dropship_1.2.zip
CityAddonTerrain_v1.1.zip
AlienBaseAddon_v2.0.zip
I have no list of earlier batch list of mods i was using succesfully until i added above things.
Of course, i tried to avoid using conflicting mods, but last batch destroyed my game.

How to track what is crashing my actual game?

Log is clean, 0 bytes, is there any way to determine what's causing my crash?
Crash occurs when i start fight in attacked city, after load battlemap and after save.
Repeatable, always clean log.
Since i am using terrain, weapon, alien, and crafts mod-set, lack of debugging left me..sad :(
I know i could turn off mod by mod to try to determine wth, but...i need more civilized method to save my campaign, you know...

Btw, i am trying to imagine openxcom as base, when enemy uknown was made....damn, can you imagine openxcom in 1993?
Where this kind of games would be now then?..sigh.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on November 05, 2014, 03:35:01 am
xoen, thanks for your interest in the project! First of all, let me clarify: does the game crash WITHOUT any mod on? If it does, then it's probably an issue with the auto-updater; that will probably happen on Samsung devices, especially if you've got your data on an SD card. Try renaming your OpenXcom folder and running the game again, you'll be prompted to point the game to the data location.

As for your question, well, the app log is written to Android's log, and you'll need some way to read it ('adb logcat' command will help you if you've got your device hooked up to a PC, and there's a bunch of apps to read log as well, though they require root permissions). Still, I don't think it will help much with finding out which mod caused the crash. Also, keep in mind that each mod increases memory consumption, and you might run into memory issues pretty easily.

So, unfortunately, your best bet is to try each mod one by one and check if all of them work fine by themselves. Also, make sure your mod combination works fine on a PC; checking OpenXcom's memory footprint might also be useful. Keep in mind that Android devices are not the same power-houses as x86-based desktops and laptops are; they're much more memory-constrained, have less computing power and less bus bandwidth.
Title: Re: OpenXcom for Android - new official thread
Post by: xoen on November 05, 2014, 06:55:10 pm
Thanks for Your reply!
I had no issues until i added another batch of mods(but - on second thought it converged with installing latest nightly...
Funny thing - i did not think about checking logcat(facepalm) - if crash is done by missing file, i think i will see which one..if not, it may be harder to determine what's the cause.

Ahh, i forgot - are saves "cleaning" itselves when mods are turned off? Unused data are trimmed or something(of course to some extend, i suppose)?
Title: Re: OpenXcom for Android - new official thread
Post by: Jo5hua on November 11, 2014, 07:18:28 am
Hi everyone! Sorry I've been out of touch for so long. Anyway, there's a new version available!

I can't upload it to the modsite at the moment, so there's just a Dropbox link available: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g51856cd.apk

The build is based on current upstream 98d5381. Not much to say in terms of Android-specific stuff, though I've tried making first run easier: if the game can't find its data, it will ask for data path; you can also specify the folders you want to use to store your saves and configuration files. Note that this feature is not exactly foolproof, nor is it tested enough, so prepare for various bugs (I'm pretty sure you can copy the entire contents of your SD card to the app's private storage with that).

This build may or may not have problems with touchscreen precision, though I've tried to address that issue. Try changing video options if you run into some problems, I'm using the "Display 1/3" option which seems to work just fine.

There's also an unpleasant bug which is caused by entering and exiting (via the "cancel" button) the options screen on a clean install: after that the touches no longer register like they should. If you don't have any method of resizing the game "window" after that (like, for example, hiding or showing the on-screen Android controls), you'll have to exit the game and restart it. Starting a new battle after a clean install may also lead to crashes.

Still, I'm still somewhere around and hope to update the port from time to time!

P.S. If you're experiencing bugs/crashes, try removing "openxcom_*_marker" files from the data folder to force data update; it seems to not work sometimes.

There was a problem with the host while I was out of town and without internet, but it's been resolved and the modsite is online. I'm in the proces of adding failover protection so the site never goes down :)
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on November 13, 2014, 11:06:43 pm
There was a problem with the host while I was out of town and without internet, but it's been resolved and the modsite is online.

Nice to have it - and you - back! Might as well upload a new version. Go grab it at https://www.openxcom.com/mod/openxcom-android-nightly (https://www.openxcom.com/mod/openxcom-android-nightly)!

It's based on the fe85f68 upstream version. This build introduces the System options menu, which contains Android-port-specific settings. For now it's the way to turn soldiers (you may turn on or off swiping and long-pressing), Android UI setting (display software buttons, dim them or turn them off completely (requires KitKat and above)) and forcing game folder changes.

xoen, as for your troubles: well, if you load a savegame with mods missing, the game will try to remove everything related to the missing mods, AFAIK. Don't know if that helps.
Title: Re: OpenXcom for Android - new official thread
Post by: Computica on November 14, 2014, 01:04:12 am
Can you make a mirror? I can't download at the mod site atm.
Title: Re: OpenXcom for Android - new official thread
Post by: Omega69 on November 14, 2014, 01:45:33 am
Me neither. Got error message that file is not on server

Odesláno z mého SM-N9005 pomocí Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on November 14, 2014, 02:19:36 am
Huh, I encounter the same problem. Jo5hua!..

Anyway, here's my trusty Dropbox:
https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g44243eb.apk
Title: Re: OpenXcom for Android - new official thread
Post by: Omega69 on November 14, 2014, 02:37:04 am
Dropbox works well

Odesláno z mého SM-N9005 pomocí Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on December 02, 2014, 11:29:35 pm
Well, looks like there wasn't anything breaking in the last build, so let's try to change that  :P

New version!

As always, please download from the Modsite (https://www.openxcom.com/mod/openxcom-android-nightly (https://www.openxcom.com/mod/openxcom-android-nightly)), and use my Dropbox link if you're having trouble downloading the game (https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g68acd87.apk.zip (https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g68acd87.apk.zip))
Title: Re: OpenXcom for Android - new official thread
Post by: caleafterearth on December 18, 2014, 02:34:18 am
Any idea when this will hit the play store? Seems perfectly stable to me...
Title: Re: OpenXcom for Android - new official thread
Post by: Bobby Buns on December 28, 2014, 06:46:27 pm
I have this problem where it won't install properly. It does the preloader, but then it goes to a black screen where it says something about loading openxcom. when i check both xcom folders(one on mnt/sd and the other just on /sd) the only thing there is options.cfg. any help?
EDIT: I am using an HTC Incredible 1.
Title: Re: OpenXcom for Android - new official thread
Post by: Mariner on January 13, 2015, 08:03:54 pm
Wondering if this is still ongoing. I'm sure it's a holiday hiatus but just being sure...
Title: Re: OpenXcom for Android - new official thread
Post by: Sat on February 09, 2015, 11:05:47 pm
I have an issue - While OpenXcom started to load it shows Screen with pathes. I choose right pathes and hit Save&Restart and again this screen appears to me. What am I doing wrong ?
Title: Re: OpenXcom for Android - new official thread
Post by: Exiton on February 14, 2015, 09:07:06 pm
Hi,

I'm having the same problem as Sat. The paths are correct, yet the game constantly displays "Save and Restart" prompt.
Title: Re: OpenXcom for Android - new official thread
Post by: readdeo on February 20, 2015, 08:23:36 pm
Hi,

Same problem here. I copied the whole game folder to the internal, and external sd, with the openxcom data. I tried both paths, but the app cant see the game. I am using a Xiaomi Redmi 1S with 4.4.4 Carbon rom. Can you please help me out with this? I love this game. :)
Title: Re: OpenXcom for Android - new official thread
Post by: ucel on February 27, 2015, 01:08:25 pm
When could we await a new version? FMP 0.9.9 requires nightly from 15.02, it would be nice to could play it on android...
Title: Re: OpenXcom for Android - new official thread
Post by: readdeo on February 28, 2015, 12:59:22 am
Problem solved. I downloaded the data zip from here: https://trashbox.ru/topics/50564/openxcom-0.9-beta (https://trashbox.ru/topics/50564/openxcom-0.9-beta)
It works now.
Title: Re: OpenXcom for Android - new official thread
Post by: Exiton on March 20, 2015, 10:34:20 pm
Problem solved. I downloaded the data zip from here: https://trashbox.ru/topics/50564/openxcom-0.9-beta (https://trashbox.ru/topics/50564/openxcom-0.9-beta)
It works now.

I don't want to risk downloading the game from an unknown source...
Title: Re: OpenXcom for Android - new official thread
Post by: readdeo on March 25, 2015, 06:46:15 am
This is not the actual game, this is just the data files, that is required for the Android apk to run the game. I found this link somewhere in the Openxcom Android wiki page.
Title: Re: OpenXcom for Android - new official thread
Post by: Mariner on March 25, 2015, 04:22:01 pm
Bump for help updating to nightlies?

I tried manually updating the data files from the newest Android port with those from the current nightly, except I run into the "specify folder directory" dialog in an infinite loop.

I suspect there's something significant that changed in the official nightly, as the app still enters the directory loop after I replaced the data folder with the one created after a fresh install and patching from the app.
Title: Re: OpenXcom for Android - new official thread
Post by: readdeo on March 27, 2015, 09:58:57 pm
I don't think that the Android version can handle other data files. Probably the apk can use only the files that was used to build it. Sadly the Android version is updated very rarely, and it is still not really playable. I hope once we can play in Android.
Title: Re: OpenXcom for Android - new official thread
Post by: Mariner on March 28, 2015, 12:33:09 am
I don't think that the Android version can handle other data files. Probably the apk can use only the files that was used to build it. Sadly the Android version is updated very rarely, and it is still not really playable. I hope once we can play in Android.
I wish I knew what is involved in compiling for Android, or I'd gladly update the port myself.
Title: Re: OpenXcom for Android - new official thread
Post by: n3rd4i on April 05, 2015, 09:23:12 pm
The android version.
When you try to delete a savegame, you cannot, because you cant right-click :D
Title: Re: OpenXcom for Android - new official thread
Post by: ucel on April 08, 2015, 10:22:04 am
Sadly the Android version is updated very rarely, and it is still not really playable. I hope once we can play in Android.

Not really playable, you said? I finished it several times, first in HTX One X, then on HTC One, vanilla and with Final Mod. Tested also on Moto G2, Samsung Galaxy Tab7 and some exotic MediaTec and it was really playable on all those platforms.
Sfalexrog did really good job porting OXC to Android, it's only pity that it's updated so rarely.

When you try to delete a savegame, you cannot, because you cant right-click :D

You can use any file manager to do this. Personally I have never needed this option.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on April 09, 2015, 08:44:52 pm
It's indeed perfectly playable. I'm rather inexperienced with XCom and am far into my first real playthrough (now fiddling around with mind control and hover tanks), playing on my Xperia ZL (Android 4.4.4) and haven't encountered any real problems so far in many hours of playing time. Especially the controls are nearly perfect, fitting the touchscreen like a glove. My only gripes at the moment are:
Otherwise I'm most happy with the android port and eager to finish my first XCom game with it :) I hope this version will see a bright future and hopefully gain greater popularity!
Title: Re: OpenXcom for Android - new official thread
Post by: readdeo on April 11, 2015, 05:51:19 am
Really? On my Redmi 1S the always closing without any error message. It happens randomly in 1to 10 minutes. What can cause this? I will see the logcat after i got my pc back.
Title: Re: OpenXcom for Android - new official thread
Post by: ucel on April 14, 2015, 01:42:47 pm
Really? On my Redmi 1S the always closing without any error message. It happens randomly in 1to 10 minutes. What can cause this? I will see the logcat after i got my pc back.

Which android do you have? KitKat or Lollipop?
Is OXC istalled on the SD-Card or in the internal storage?
You can try logcat, but I'm afraid that all you find will be segmentation fault.
Title: Re: OpenXcom for Android - new official thread
Post by: readdeo on May 01, 2015, 08:27:22 pm
The files exists on both drives. I tried both KK and LP. The 1.0 version crashing if i start a new game or load a saved one. I have to use 0.9...
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on May 24, 2015, 08:54:45 pm
After nearly a year of playing on and off, I have now finished my first game of (Open)Xcom, always using version 1.0 and the latest available version of the android port. As I said before, the only bigger issue I faced is the "sticky button" bug, which can even cause unwanted movement orders to happen with just one tap. But, I noticed it is related to general lag on my Xperia ZL. By closing all unnecessary apps before playing the problem is far less grave.
Next up is an Experienced Ironman run :)

I really hope sfalexrog will continue working on this port, especially one the next major OpenXcom release is out. Although he hasn't been on these forums for half a year :/
Title: Re: OpenXcom for Android - new official thread
Post by: Fenrir007 on June 08, 2015, 05:57:34 am
What happened to the link to the nightly in the OP? Seems to be dead.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 23, 2015, 12:09:51 am
Huh, about time I showed up.

Well, first of all, I'm sorry I've been away and silent for so long. I didn't want to drop the project, but some life stuff came in the way. Anyway, I've played with some new shiny tools available to Android developers, and tried to split the Android Java portions from OpenXcom sources. The result is this Android Studio project: https://github.com/sfalexrog/openxcom-android (https://github.com/sfalexrog/openxcom-android). It should be a bit easier to pick up than the previous Ant-based build system.

Since Android code is now in a separate project, the most recent SDL2-ified version of OpenXcom is now in https://github.com/sfalexrog/OpenXcom/tree/sdl2 (https://github.com/sfalexrog/OpenXcom/tree/sdl2). There's a lot of ugly #ifdef __ANDROID__ lines, which I really should replace by #ifdef __MOBILE__, because this code should work as well on iOS and Windows tablets. I'm yet to release a library pack for Windows compilation, but for now it works just fine and feels like SDL1.2 build.

I've checked the modsite (and uploaded a newer version), but encountered the same error. Apparently something's up with the inner workings, as I've encountered similar errors with OpenXcom Extended mod.

And now, to the good parts:
Well, as I've mentioned, I didn't really make much progress with OpenXcom. Still no mobile interface, still no "force fire" button. Still, there are some improvements deep under the hood:

Direct download link in case the modsite acts up: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g9bc2050.apk.zip
Title: Re: OpenXcom for Android - new official thread
Post by: Passerine on June 24, 2015, 10:34:56 am
On trying to run the game (the build linked in the previous post), I'm getting this error: "dlopen failed: cannot locate symbol 'rand' referenced by 'libmain.so'...[cut-off]"
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 24, 2015, 11:06:25 am
I'm getting this error: "dlopen failed: cannot locate symbol 'rand' referenced by 'libmain.so'"

Now that's curious. Apparently, Google has decided to change its C library in some breaking way in Android 5.0: https://stackoverflow.com/questions/28504875/android-ndk-cannot-load-libc-shared-so-gets-cannot-locate-symbol-rand-refe (https://stackoverflow.com/questions/28504875/android-ndk-cannot-load-libc-shared-so-gets-cannot-locate-symbol-rand-refe) (last answer), https://stackoverflow.com/questions/27091001/how-to-use-mkfifo-using-androids-ndk (https://stackoverflow.com/questions/27091001/how-to-use-mkfifo-using-androids-ndk). I've missed this since my test device runs Android 5.0, so I'm rebuilding the app right now to use older headers. Sorry for the inconvenience!

By the way, when something like that happens, be sure to also name your device and Android version. It might not be much, but it might help figuring out what went wrong.

EDIT: Try this one: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g9bc2050-api19.apk.zip (https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-g9bc2050-api19.apk.zip), it _should_ work with pre-5.0 devices.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on June 24, 2015, 01:09:22 pm
Welcome back! :)

I have another little feature request: Can you make it so ordering your soldiers in a craft works by drag&sropping as well? Especially with the sticky button bug it can be quite time-consuming to bring soldiers in the right order tap by tap.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 24, 2015, 01:34:28 pm
...sticky button bug...

Huh, so that's still a thing? I'm at a loss about what might cause this thing.

Anyway, I'll try to, but there would only be either scrolling or drag-dropping.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on June 24, 2015, 10:28:03 pm
On my Xperia ZL with Android 4.4.4 it is, although I haven't tried your most recent release, yet. Also, if that helps, I'm using OXC 1.0, no nightlies.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 24, 2015, 11:09:54 pm
On my Xperia ZL with Android 4.4.4 it is, although I haven't tried your most recent release, yet.

Well, at some point in time I've added logging for touch events, so if you're willing, you might try hooking up your smartphone to a PC and try to look through logcat to see if there's any strange things happening (i.e. fingerdown events without corresponding fingerup events). It would be great if you could reliably reproduce this problem and supply the logs of what's happening at the time, I believe it would help isolate this bug and find out what's causing it.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on June 25, 2015, 12:35:42 pm
Well, I've now got a different problem. I've updated to your most recent version, which first wants me to specify the game folders, but it doesn't recognise them. They are as follows:

Status: Not found (Incomplete installation)

Path to game data files: /storage/emulated/0/openxcom
Path to save game folder: /storage/emulated/0/openxcom
Path to configuration files: /storage/emulated/0/openxcom

That's the main folder, everything is in there and that's worked for the last year. I've tried using "/storage/emulated/0/openxcom/data" but that didn't work either.

As for the log file, I haven't been able to use logcat properly. I tried the catlog app on my phone as well as the adb tools on PC, but they didn't record anything. Guess I didn't do it right.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 25, 2015, 03:14:32 pm
I've updated to your most recent version, which first wants me to specify the game folders, but it doesn't recognise them.

Yeah, the directory organization has changed (see https://openxcom.org/2015/05/openxcom-is-broken-warboy-what-have-you-done/ (https://openxcom.org/2015/05/openxcom-is-broken-warboy-what-have-you-done/), https://openxcom.org/forum/index.php/topic,3617 (https://openxcom.org/forum/index.php/topic,3617), relevant commit is https://github.com/SupSuper/OpenXcom/commit/e35a311e5ab17fb1129759485e02f19a7782190d (https://github.com/SupSuper/OpenXcom/commit/e35a311e5ab17fb1129759485e02f19a7782190d) in upstream), so I've tried to adapt to it. More to the point, there should be a button under the "Incomplete installation" message with a "Install from directory..." caption. It opens a file dialog that propts you to point to the folder containing game data (GEODATA, GEOGRAPH and other subfolders). If the data is found and correct, it will be copied to the correct location in your "game data files" folder.

As for the log file, I haven't been able to use logcat properly. I tried the catlog app on my phone as well as the adb tools on PC, but they didn't record anything. Guess I didn't do it right.

Logcat might be disabled on your device (some manufacturers do that), and you might want to check your USB debugging setting. Also, your device might ask if you want to allow USB debugging via the PC you're currently connected to. And this might be a driver issue (I got all sorts of these even on my Nexus 7 and Nexus 4 devices).
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on June 25, 2015, 06:23:20 pm
I did the "install" and it seemed to work (it said "Version 1.0? (without sound"), now the app won't start at all :( It switches to a black screen upon opening and then instantly closes.
Title: Re: OpenXcom for Android - new official thread
Post by: imcx22 on June 29, 2015, 12:12:11 am
Hello

I use openXcom on a tablet with an external physical mouse and keyboard.

Mouse has two buttons, by default mouse2 is bound to "Back" in Android.

When I play Xcom in DosBox, mouse2 works correctly - for centering on map in Globe Mode, for turning into a specific direction without taking a step in Tactics Mode.

However, in openXcom (the api19 version for pre 5.0 you posted above, running 4.4.2 over here) it remains bound to "Back".

Please, make it possible for me to use my mouse fully.

I want to use it like in DosBox (mouse2 for turning of soldiers into specific direction and xcom interface, rather than "Back" which goes back to android interface and crashes the game).

If it's already possible, I kindly ask you direct me at the howto or suggest instructions.

Thanks so far for your work (awesome, minus tiny bugs).

I also encounter the "sloppy" focus - for example, when using mouse clicks in lists of products in Sell/Sack and Purchase/Hire menus - when I click the up/down arrow, it moves the list on it's own a few pixels up or down, like if I used the scroll wheel (which btw works perfectly in this game, thanks for that).

Maybe it's possible to squish this bug too and I'm happy to provide useful feedback.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 29, 2015, 01:02:15 am
Please, make it possible for me to use my mouse fully.

As luck would have it, SDL2 had better mouse support on Android added somewhat recently, and even though it's disabled by default, you might try to get it back by changing Options -> System -> Mouse support: Extended. I'm not sure how it will work on your tablet, but it seems to register right clicks on my Nexus 7 with a Bluetooth mouse, though I'm using stock 5.0.2 Android. Anyway, you should try it, though it might cause some issues with a touchscreen.

I also encounter the "sloppy" focus - for example, when using mouse clicks in lists of products in Sell/Sack and Purchase/Hire menus - when I click the up/down arrow, it moves the list on it's own a few pixels up or down

And this is a bug on my side, thanks for reporting that! I can reproduce this one on my device, and will look into it.
Title: Re: OpenXcom for Android - new official thread
Post by: imcx22 on June 29, 2015, 01:07:19 am
Cool that you want to look into the sloppy click bug.

For this tablet (stock Samsung Android 4.4.2 on Tab S 10,5) I see no such option.

Is it hidden or an Android 5.X improvement?

Samsung is taking its time updating this device for the area it was purchased in.

I know right click works fine in Dosbox Turbo though.

Edit: I just tried updating manually and it seems it's pulling an update. Maybe it's finally lollipop. Downloading right now.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on June 29, 2015, 01:21:45 am
Is it hidden or an Android 5.X improvement?

Shouldn't be. Extended mouse support should work for every device since api14 (Ice Cream Sandwich). Anyway, I was talking about this thing:

(https://dl.dropboxusercontent.com/u/732324/Screenshot_2015-06-29-02-13-14.png)

You should see it if your system reports its version correctly.
Title: Re: OpenXcom for Android - new official thread
Post by: imcx22 on June 29, 2015, 02:50:00 am
On Lollipop (stock 5.0.2 Samsung Rom) now, set the option as you said (I used a localized, non-fully translated setup and it was just gibberish there, so I figured it's some debug settings), mouse2 still works as "back".

I think I know why that click bug happens.

The application seems to "miss" a click release. I can click down with mouse on a setting and nothing happens. I touch there with my fingers and it works. I think click happens, but click release is lost, having the app think the mouse button was never released. Hence the scrolling side effect.

So, besides that, any other ideas for how to get mouse2 working? :) Extended mode does nothing in that direction here.

What input do you use? I know SDL applications should work - ScummVM uses SDL afaik and mouse2 righ-clicks properly in adventure games like The Dig.
Title: Re: OpenXcom for Android - new official thread
Post by: Kordusain on June 29, 2015, 07:56:26 pm
Hiya.

I tried installing this on my stock samsung galaxy s4 (4.2.2 - not rooted) today, but the installer apparently can't find any game data I placed in \sdcard\OpenXcom\data\. On my OpenXcom install on my PC I'm missing the MISSDAT folder you mentioned in your OP.

So my question is, which files and folders do I need to copy after the structure change of OpenXcom, and do I need to root?
Title: Re: OpenXcom for Android - new official thread
Post by: imcx22 on June 30, 2015, 11:41:01 am
Kordusain, I have used non root stock Samsung Rom,  don't install any data, just unpack original ufo like a package downloaded from some abandonware page and then point the installer to install from that folder.

It will copy automatically the required files and in the correct directories (the layout was changed somewhat recently from what I read here).

sfalexfrog, I've also noticed that during minimising the application on android and restoring it, it hangs. can you make it not hang upon minimise? so it's possible to multi-task without losing the non-saved game data?

please let me know how else can I make the mouse2 right button work other than setting "Extended" mode on.
Title: Re: OpenXcom for Android - new official thread
Post by: Kordusain on July 01, 2015, 01:57:16 am
just unpack original ufo like a package downloaded from some abandonware page and then point the installer to install from that folder.

Well, I deleted everything I moved, copied my whole XCOM installation from steam, and I'm still getting the same thing, no data found in folder.

Is the steam version not compatible or something?
Title: Re: OpenXcom for Android - new official thread
Post by: imcx22 on July 01, 2015, 02:01:41 am
dunno, perhaps try a different version. worked for me with a dos install.

did you copy it manually or via the application like I wrote?
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on July 01, 2015, 05:12:10 am
Which version of OpenXcom are you using? I've found that apparently the latest versions of the android port are incompatible with the 1.0 milestone of OpenXcom because of the changed folder structure in the newer nightlys. I guess the opening post should be updated to reflect that change.

So, it's better to first install an OXC nightly on your pc and then copy the files from that to your smartphone/tablet.
Title: Re: OpenXcom for Android - new official thread
Post by: Kordusain on July 03, 2015, 08:22:44 am
So, it's better to first install an OXC nightly on your pc and then copy the files from that to your smartphone/tablet.

Installed the latest (at this time, 2015_06_30_2347) nightly build, copied my steam files. Started it up on my PC and tested saving, loading, battlescape and geoscape, it worked fine. Copied everything and moved it to sdcard\openxcom\, and now the app crashes on load with this error:

(https://i.imgur.com/gfv3XSa.png?1)

To test something, I moved everything inside sdcard\openxcom\ to a different folder. Upon restarting the app, I got the path specification screen back, with it proudly claiming status: not found. If I select the new folder I copied the files to, path select window says 'incomplete installation', but Install from directory still gives me 'Could not find game data'.

Thanks for trying to help though.

As for the problem itself, I've a feeling it's this thing (https://stackoverflow.com/questions/3550213/in-c-sharp-what-is-the-difference-between-toupper-and-toupperinvariant) rearing it's head again.
Title: Re: OpenXcom for Android - new official thread
Post by: begri on July 12, 2015, 04:25:07 pm
The program looks good. That would be nice if the playable mods would be in one place for this build.

Lol

Hey mate! The latest update with tne change log should be in thefirst post!

Great work anyway.
Thanks.
Title: Re: OpenXcom for Android - new official thread
Post by: begri on July 21, 2015, 10:17:00 am
What mean extended mouse and how it works. I would like to use the ctrl thing in the game for special movements.
Title: Re: OpenXcom for Android - new official thread
Post by: imcx22 on July 21, 2015, 12:18:24 pm
What mean extended mouse and how it works. I would like to use the ctrl thing in the game for special movements.
Look posts above. It's a setting.

If you're on stock android or cyanogenmod, your right mouse button will work like in dos.

On samsung roms, the rmb is borked (for now).

Wysłane z mojego SM-A300FU przy użyciu Tapatalka

Title: Re: OpenXcom for Android - new official thread
Post by: begri on July 21, 2015, 12:33:03 pm
Look posts above. It's a setting.

If you're on stock android or cyanogenmod, your right mouse button will work like in dos.

On samsung roms, the rmb is borked (for now).

Wysłane z mojego SM-A300FU przy użyciu Tapatalka
I am using not rooted samsung 5.0.2 rom.

Do you know a notepad++ app for Android?
Title: Re: OpenXcom for Android - new official thread
Post by: begri on July 24, 2015, 02:07:49 pm
Will I could play the oxc extended on android?
Title: Re: OpenXcom for Android - new official thread
Post by: imcx22 on July 24, 2015, 04:45:37 pm
Will I could play the oxc extended on android?
I recommend trying first before coming here and asking questions.

Wysłane z mojego SM-A300FU przy użyciu Tapatalka

Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on July 24, 2015, 07:02:03 pm
Okay, so I've hoped I'd be here a bit more frequently, but it looks like I'm failing in that so far. Anyway, there's a new version! Go grab it at the modsite (if it ever works right) or from my Dropbox: https://dl.dropboxusercontent.com/u/732324/OpenXcom-1.0-geec4278.apk.zip

Nothing much in terms of changes, synced up with upstream 8f64f70, fixed (hopefully) mouse for Samsungs, made some improvements to soldier reordering (thanks, Syrion!). Like always, hope it works for you!
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on July 24, 2015, 07:29:58 pm
Will I could play the oxc extended on android?

Regarding the OpenXcom Extended mod, there's a way to compile it into the Android version (like, in fact, many of the binary mods!). You'll need to build the version yourself, though. The rough idea is outlined here: https://github.com/sfalexrog/openxcom-android/blob/master/README.md ("Mod compatibility" section).

In https://github.com/sfalexrog/OpenXcom there's a branch called sdl2_extended which is a merger between OpenXcom Extended and SDL2-Android port. It might give you a nice starting point!
Title: Re: OpenXcom for Android - new official thread
Post by: DAHgaming on July 29, 2015, 02:33:14 am
Hello! I have a installation problem with this platform of the game. with the latest version of the Android build. I was able to make folders successfully, but there are still problems. I will put down the directory formats now:

X-com: Enemy Unknown
status: Not fuond (Incomplete installation)

path to game data files:
/mnt/sdcard/openxcom/UFO

Path to save data folder:
/mnt/sdcard/openxcom/Save Games     (FYI, this is the only folder I made myself)

Path to configuration files:
/mnt/sdcard/openxcom/standard

I don't understand everything I should be doing in the installation. I've already played and installed the windows version on my computer, and I put the required game folders in the data folder, so what would I do now???
Title: Re: OpenXcom for Android - new official thread
Post by: imcx22 on July 29, 2015, 03:14:23 am
Hello! I have a installation problem with this platform of the game. with the latest version of the Android build. I was able to make folders successfully, but there are still problems. I will put down the directory formats now:

X-com: Enemy Unknown
status: Not fuond (Incomplete installation)

path to game data files:
/mnt/sdcard/openxcom/UFO

Path to save data folder:
/mnt/sdcard/openxcom/Save Games     (FYI, this is the only folder I made myself)

Path to configuration files:
/mnt/sdcard/openxcom/standard

I don't understand everything I should be doing in the installation. I've already played and installed the windows version on my computer, and I put the required game folders in the data folder, so what would I do now???
For me, the application picked up data correctly on its own. I just unpacked the Xcom game, the app found it and asked to copy data which I agreed to and it worked fine ever since. Perhaps try a different version of Xcom, if the app doesn't find the game data automatically.

Wysłane z mojego SM-A300FU przy użyciu Tapatalka

Title: Re: OpenXcom for Android - new official thread
Post by: nadir on July 29, 2015, 03:43:18 am
It's finicky about music. Try downloading a new soundtrack; if it's just the MIDI version, it's not gonna see it in my experience.
Title: Re: OpenXcom for Android - new official thread
Post by: nadir on August 02, 2015, 04:39:31 am
A TFTD stream means TFTD will soon be consumable by the public...

edit: TFTD sorta works on the Android port now, with certain issues:

-Crashes when Deep Ones attack

-Crashes when a USO is detected

-Crashes on the interior Artefact Site level

-In the New Battle screen, I can load SWS ammo into the craft

-Crashes when I try to assault an Escort USO

-All the other OTFTD issues apply

-This: (https://i60.tinypic.com/2cnjw3p.png)
Much as I love airlocks, that's overdoing it  :P
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on August 04, 2015, 06:09:01 pm
(Huh, apparently someone did something and ran OpenTFTD ruleset on a build that doesn't exactly support it :P )

So, you've waited for it.

You've asked for it.

And with the blessings of our benevolent masters, SupSuper and Warboy, TFTD is now more than a four-letter word.

And I may only humbly offer the Android version that is built with the OpenTFTD ruleset and code: https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-gd81a980.apk.zip (https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-gd81a980.apk.zip) (it's not yet on the modsite, but apparently the modsite doesn't really work for android OXC anyway)Update: looks like the modsite functions properly now!

So that all of us can suffer everywhere.

---
Okay, so joking aside, the Android version is still lacking a lot of things everyone has asked about (*ahem*decent Battlescape UI*ahem*), and I didn't really give the port nearly enough love that it deserves. Still, TFTD support is there and it's nearly as good as on PC (which itself still suffers from some bugs, as far as I can tell). I've tried playing (ehm, playTESTING) this thing for a bit, and it seems to run fine, which is to say, it didn't crash horribly for a good 30 minutes.

Since TFTD support is a bit rough, I'm not yet offering to install it through the dreaded Configure Folders dialog. Instead, you'll have to go through this process yourself, placing all the required folders in your openxcom/TFTD folder (which helpfully contains a README.TXT file to list what's required). Don't worry though, the setting will come soon.

There's also one more thing that I need help with: there's at least three TFTD versions out there, probably even more. What I would like to know is what are the major differences between them, how they affect OpenTFTD and how to determine the version by looking at data files. I want this thing mostly for the Configure Folders dialog section.

And feel free to report system-specific issues to my Github! I'll look into them - eventually  :P
Title: Re: OpenXcom for Android - new official thread
Post by: woot835 on August 09, 2015, 05:02:02 pm
TFTD works fine on my tablet (Samsung Galaxy S Tab 2 10.1 with Android 4.2.2), but it has an annoying issue of not being able to use .mid files that my game came with. I went around looking for .ogg files to replace with and I did find some, but the sound quality is half static. So is there a way to use .mid files for my android tablet, or do I have to stick with staticy .ogg music for the rest of the game.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on August 09, 2015, 07:59:38 pm
it has an annoying issue of not being able to use .mid files that my game came with. I went around looking for .ogg files to replace with and I did find some, but the sound quality is half static.

Unfortunately, midi synth is not really supported in Android. I've tried a test build with TiMidity-enabled SDL2_Mixer, but it requires sound fonts (and I have to hardcode the place where the user can put them), and it sounds all kinds of wrong. So, yeah, your only real options are FLAC, OGG, and Adlib.

As for the quality, have you tried setting your sample rate to a higher value? It's 22050 by default, you might want to increase it to 44100, though you should check your files to have the same sample rate, since SDL doesn't do a good job at resampling sound.
Title: Re: OpenXcom for Android - new official thread
Post by: woot835 on August 10, 2015, 10:05:32 am
Yup, converting the sample size into 44100 fixed the quality issue, thanks!
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on August 15, 2015, 07:53:59 pm
This release is brought to you by Z. Nadir's telling me that Alien Containment actually has its own screen!

New version!

Grab it at the modsite or, if all else fails, from my Dropbox! Here's the link: https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-g7c343cc.apk.zip (https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-g7c343cc.apk.zip)
Title: Re: OpenXcom for Android - new official thread
Post by: begri on August 16, 2015, 03:27:17 pm
Very bad build. Lot of things lot working.

Maybe because I just updated the apk and it didn't apply the patch or why?

Example :
inventory stats -
Tftd instalation -
Somhow I don't get item from the mission -

Fmp mod... Or the mod is broken?

Sent from my SM-T800 using Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on August 16, 2015, 04:15:04 pm
Very bad build. Lot of things lot working.

Maybe because I just updated the apk and it didn't apply the patch or why?

Example :
inventory stats -
Tftd instalation -
Somhow I don't get item from the mission -

Fmp mod... Or the mod is broken?

That's weird. I just did a clean install (grabbing the .apk from the modsite and moving my current OpenXcom folder), got thrown into the "select folders" dialog, installed UFO Defense and TFTD from it, and everything seemed to be working. I also tried the latest FMP, and it seemed to work, though I didn't do a thorough testing.

Can you please do the following:
 - Save a game (preferably in battlescape mode when you don't get items from the mission),
 - Go to your OpenXcom folder and find the savegame and your Options.cfg file,
 - Send them both to me?
 - It would also be great, though not really necessary, if you grabbed a logcat of the game starting up.

Anyway, thank you for writing about these problems, I'll try to solve them as soon as possible!
Title: Re: OpenXcom for Android - new official thread
Post by: begri on August 19, 2015, 11:45:50 am
Everything is ok. False alarm :)

Sent from my SM-T800 using Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: niculinux on August 19, 2015, 03:44:04 pm
Thank ypu sfalexrog! Cannot wai for the 2.0 packaged .apk!!! <3
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on August 21, 2015, 01:33:32 am
Everything is ok. False alarm :)

Glad to hear that :)

Thank ypu sfalexrog! Cannot wai for the 2.0 packaged .apk!!! <3

No sooner than there's a 1.1/2.0/something milestone, I guess. Right now it's a "Kinda Nightly" :p

Which brings me to today's announcement: a new version is out! Mandatory pointy list:

Much like any other time there's an update, you're advised to download it from the modsite (https://www.openxcom.com/mod/openxcom-android-nightly (https://www.openxcom.com/mod/openxcom-android-nightly) in case it's hard to find), and if it doesn't work for you, there's always my dropbox: https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-g812f08e.apk.zip (https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-g812f08e.apk.zip).
Title: Re: OpenXcom for Android - new official thread
Post by: Lucami on August 21, 2015, 10:48:42 am
Quote

No sooner than there's a 1.1/2.0/something milestone, I guess. Right now it's a "Kinda Nightly" :p

Which brings me to today's announcement: a new version is out! Mandatory pointy list:
  • Based on upstream 9ba220e;
  • Has minor interface tweaks;
  • And all the bugfixes you've been waiting for!

Much like any other time there's an update, you're advised to download it from the modsite (https://www.openxcom.com/mod/openxcom-android-nightly (https://www.openxcom.com/mod/openxcom-android-nightly) in case it's hard to find), and if it doesn't work for you, there's always my dropbox: https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-g812f08e.apk.zip (https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-g812f08e.apk.zip).
Hi I'm having some trouble, trying to install TFTD.
If I try to copy the folders manually nothing happens, and if I try to use the in app installer, when I select the location just a say that no game data could be found

I can play UFO perfectly fine I have a moto g 2014 with lollipop 5.1.1

Thanks in advance and for the great work with the port
Title: Re: OpenXcom for Android - new official thread
Post by: Lucami on August 21, 2015, 10:55:30 am
Sorry for the double post can't remove it some logging verification error :-\
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on August 21, 2015, 11:57:48 am
Hi I'm having some trouble, trying to install TFTD.

That's weird. Just for reference, installation instructions are like this:

Note that the game data is copied, not moved, so you should ensure there's enough space on the device.

If all else fails, please send me a list of files that you have in your TFTD installation - there's a possibility that you have a version that I didn't account for, and that's why the installer barfs.

Hope this helps!
Title: Re: OpenXcom for Android - new official thread
Post by: begri on August 21, 2015, 12:58:27 pm
When you will publish it on Google play?

Sent from my SM-T800 using Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: Lucami on August 21, 2015, 03:02:52 pm
Quote
 
If all else fails, please send me a list of files that you have in your TFTD installation - there's a possibility that you have a version that I didn't account for, and that's why the installer barfs.

Hope this helps!
I think that's the problem, I have the same files on openxcom on my PC and I can play without any problem but in my phone the port don't recognize the files


Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on August 21, 2015, 06:00:02 pm
I think that's the problem, I have the same files on openxcom on my PC and I can play without any problem but in my phone the port don't recognize the files

Okay, there actually was a bug in my code which caused the checker to fail if you didn't have both ANIMS and FLOP_INT subfolders. Shame on me, I guess! A bugfix is now on the modsite and in my dropbox: https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-ga9a3a51.apk.zip
Title: Re: OpenXcom for Android - new official thread
Post by: Lucami on August 21, 2015, 07:26:19 pm
Quote from: sfalexrog
Okay, there actually was a bug in my code
Thanks I try the steam version as you said and it runs perfectly with the previous apk

Also tested the new version but found another bug I guess

But at least I can play with the steam data thanks
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on August 21, 2015, 10:50:55 pm
When you will publish it on Google play?

Unfortunately, my answer is "not soon". OpenXcom for Android is still not that easy to setup properly (even though I hope I'm making moves in the right direction), it requires original game data that can't be shipped with the game, and that's just asking for an endless stream of 1-star "how do play game" and "requires external data, what a ripoff!!11" reviews. And I'm not even mentioning some features that are still unavailable to mobile users, like force-fire and alternative movement modes!

If I'm ever publishing this port, I'll probably go for some other place like F-Droid. Even then, there's still plenty of things that have to be done before the project is "release-worthy".
Title: Re: OpenXcom for Android - new official thread
Post by: niculinux on August 21, 2015, 11:34:36 pm
Ok, wille be fine to put the .apk on openxcom.com, download page, i guess then :)
Title: Re: OpenXcom for Android - new official thread
Post by: bubblebob on September 07, 2015, 12:13:23 pm
Hi.

First a huge THANK YOU to sfalexrog! Even if it's beta your port works just wonderful on my smartphone. I hope you'll find your time to continue this project.
Now i have one question. I installed 1.0-g812f08e first. Later I installed the updated version: https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-ga9a3a51.apk.zip
Although the installation went sucessfull, the loading and title screens still show the build number g812f08e. Went there something wrong?
Title: Re: OpenXcom for Android - new official thread
Post by: begri on September 18, 2015, 11:32:40 am
When will come the next update? :)  ETA?

Sent from my SM-T800 using Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: SupSuper on September 24, 2015, 02:16:00 pm
Just wanted to say I finally got an actually decent Android phone to try this (Galaxy S5 if you want to add it to your stats) and I was pleasantly surprised, installation was painless and it works like a charm, my complements to the chef. :)

Sometimes the game freezes when quitting or leaving the Options, but nothing problematic.
Title: Re: OpenXcom for Android - new official thread
Post by: nadir on October 10, 2015, 12:50:39 pm
Incidentally, I did a clean install of the version posted above and can't seen to get mods working. I've tried making a Mods/ folder and haven't gotten results.

Edit: I found the mods folder where I put the saved games ^^;
Title: Re: OpenXcom for Android - new official thread
Post by: Arthanor on October 10, 2015, 09:23:49 pm
Just wanted to say I finally got an actually decent Android phone to try this (Galaxy S5 if you want to add it to your stats) and I was pleasantly surprised, installation was painless and it works like a charm, my complements to the chef. :)

Sometimes the game freezes when quitting or leaving the Options, but nothing problematic.

It fits well on an S5? I've been meaning to try but always assumed it would be so small as to not be worth it, so didn't bother.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on October 17, 2015, 07:39:05 pm
It actually fits very well! As the original resolution of the game is so low, the buttons are really nicely sized for use with a smartphone :D I've played through it once on my Xperia ZL (5" display, S5 has 5,1", so it's only slightly larger) and thought the touch controls fit the game like a glove!
It'd only be problematic if you intended to use higher resolution, as then the buttons are equally smaller, but I found that unsuitable on the phone. So, go for it, it's worth it :)
Title: Re: OpenXcom for Android - new official thread
Post by: nadir on October 26, 2015, 12:48:35 am
It's... actually shocking how well the controls work with a touchscreen, isn't it? The only thing I've had problems with is the buy/sell/transfer screens and that would be easily rectified if I wasn't too lazy to get a stylus.
Title: Re: OpenXcom for Android - new official thread
Post by: Katinka on October 27, 2015, 06:32:02 pm
Hello!
Great work!
I play on Android Lollipop and it works very fine.

QUESTION:
Can I add the original PSx Xcom "Sounds" and Music to the android version?
At least the music would be great.

Thank you
Title: Re: OpenXcom for Android - new official thread
Post by: fooble on October 28, 2015, 12:48:03 pm
I just signed up to say thank you so much for porting this to Android, I have the biggest grin on my face at the though of being able to shoot aliens on the go! =D =D
Title: Re: OpenXcom for Android - new official thread
Post by: nadir on November 06, 2015, 07:47:06 am
Hello!
Great work!
I play on Android Lollipop and it works very fine.

QUESTION:
Can I add the original PSx Xcom "Sounds" and Music to the android version?
At least the music would be great.

Thank you

Certainly is possible!

Sounds:

https://www.openxcom.com/mod/ufo-defense-psx-sound-effects (https://www.openxcom.com/mod/ufo-defense-psx-sound-effects)

Music:

https://www.openxcom.com/mod/ufo-defense-psx-music (https://www.openxcom.com/mod/ufo-defense-psx-music)
Title: Re: OpenXcom for Android - new official thread
Post by: Acrid on November 11, 2015, 04:20:07 pm
Hello, I installed OpenXcom for pc and everything works great!  I'm pretty good at following instructions but I seem to be having some trouble getting this to work on my tablet.

The issue that I'm getting is that every time the game loads it asks me where my data is.  I point it in the right direction and it asks me to save and restart.  It then goes back to the dos looking screen and keeps asking me to save and restart.  The status shows green lettering that says "Version 1.4+ (Collector's Edition)."  It continues to loop like this and won't ever load the game.

I tried the install on my phone to see if it was a device specific issue but the exact same thing occurs.  I have a rooted Samsung S3 tablet 7" and an HTC One M9 that is stock.  I figured that I must have an issue with my data files or I'm pointing the installation in the wrong direction somehow.  I have tried different nightly builds and have used my original X-com data and my OpenXcom data. 

If someone could help me figure out where I went wrong I'd be grateful.  My only concern is that if I can play X-com on the go I may never get any work done again!
Title: Re: OpenXcom for Android - new official thread
Post by: sleepdealer on November 17, 2015, 06:24:09 pm
This is fucking awesome.

That is all.
Title: Re: OpenXcom for Android - new official thread
Post by: shult12 on November 26, 2015, 04:21:20 pm
I can't start the game. I've moved the game data for both UFO and TFTD to the correct directory. However, when I launch the game I get the black screen with copyright and stuff and then it just crashes. I'm on Samsung Galaxy S3 Mini, Android 4.1.2
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on December 01, 2015, 08:47:55 pm
Looks like I've once again forgotten about my thread. My bad! Anyway, let me try to sort things out:

Hello, I installed OpenXcom for pc and everything works great!  I'm pretty good at following instructions but I seem to be having some trouble getting this to work on my tablet.

If you're talking about the instructions on the Ufopaedia.org website - yeah, these are outdated. Still, they're probably too confusing for their own good, so I've decided to finally update them.

Anyway, you should try doing a "clean install" (deleting anything related to OpenXcom on your device and installing the .apk again). Copy only your game data (not OpenXcom files!) to a folder on your device, and make the "preloader" use this data. Everything else is contained inside the .apk itself.

If the problem persists, try getting a logcat dump of the loading process - OpenXcom sends quite a bit of debug information to the system log!

I can't start the game. I've moved the game data for both UFO and TFTD to the correct directory. However, when I launch the game I get the black screen with copyright and stuff and then it just crashes. I'm on Samsung Galaxy S3 Mini, Android 4.1.2

That's weird. Maybe you're missing some resources? Try getting a logcat, it should definitely help diagnose the problem!

Also, since there's been a lot going on in the upstream, there's (finally) a new version out! It contains everything from the "big" OpenXcom, all of those bugfixes and niceties like buying/selling categories and soldier diaries. Grab it at the modsite: https://www.openxcom.com/mod/openxcom-android-nightly - or from my Dropbox: https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-g00e6d99.apk

Be sure to report any faults and have fun!
Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on February 14, 2016, 07:54:27 am
Hi I'm using this port on my samsung phone and so far everythin is splendid. Maybe some interface enhancements would rock, like how it sucks to use the buy sell arrows and similar. Also, the ones that make soldier and skyranger equip go up and fown.

Even made my own ghetto stylus so I could play this.

Enviado de meu SM-G3502T usando Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on February 16, 2016, 07:26:48 pm
Got two crashes yesterday. Does this port have crashlogs? Want to send them your way if it does.
Of course, it may have glitched because of FMP instead, but that's what the log is for.

Also, any idea why the game restarts from the loading screen if I change programs?

Enviado de meu SM-G3502T usando Tapatalk
Title: Re: OpenXcom for Android - new official thread
Post by: nadir on February 24, 2016, 04:39:37 am
Got two crashes yesterday. Does this port have crashlogs? Want to send them your way if it does.
Of course, it may have glitched because of FMP instead, but that's what the log is for.

Also, any idea why the game restarts from the loading screen if I change programs?

Enviado de meu SM-G3502T usando Tapatalk
openxcom.log is present here, where your saves go IIRC.
Restarting from the loading screen is a quirk of Android. Some devices are pretty bad at multitasking so they'll kill apps that don't have active focus at the moment.
Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on February 24, 2016, 05:58:50 am
Just looked at the file and apparently nothing is written on it. It had o kb and when I open it, there's also absolutely nothing.

Anything to do with the fact the game itself is in the simulated SD while the save folder is in the cell external SD? Only way I could get it to work, I need to root this thing.

Enviado de meu SM-G3502T usando Tapatalk
Title: Re: OpenXcom for Android - new official thread
Post by: nadir on February 24, 2016, 05:51:24 pm
Possibly, but I have no clue. If you can get at the logcat, it might help.
Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on February 24, 2016, 05:56:22 pm
Logcat?

Enviado de meu SM-G3502T usando Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: nadir on February 24, 2016, 06:00:26 pm
https://developer.android.com/tools/help/logcat.html (https://developer.android.com/tools/help/logcat.html)
Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on February 25, 2016, 02:30:22 am
How do I get the logcat?

Enviado de meu SM-G3502T usando Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: nadir on February 25, 2016, 06:37:15 am
If your device is rooted, there are several apps that can get it for you. F-droid is always a nice source for such things.

Check here:
https://forum.xda-developers.com/showthread.php?t=1726238 (https://forum.xda-developers.com/showthread.php?t=1726238)
Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on February 28, 2016, 09:36:01 am
No root atm. Any idea? I could send save and cfg file so you can reproduce the set-up and see what's up?

Enviado de meu SM-G3502T usando Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: nadir on March 03, 2016, 03:33:13 am
I'm willing to have a look if you want. Have you/can you test/ed it in Windows/Mac/Linux of whatever flavour to see if it crashes there?
Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on March 03, 2016, 05:10:31 am
Thanks! I will send you the file.
I would, but I'm Computerless atm. That's why I'm playing on my phone.

Enviado de meu SM-G3502T usando Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on March 03, 2016, 05:22:02 am
Here it is, from my mega:
https://mega.nz/#!RccgTLSb!m-a8yszwdGOjaVlYm-XyHxDWNWy0Bo28d-QREeS3q0A

Enviado de meu SM-G3502T usando Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: nadir on March 03, 2016, 07:08:37 am
Could you tell me the exact versions of OXCA and FMP you're using? I can't try and reproduce it without those.
Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on March 03, 2016, 07:27:48 am
OpenXcom-v1.0-g00e6d99 and FMP 1.8.1.

Enviado de meu SM-G3502T usando Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: YuGiOhJCJ on March 10, 2016, 09:37:12 am
Hello,

I am using OpenXcom-1.0-g68acd87.apk.zip [1] on a Lenovo TAB 2 A7-20F tablet [2].
I get the intro then the menu but as soon as I start the game a bug appears.
In fact, the application hangs during a while, then I come back to the Android desktop and the process is not killed.
I can go back to the list of processes and select the OpenXcom process.
When I do that, the process restart and I see the intro then the menu again.

I was wondering if it was not a problem about the permissions on the files because I set:
- /storage/sdcard1/OpenXcom/data
- /storage/sdcard1/OpenXcom/save
- /storage/sdcard1/OpenXcom/conf
and all these directories seem to be read-only because the "New" button does not appear here.

So, I tried to set:
- /storage/sdcard1/OpenXcom/data
- /storage/emulated/0/OpenXcom/save
- /storage/emulated/0/OpenXcom/conf

But I got the same behavior.

Any idea why it happens?

Thank you.
Best regards.

[1] https://www.openxcom.com/mod/openxcom-android-nightly/download/e10ec416
[2] https://support.lenovo.com/fr/en/products/tablets/a-series/a7-20-2?beta=false
Title: Re: OpenXcom for Android - new official thread
Post by: Taberone on March 13, 2016, 04:59:21 am
Browsing my Android's files on a PC, I can't find an Sd Card folder, only internal storage.

Installed the apk and got to the preloader on my One Touch pop 7. I tapped the button to copy both UFO and TFTD data to the directory. I hit "Save and restart" and OpenXCOM closed itself, as expected... Except for the part where OpenXCOM doesn't even launch and keeps briefly flashing the preloader before closing itself. It gets to "generating a list of assets" before closing on the preloader.

I managed to get it to be green(UFO version is the patched one, TFTD version is the DOS one) when I chose the location of the UFO/TFTD folders, and hit the "use app cache" button for the path to config/saves/game data before the problem started. (screenshot in the attachment is from before I hit "use app cache")
Title: Re: OpenXcom for Android - new official thread
Post by: Slaughter on March 27, 2016, 05:54:30 am
Hey Nadir I think the bug was indeed on FMP. I downloaded the newest version of FMP, started a new game and so far got only a few crashes I have been unable to reproduce.

Might still want to take a look to make sure, or foward it to Solarius. You never know.

Btw, any way to get Piratez to work on the Android port?


Enviado de meu SM-G3502T usando Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: Mr. Quiet on May 30, 2016, 08:52:37 pm
A few questions:
Will I be able to play newer X-COM mods like X-Pirates and Area 51?

Am I missing out on newer updates? I'm running the latest from the modsite, a nightly from last year I believe.

I would love to hear of any advice of how you guys play on Android and what options you like to change. thanks all!

My Tablet's res is pretty low, 1024 x 768. Makes a big difference, right? Anyone with higher res tablets?

Btw, tried this on a Samsung Galaxy Tab A 9.7. Runs like a charm, but I gotta play in original res, because even on 1.5x I have a hard time tapping the specific area (my low res tablet's fault?), but damn this is awesome! It's very doable on a tablet. Please finish this awesome project :')
Title: Re: OpenXcom for Android - new official thread
Post by: begri on June 19, 2016, 12:41:56 pm
ETA?

Gesendet von meinem SM-T800 mit Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on June 19, 2016, 12:51:25 pm
ETA of what?
Title: Re: OpenXcom for Android - new official thread
Post by: begri on June 19, 2016, 01:46:09 pm
Next release :)

Gesendet von meinem SM-T800 mit Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on June 19, 2016, 01:50:21 pm
(As far as I know) There is nobody working on this and there is no ETA for the next release.
Title: Re: OpenXcom for Android - new official thread
Post by: begri on June 19, 2016, 01:51:50 pm
Omg now I am very very sad...

Gesendet von meinem SM-T800 mit Tapatalk

Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog on July 01, 2016, 11:21:15 pm
Huh, looks like I've missed a bunch of stuff! Turns Out (tm) school tends to take up a lot of time from anyone involved.

So, there's a new version, but be warned: it's not really tested! It's more or less a "successful build after a merge" build, with stuff probably broken in unusual and unexpected ways.

Still, it's up-to-date, as of time of writing, with the current upstream (dbd3979).

As usual, grab your copy at the Mod Portal (https://www.openxcom.com/mod/openxcom-android-nightly), and you might try your luck with my dropbox if the portal acts up for some reason: https://dl.dropboxusercontent.com/u/732324/OpenXcom-v1.0-ga8e05cf.apk.zip
Title: Re: OpenXcom for Android - new official thread
Post by: sleepdealer on July 03, 2016, 09:09:10 am
Yo!

First of all, thanks to everyone on the openxcom team. This is still one of my favorite games of all time despite being one of the first games I ever played. You guys rule.

One issue that I've been experiencing: I'm using a bluetooth keyboard and mouse (which by the way works *incredibly* well, kudos) but for some reason I can only pan the screen with ctrl held down. A small issue to be sure, wanted to mention it. I've tried different bindings, same deal. Panning keys will only work while ctrl is depressed. All the other binds, kneeling/weapons/selection/etc work perfectly. 'Tis odd.

I also have an issue with my music (i.e. there is none) but since there are some enemy death sounds missing as well I'm going to try re-transfering the sound files from my desktop installation, maybe things got messed up somehow along the way.

Thanks and keep up the great work!
Title: Re: OpenXcom for Android - new official thread
Post by: nadir on August 03, 2016, 12:18:04 am

I also have an issue with my music (i.e. there is none) but since there are some enemy death sounds missing as well I'm going to try re-transfering the sound files from my desktop installation, maybe things got messed up somehow along the way.


Unless there's been a major change that I haven't noticed (plausible, I haven't been keeping up with the Android version lately), if the music is in MIDI files, the app can fail to recognise them. That could be the issue.
Title: Re: OpenXcom for Android - new official thread
Post by: Axebeard on August 05, 2016, 01:01:40 am
I know this probably isn't being updated any more, but when I install it (seemingly successfully), and try to run the game on my Verizon tablet, all I get is the Preloading screen then it nothing.
Title: Re: OpenXcom for Android - new official thread
Post by: nadir on August 05, 2016, 03:40:07 am
I know this probably isn't being updated any more, but when I install it (seemingly successfully), and try to run the game on my Verizon tablet, all I get is the Preloading screen then it nothing.
Last updated July 1, 2016. OXCA's still going strong.
So, troubleshooting. There are a lot of cases where someone can't get the game to work, and it turns out the issue is that they have the Windows version of UFO/TFTD, and OXC for Android doesn't recognise the MIDI soundtracks. So, to isolate the problem, please:
1.) Download an alternate soundtrack (such as the PSX soundtrack available on openxcom.com (https://openxcom.com))
2.) Place the music files in the game data, in your sound folder
3.) Try to run the game.
Then report back, peas and tanks  :)
Title: Re: OpenXcom for Android - new official thread
Post by: Axebeard on August 06, 2016, 03:13:40 am
Nadir, I replaced the midis with MP3s and nothing changed. I'm not too dedicated to getting it working on a tablet, by the way, just wanted to test it out if it were easy to install.
Title: Re: OpenXcom for Android - new official thread
Post by: ucel on November 08, 2016, 12:27:03 pm
@sfalexrog: would be nice to have new version for android :)
Title: Re: OpenXcom for Android - new official thread
Post by: Diego21ARG on December 13, 2016, 01:14:51 pm
I wish I had the knowledge to help you keep this going!!
I played XCOM in DOS, in the Windows DOSBOX, I play OpenXcom in my notebook and I'm hoping to be able to play it in Android!!! It'd be awesome to take the game everywhere with me!!

All I can offer is to translate the dialogues (and such) to Spanish if you wanna do a Spanish version (I'm from Argentina and that's my mother tongue  ;))
Title: Re: OpenXcom for Android - new official thread
Post by: TuKéZu on February 02, 2017, 08:28:06 pm
I played my Android save on PC with the latest nightlies (Jan 24 & Jan 27), and when I overwrote it, it wouldn't show up on the port's load screen. I fixed this by changing
mods:
  - "xcom1 ver: 1.0"

to
mods:
  - xcom1

in the .sav and it loaded up just fine. After a few times of doing this however, it started giving me errors like this on the port:
Load failed
yaml-cpp: error at line 10068, column 7: bad conversion

The line seems to change every time I overwrite it again, but it always seems to correspond to an alien supply mission's corresponding base, if I'm reading the .sav right:
- type: STR_ALIEN_SUPPLY
    region: STR_NORTH_AMERICA
    race: STR_ETHEREAL
    nextWave: 0
    nextUfoCounter: 0
    spawnCountdown: 690
    liveUfos: 0
    uniqueID: 43
    alienBase:
      lon: 5.0139868484743877
(this is line 10068, column 7)
      lat: -0.33621936614315889
      type: STR_ALIEN_BASE
      id: 1



Now, I did get the save to load once I crudely erased all the conflicting alien missions from the .sav, but what exactly was going on there?
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on February 03, 2017, 12:24:45 am
Latest nightly and Android build are different versions, and they are not compatible as you have noticed.

Either stick to only one platform...
... or use the same nightly on your PC as the Android version is using.
Title: Re: OpenXcom for Android - new official thread
Post by: TuKéZu on February 04, 2017, 01:47:37 am
I actually looked into getting an older nightly, but I can't find downloads anywhere, and I don't know how to compile from github, if that's even possible...
Title: Re: OpenXcom for Android - new official thread
Post by: Yankes on February 04, 2017, 02:21:21 am
I have backups of old exe of my branch (its different to normal game but still be compatible): https://www.mediafire.com/folder/w07p0ibc985kd/OXCE
Is possible that you could find version close to your android ones. This is only exe, data you can copy from you android or using link
https://github.com/Yankes/OpenXcom/tree/??
where "??" you need replace with correct number from readme in zip with exe.
Title: Re: OpenXcom for Android - new official thread
Post by: bukimi on February 22, 2017, 08:00:22 pm
There's a serious bug on apk version of Open X-Com (Ufo Defense). There are no enemy bases!  :(
At first I thought I don't have luck finding them, but them I had a message "alien base found" with Geoscape centered on a spot, but there was still no alien base. I tried scouting there, but it didn't show up... Then I skipped a month forward to see if another bases appear. I had another "base found" message, but again there is nothing on the map :(
Is there any fix to that?  :-\
Title: Re: OpenXcom for Android - new official thread
Post by: jmf on February 23, 2017, 11:52:09 pm
also, games dont save on ufo defense but do on terrof from the deep
Title: Re: OpenXcom for Android - new official thread
Post by: bukimi 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?
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian 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.
Title: Re: OpenXcom for Android - new official thread
Post by: sambojin 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.
Title: Re: OpenXcom for Android - new official thread
Post by: Nord on March 30, 2017, 01:44:59 pm
Unbelievable! I waited for it so long... Thank you very much, Meridian!
Title: Re: OpenXcom for Android - new official thread
Post by: xracer on June 01, 2017, 05:12:44 pm
So where is the APK with no sounds issues?  ::)
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on June 01, 2017, 05:19:15 pm
So where is the APK with no sounds issues?  ::)

Here: https://openxcom.org/forum/index.php/topic,4187.0.html
Title: Re: OpenXcom for Android - new official thread
Post by: xracer on June 01, 2017, 06:01:20 pm
Awesome Thanks!!!!!
Title: Re: OpenXcom for Android - new official thread
Post by: pancho 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 ?
Title: Re: OpenXcom for Android - new official thread
Post by: Solarius Scorch 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
Title: Re: OpenXcom for Android - new official thread
Post by: pancho 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 :)
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian 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?
Title: Re: OpenXcom for Android - new official thread
Post by: kutchinka1 on July 21, 2017, 09:58:05 pm
hey guys. where is the mods folder located? i can't really find it.
thx.
Title: Re: OpenXcom for Android - new official thread
Post by: sfalexrog 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 (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  :)
Title: Re: OpenXcom for Android - new official thread
Post by: Yataka Shimaoka 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?
Title: Re: OpenXcom for Android - new official thread
Post by: xracer on November 29, 2017, 07:43:17 am
Not to sound pedantic, but is Feb on the APK still going on, I have OXC extended but I like a few features from the base code. And the git seems a bit out dated :(

I downloaded 'official' Android ort and I can't import the folder it says they are imported but the game crashes on start up.
Title: Re: OpenXcom for Android - new official thread
Post by: Solarius Scorch on November 29, 2017, 02:42:52 pm
Yankes is working on the next release of OXCE to include the new vanilla changes, so hopefully it'll be updated soon. But still it will have to be processed by Meridian as well, so it will take some time before the next Android version.
Title: Re: OpenXcom for Android - new official thread
Post by: xracer on November 29, 2017, 08:22:46 pm
Yes. I always followed Meridiam work on OXCe like I said that is the version I am running, however last I heard Meridian got tired of ***** people and stopped working on OXCe altogether for a while. Then again I have not been in the chats lately. But I am glad someone still working on it.
Title: Re: OpenXcom for Android - new official thread
Post by: caleafterearth on December 07, 2017, 12:28:27 pm
Hellooos!

I can't seen to find a working link to the APK... :(
Help? Lol

Title: Re: OpenXcom for Android - new official thread
Post by: xracer on January 11, 2018, 03:38:21 am
Hellooos!

I can't seen to find a working link to the APK... :(
Help? Lol


The link is

https://openxcom.org/forum/index.php/topic,5258.0.html
Title: Re: OpenXcom for Android - new official thread
Post by: RSSwizard on January 16, 2018, 09:34:48 pm
Just to be clear which version and type of OXC is this for the android?
Last time I picked up the android version I think Meridian was the one who linked it to me and I was under the impression that he was the one maintaining it.

I have version 3.7a+4c5574a OXCE+ and im wondering if it has the same options/capabilities or if this just happens to be a different fork of openxcom for android. Im making a personal mod for TFTD and I dont want to break compatability by installing a different OXC.

Edit:
Quote
"Currently there's no way to force-fire or use alternative movement modes."
The easiest and most intuitive solution to this is the Long Press. Its already used for a variety of things so its going to be tricky to use but at least it would allow the player to use these functions.

Ive gotten my butt kicked a couple times just because of the finicky controls used in an android that I have to rapidly press some area to shoot at because it keeps telling me there's no line of fire (usually shooting into a building) and I can even missfire as a result - would be really great to just force fire on a wall tile I was actually trying to shoot. Likewise with the painfully slow movement of rookie soldiers not being able to clear the transport and reach cover by the end of the first turn they've disembarked - or run to the transport door fast enough to get a shot at the first visible alien and provide support for the tank.
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on January 16, 2018, 09:53:24 pm
OXC for Android is maintained by sfalexrog.
Downloads here: https://github.com/sfalexrog/openxcom-android/releases

OXCE+ for Android is maintained by me.
Downloads here: https://openxcom.org/forum/index.php/topic,5258.0.html
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 06, 2018, 12:31:28 pm
Hi everyone!

For various reason I thought I could try the android version of OXC. First I tried to build my own, because it seemed to be easier than the windows version, but I've got pretty the same result: the app starts, I select the place of the data files, then hit the save and restart button and then I wait... Some time afterward the OS says the app does not reply. I'm not sure it is frozen, since the popup comes really long time later and the phone is responsible as well.

After that I gave a try to the versions listed in the previous post (thank you very much for it!). I can install two versions, but none of them works. The difference that the app suddenly stops running, instead of the dark screen.

I have a little better understanding of android, but this is still C++. :) I'm wondering that I might missing something (like I didn't copied every necessary files to the phone), or it's just the big variety of android devices. I copied the data from my installed OXC folder which is copied and patched by the installer. Could this be the problem? Is there an efficient way to debug? I attached logcat, but that does not give me the idea where to look, because the app just stops logging. Maybe I should start analyse the log line by line, but I hope for some quick beginner tips to start with. :)
Title: Re: OpenXcom for Android - new official thread
Post by: Yataka Shimaoka on March 06, 2018, 03:50:27 pm
Try the OXCE+ android build, its far more updated
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 06, 2018, 05:24:20 pm
The result is very similar. I set up the game then I press save and restart, and the set up page is showed again, unless I tick the option to use the app cache for game data. After that the app terminates upon restart, and it simply quits if I restart it (without the error message that the app suddenly stopped running popup).
The log is 0 byte.
Any idea?
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on March 06, 2018, 05:28:52 pm
Option 1:
Uninstall and purge everything and start again from scratch.

Option 2:
If it still doesn't work, don't use the loader... but do it manually:
1. install
2. don't run
3. copy UFO/TFTD data in the appropriate place manually
4. now run... (loader won't even start)
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 06, 2018, 05:42:28 pm
I tried option 1, with the same result. I thought something could be mixed up.

However I'm still thinking of I'm missing something from "UFO/TFTD data". But I'll try option 2 definitely.

So to clarify:
UFO data is the stuff that can be found on a Windows install in the folder C:\Program Files\OpenXCom\UFO folder (geograph, anim, sound etc)
TFTD data is the stuff that can be found on a Windows install in the folder C:\Program Files\OpenXCom\TFTD folder (geograph, anim, sound etc)

Anything else? Like common folder with the name files, etc.

Thank you!
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on March 06, 2018, 05:50:37 pm
"common", "standard" etc. are installed during APK installation

the only things missing are original resources in "UFO" and "TFTD" folders
(and yes, you can copy them from the Windows install, they are the same)
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 06, 2018, 06:04:57 pm
I noticed an interesting thing in the config file:
It starts as
mods:
 -active: false
 id: xcom1
 -active: false
 id: xcom2

etc...

Shouldn't be one of them true? I mean if I want to play with Enemy unknown the option.cfg should start like this:
mods:
 -active: true
 id: xcom1
 -active: false
 id: xcom2

etc.

edit: by the way I'm promoted. :D
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on March 06, 2018, 07:09:43 pm
delete options.cfg and try again
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 06, 2018, 07:28:24 pm
Now it is regenerated, but there it look like:
mods:
 -active: true
 id: xcom1
 -active: false
 id: xcom2
 -active: true
 id: xcom1
 -active: false
 id: xcom2

Sometimes it is generated right, but I always end up on the setup screen.

Should we move this conversation to a separate thread?
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 06, 2018, 08:54:53 pm
I did a few clean restart loops and I always end up in the double false state. I'll try to edit the file later.
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 07, 2018, 10:13:49 pm
It's pretty weird, the size and content of the file is different according to the phone and my laptop... Even the different file readers on the phone shows different content. Maybe I run out of disk space in that folder?
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 08, 2018, 05:21:06 pm
If I understand everything correctly, if I clone this repo https://github.com/MeridianOXC/openxcom-android (https://github.com/MeridianOXC/openxcom-android)
Init the submodules and clone here: https://github.com/MeridianOXC/openxcom-android/tree/master/app/src/main/jni (https://github.com/MeridianOXC/openxcom-android/tree/master/app/src/main/jni)
this other repo https://github.com/MeridianOXC/OpenXcom (https://github.com/MeridianOXC/OpenXcom)

And build it, I should get OXCE+ for android. I'll try to find out the reason and if possible fix it.
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 09, 2018, 05:23:58 pm
Ok, to make things clear: the android version needs the original data files! The files from the Windows are not suitable. I copied the files from the steam version, and it started to work.
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on March 09, 2018, 05:41:20 pm
Ok, to make things clear: the android version needs the original data files! The files from the Windows are not suitable. I copied the files from the steam version, and it started to work.

To make things clearer... that's not really true.

Both Windows and Android version require the original data files... Windows version also doesn't work with "something else"?!

Can you send me a private message with a download link to this "something else" that works on Windows, but doesn't work on Android for you? I would like to test it on my devices...
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on March 10, 2018, 10:52:20 pm
I try to reword myself. Sometimes it is hard to follow me. :)

So, when I read the wiki page how to install the android port, it writes "Copy your X-Com: Enemy Unknown/Terror From The Deep files to a folder on your device", I thought it means they can be copied from the OpenXCom installation folder (C:\Program Files\OpenXCom\). I copied the UFO and TFTD folders on my phone. But it did not worked, while it works on my laptop with the same files. I did not used "something else".
When I copied the same files from the Steam folders, the android version started to work. That is what I wanted to be highlighted.

I'm just guessing, the problem could be that the android port tries to patch the files? And patching the already patched files caused the trouble?

I'm zipping the files, I will send the links shortly.
Title: Re: OpenXcom for Android - new official thread
Post by: Abramakabra on April 09, 2018, 12:22:27 pm
Hello and first thank You for Your hard work You put on making it playable on mobiles.
I start playing it couples of days ago and everything was working fine till i encounter terror site on open sea (aliens attacking some ship) - after my transport ship with my team arrived game immediately ctd. First I was sure its a one time crash but its happend every time i get this TS. Probably i get the same ctd when i get TS when aliens attacking citties. Exept those two TS everything work correctly. Im playing on Huawei Y6 II android 6.0
Thanks for any help
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on April 09, 2018, 12:28:29 pm
Hello and first thank You for Your hard work You put on making it playable on mobiles.
I start playing it couples of days ago and everything was working fine till i encounter terror site on open sea (aliens attacking some ship) - after my transport ship with my team arrived game immediately ctd. First I was sure its a one time crash but its happend every time i get this TS. Probably i get the same ctd when i get TS when aliens attacking citties. Exept those two TS everything work correctly. Im playing on Huawei Y6 II android 6.0
Thanks for any help

Hello and welcome,

can you attach a save file just before the crash?

If not, can you at least say which version of openxcom for android do you have and if you play with any mods or not?

M.
Title: Re: OpenXcom for Android - new official thread
Post by: Abramakabra on April 09, 2018, 04:34:14 pm
Hello and welcome,

can you attach a save file just before the crash?

If not, can you at least say which version of openxcom for android do you have and if you play with any mods or not?

M.

Thanks for quick reply. I don't have save with ctd, but i attached one from my game (just wait for some time till u get TS on the open sea - its always crash there). Openxcom version is Extended+ 3.10a89d1922, and Im not using any mods - pure Xcom: TFTD (Steam version).
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on May 28, 2018, 10:07:39 am
I have some performance issues on my mobile. In battlescape when I move with a soldier after every step the game stops for a second. I looks like it's calculating something, even the animations are stopped. It's much more better when I view the edge of the map. But it's much worth in a big UFO on the 2nd floor. It becomes a patience game there.

Is there any config option that could be changed to get a better result?
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on May 28, 2018, 12:32:21 pm
1/ which version are you using? did you download it somewhere (if yes where?) or compiled yourself?

2/ are you playing vanilla or with mods? if with mods, which mods?

3/ what resolution do you use, what display filter and what scaling? attach the options.cfg file if you can
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on May 28, 2018, 02:57:39 pm
1/ compiled myself an OXCE+ for android from this: https://github.com/MeridianOXC/openxcom-android and this: https://github.com/MeridianOXC/OpenXcom
It's not up to date I compiled around March 9.

2/ No mods added, just my change, but it is not related to battlescape (different character "generation")

3/ I use native resolution, no scaling, and linear filter (just turned off and tried without it, but nothing changed except the game looks a bit awkward). The native resolution is 1280x720. I was not able to change it, since that's the only option.

Config attached.

Thanks!
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on May 28, 2018, 03:04:55 pm
My best guess is that you have compiled it in Debug mode, not Release mode.

Try this one for comparison: 2018-03-21-OpenXcomExPlus310a-89d1922.zip (https://drive.google.com/open?id=1ENk6KQTMheMwcyfM_8Ls7LanExFKcKpB)
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on May 28, 2018, 11:04:13 pm
Your guess seems to be correct. I run the android app compile in normal mode, but it seems the OXCE+ project is compiled in debug mode (at least the selectable contexts are all have the debug word in them. How could I change them?

I see a line like:
if (CMAKE_BUILD_TYPE EQUAL "Release")

Shall I make this an always true variant?

Edit: okay, I think I see the problem:
Executing tasks: [:app:generateDebugSources, :app:generateDebugAndroidTestSources, :app:mockableAndroidJar]

How can I change this?

2nd edition: Google is developers best friend, found the answer. It's about an hour to see if it works. :)
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on May 28, 2018, 11:28:52 pm
I don't know, I compile by a single command using gradle, see here: https://raw.githubusercontent.com/MeridianOXC/openxcom-android/oxce-plus-proto/README.md

Code: [Select]
gradlew assembleRelease

The libraries/tools mentioned there are bit older than what I actually use I think (can't check now)... I believe I am using android ndk r14b
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on May 29, 2018, 12:00:52 am
I use Android Studio to do android stuff. There is a "Build Variants" panel, in which I can switch between debug and release variants. If release variant is selected, then in "Build" menu there is a "Generate Signed APK..." option. It will basically run the command you wrote, but before that I have to set my signatures (in this case I use my existing one).
Title: Re: OpenXcom for Android - new official thread
Post by: Bubuskac on May 29, 2018, 09:51:46 am
Thanks for the help! It solved the problem.
Title: Re: OpenXcom for Android - new official thread
Post by: Syrion on June 28, 2018, 06:02:56 pm
The topic only comes up once in a while, but would it actually be possible for anyone but sfalexrog to implement "Force Fire" any way by now? It's incredible that this port exists and works as well as it does, especially "now" that thankfully OXCE+ is supported, but it would be just that much better with that feature intact :)
Title: Re: OpenXcom for Android - new official thread
Post by: Dr.Crowley on July 29, 2018, 02:09:55 pm
I feel horribly confused with all of this outdated stuff.
Title: Re: OpenXcom for Android - new official thread
Post by: niculinux on August 09, 2018, 06:01:01 pm
installed on samsung A8, works like a charm!! I fear therw is no way to emulate left mouse button/click, please teel me im wrong?
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on August 09, 2018, 11:50:52 pm
You're wrong... left mouse button click is emulated by a simple tap.
Title: Re: OpenXcom for Android - new official thread
Post by: XSauroxPlayer on October 19, 2018, 10:11:32 am
Hi guys, I just installed this port to my phone to be able to play while traveling.
Is there a way to use final mod pack?
It seems the game crashes if I activate it.
Thanks in advance!
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on October 19, 2018, 10:36:55 am
Hi guys, I just installed this port to my phone to be able to play while traveling.
Is there a way to use final mod pack?
It seems the game crashes if I activate it.
Thanks in advance!

Yes, it is possible to play final mod pack.

Which version of OpenXcom for Android are you using?
Which version of Final mod pack are you using?
Title: Re: OpenXcom for Android - new official thread
Post by: XSauroxPlayer on October 19, 2018, 10:39:40 am
Thank you for your quick answer!
I'm using final mod pack 2.2d (latest)
and OpenXcom-v1.0-ga8e05cf
maybe it's the wrong apk?
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on October 19, 2018, 11:18:37 am
and OpenXcom-v1.0-ga8e05cf

That version is more than 2 years old... in the meantime there have been breaking changes in OpenXcom.

You have two options:

1. delete file /Final Mod Pack/Ruleset/commendations_FMP.rul
This is the file which is causing the crash... after that you should be able to start the game. However, it may happen that some features still don't work 100%.

2. upgrade the OpenXcom for Android version:
a/ either vanilla... I don't however know what the latest version is... seems like there is no recent update
b/ or you can upgrade to OXCE for Android... there is a version (less than a week old) available for download here: https://openxcom.org/forum/index.php/topic,5258.0.html
Title: Re: OpenXcom for Android - new official thread
Post by: XSauroxPlayer on October 19, 2018, 11:56:32 am
Hi thanks again, I would like to proceed with OXCE but it seems I can't configure it correctly.
Are there any written instructions on how to setup it?

EDIT: it seems that trying a few times solved the issue. Now I'm trying to activate the mod

EDIT: it worked! Thanks for your time and keep up the good work on youtube :)
Title: Re: OpenXcom for Android - new official thread
Post by: Absle on October 22, 2018, 06:20:08 pm
I've been playing on an older version of the OXCE Android port for a while and it occurred to me that it's probably about time to upgrade. I was just wondering if right clicking or control clicking had been added in any form yet? As much as I love the port, the lack of those features has been my biggest gripe.
Title: Re: OpenXcom for Android - new official thread
Post by: MysticReverie on February 19, 2019, 07:23:25 am
I can't actually find a tutorial for this?
Does one exist?
My phone is not rooted or anything like that, so not sure it' seven possible anyway.
Thanks
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on February 19, 2019, 10:28:09 am
There is no tutorial.

You don't need a rooted phone, normal phone is just fine.
Title: Re: OpenXcom for Android - new official thread
Post by: suicicoo on February 24, 2019, 07:24:12 pm
I can't get x-piratez to work.
UFO / TFTD runs fine, but the piratez mod doesn't show up.
i've placed the piratez-files under mods and under mods/piratez ...
could somebody give me a hint?
Title: Re: OpenXcom for Android - new official thread
Post by: Stoddard on February 24, 2019, 07:42:35 pm
i've placed the piratez-files under mods and under mods/piratez ...
could somebody give me a hint?

Please elaborate. How did you put it there, what exactly did you put there, where exactly, etc.
Title: Re: OpenXcom for Android - new official thread
Post by: yergnoor on February 25, 2019, 05:16:01 am
suicicoo, Perhaps this little instruction will help. It was written by me for Android users, so that newbies could quickly figure out how to install these mods. However, since this is a Google translation from Russian, then something may be unclear.
Quote
I will write instructions on how to extract megamodes such as X-Piratez and X-Files, after downloading them. Unlike simpler mods, they come with their own exe-files, which are necessary when running a game on a computer. We have this role performs the installation apk-file OpenXcom Extended for Android.
Therefore, after downloading the archive with the mod should be unpacked. Find the user/mods/ subfolder in the resulting folder, extract the mod itself from it, and move it to the openxcom/mods/ folder, which is used by the Android version. Remaining from unpacking can be removed.
Next, the X-Piratez mod is selected in the same way as switching between UFO and TFTD.
Addition.
Just in case, I will clarify. For the X-Piratez mod, it is NOT the usual OpenXcom for Android, laid out in this topic, but OpenXcom Extended for Android that you can download https://openxcom.org/forum/index.php/topic,5258.msg78462.html#msg78462
Title: Re: OpenXcom for Android - new official thread
Post by: suicicoo on February 25, 2019, 11:18:09 am
Thank you,

i've installed oxce from the link you provided.
started once to create the folder structure.
let oxce copy the tftd & ufo files.
now i've copied the folder from my xpiratez installation user/mods/piratez to openxcom/mods, now looks like: openxcom/mods/piratez/*.*
do i have to point the oxce-folders to somewhere else?
they are all pointed to /openxcom/
and i can't choose xpiratez as a mod, only ufo & tftd

many thanks in advance for the help!
Title: Re: OpenXcom for Android - new official thread
Post by: yergnoor on February 25, 2019, 02:01:27 pm
do i have to point the oxce-folders to somewhere else?
they are all pointed to /openxcom/
This is the most correct option settings. All game data is located in the same openxcom folder, in the internal memory of Android, to which the application has access to both read and write files. You can change these settings, but you need to understand what you are doing - there is a risk of failure.
and i can't choose xpiratez as a mod, only ufo & tftd
It’s hard to understand what could have gone wrong. If everything was done according to the instructions (and it looks like it was), then the absence of X-Piratez in the list along with UFO and TFTD can only be explained by the fact that the game was not restarted after moving the piratez folder to openxcom/mods/. OXCE should re-check this folder for mods, and this only happens at startup.
But this is only an assumption, maybe there was some other reason.
Title: Re: OpenXcom for Android - new official thread
Post by: Stoddard on February 25, 2019, 02:55:52 pm
As the last resort, stop oxce, edit options.cfg  and set verboseLogging: true  , start oxce, then upload the resulting openxcom.log here.
Title: Re: OpenXcom for Android - new official thread
Post by: suicicoo on February 26, 2019, 12:02:34 pm
i'm one step further now, did a new install of oxce on my phone, got xpiratez recognised!
but when stsrting, it takes a while and brings me back to the folder selection screen.
verbose logging shows this error:
[ERROR]   Error linking 'STR_ENVIRO_COLD' in startingConditions: Armor STR_STR_SCOUT_OUTFIT_UC not found
i understood all the other messages in the log, but not this one... :/
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on February 26, 2019, 12:07:01 pm
It's a bug in piratez.

You can either search for STR_STR_SCOUT_OUTFIT_UC in the ruleset files and replace with STR_SCOUT_OUTFIT_UC... or you can update to a newer version of piratez.
Title: Re: OpenXcom for Android - new official thread
Post by: yergnoor on February 26, 2019, 12:53:24 pm
suicicoo, I am well aware of this error, Meridian correctly said how to cope with it.
I'd add that Dioxine at https://openxcom.mod.io/x-piratez hasn't updated its mod for a long time. And the last version of J10 laid out there is with this error. The error was corrected almost immediately, but this fix did not hit the modportal. Therefore, you need to download X-Piratez from where they are constantly updated by the author - https://openxcom.org/forum/index.php/topic,3626.msg44450.html#msg44450
Now there is already version J12.
Title: Re: OpenXcom for Android - new official thread
Post by: suicicoo on March 05, 2019, 07:56:43 pm
thanks guys! it works! awesome!
But why does the pc-version work with this bug and the android-version doesn't?
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on March 05, 2019, 08:17:01 pm
thanks guys! it works! awesome!
But why does the pc-version work with this bug and the android-version doesn't?

PC version doesn't work either.
(assuming same OXCE version is used)
Title: Re: OpenXcom for Android - new official thread
Post by: suicicoo on March 05, 2019, 09:12:32 pm
ok, then maybe, i've got an old version of oxce on pc that works with it :D
thanks again :)
Title: Re: OpenXcom for Android - new official thread
Post by: W1rm on August 06, 2019, 01:03:06 pm
Good day.
Need help, have problem with Xpiratez on android too, after installation (OXCE v5.6.1 for Android + XPiratez - J5 - 11 Jun)and trying open, they throw on first loading screen.
In log have this:
Quote
[06-08-2019_12-21-12]   [INFO]   - piratez vv. J15 OXCE 5.4.1x 1-May-2019
[06-08-2019_12-21-13]   [INFO]   Loading rulesets...
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_ACADEMY_CRUISE. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_SPACE_FREIGHTER. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_HEAT. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_COLD. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_UNDERGROUND. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_SEA_SURFACE. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_ENEMY_UNBREAKABLE. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_ACID_RAIN. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_MAGMA. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_AIRCAR_RACE. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_PLAINCLOTHES_INFILTRATION. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_NOHELMET_INFILTRATION_MAX6. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_NOHELMET. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_SHADOWLANDS_1. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_SEA. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_SPACE. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_CYDONIA. Please review the ruleset.
[06-08-2019_12-21-15]   [ERROR]   There are invalid/obsolete attributes in starting condition STR_ENVIRO_COLDSPACE. Please review the ruleset.
[06-08-2019_12-21-16]   [WARN]   disabling mod with invalid ruleset: piratez
[06-08-2019_12-21-16]   [ERROR]   failed to load 'X-Piratez'; mod disabled
Error for 'AUX_CYBERDISC_WEAPON': offset '-2' has incorrect value in set 'BIGOBS.PCK'
[06-08-2019_12-21-16]   [INFO]   Found candidate method ID: 0x728a4f8b98
[06-08-2019_12-21-16]   [INFO]   Returned to native code!
Title: Re: OpenXcom for Android - new official thread
Post by: Meridian on August 06, 2019, 01:48:50 pm
Good day.
Need help, have problem with Xpiratez on android too, after installation (OXCE v5.6.1 for Android + XPiratez - J5 - 11 Jun)and trying open, they throw on first loading screen.
In log have this:

PirateZ is not yet compatible with newest OXCE.

You can download a fixed version here: https://openxcom.org/forum/index.php/topic,3626.msg114915.html#msg114915
Title: Re: OpenXcom for Android - new official thread
Post by: W1rm on August 06, 2019, 06:50:39 pm
PirateZ is not yet compatible with newest OXCE.

You can download a fixed version here: https://openxcom.org/forum/index.php/topic,3626.msg114915.html#msg114915
Thank you very much kind Sir,
It very helpful and now work fine.  ;D