Author Topic: Android Version  (Read 23389 times)

Offline a1studmuffin

  • Zombie Food
  • *
  • Posts: 38
    • View Profile
Re: Android Version
« Reply #45 on: February 07, 2017, 09:53:23 AM »
For anyone experiencing the garbled text bug, I've found a fix (or at least a workaround). Turns out it's an SDL hardware acceleration bug that only presents on certain Android devices. I'll roll out the workaround in the next update, but if you're desperate to start playing now, you can either delete the gfx folder (/sdcard/Android/data/com.MichaelDavies.CataclysmDDA/files/gfx) and just play in ascii, or you can enable software rendering and it'll work. To turn on software rendering outside of the game, create a file options.json here:

/sdcard/Android/data/com.MichaelDavies.CataclysmDDA/files/config.options.json

And put this inside it:
[
    {
        "info" : "Use software renderer instead of graphics card acceleration.",
        "default" : "Default: False",
        "name" : "SOFTWARE_RENDERING",
        "value" : "true"
    }
]


One caveat I've discovered with the software renderer is that you can't rotate the screen once the game starts or the screen goes blank. This appears to be another SDL Android-specific bug (awesome!) but I'm going to see if I can at least fix that for the next release, or failing that simply lock the screen to landscape so it's not an issue. I think 99% of people would be playing in landscape anyway given the UI layout of the game.

Offline RipRoarinBoogerPenis

  • NPC
  • **
  • Posts: 236
    • View Profile
Re: Android Version
« Reply #46 on: February 07, 2017, 06:04:40 PM »
Is screen lock on? :) It should work in portrait or landscape just by rotating the screen, it has worked on every Android device I've tested on so far.

Yeah you right. That did it thanks mang!

In testing I've noticed driving is pretty choppy (understandably so) and the animated hit notifications seem to be way off to the side of the screen so only about half shows up.

Offline Aqma

  • Zombie Food
  • *
  • Posts: 20
    • View Profile
Re: Android Version
« Reply #47 on: February 08, 2017, 08:44:35 AM »
I as well play in landscape mode, so would prefer if we have a way to have the game locked in landscape, right now I need to keep auto rotate on and then lock it (I seem to have a difficult relationship with auto rotate, it always keeps shifting my screen when I don't want it to). I wonder if people playing on tablets prefer portrait and to keep the keyboard below?

Probably safest route could be to add an option in the android settings like Screen Orientation: Portrait / Landscape / Auto Rotate. This way you have the flexibility to do any of the options.

Offline a1studmuffin

  • Zombie Food
  • *
  • Posts: 38
    • View Profile
Re: Android Version
« Reply #48 on: February 08, 2017, 04:00:54 PM »
An unexpected bump in the road - Google have just suspended the Google Play app on grounds of "impersonation". I've filed an appeal and pointed them to this thread (and the existing unofficial iOS release) as evidence of approval from the game creators. Hopefully gets resolved in the next day or so.

Offline Kevin Granade

  • Administrator
  • Survivor
  • *****
  • Posts: 5588
  • I code dead people.
    • View Profile
Re: Android Version
« Reply #49 on: February 08, 2017, 05:47:09 PM »
Wtf? Let me know if there's anything I can contribute to the process.
Its like a fun family cookout, except your family is burning in flames while trying to eat you. -secretfire
I'm more excited than a survivor on meth and toast'ems. -Nighthawk
The the giant wasp is slammed through the zombie brute!

Offline jipopotamus

  • Zombie Food
  • *
  • Posts: 4
    • View Profile
Re: Android Version
« Reply #50 on: February 08, 2017, 06:14:39 PM »
Everything seems to be given a red hue , washing the whole screen. Means red text is hard to read. tried to take a screenshot but each time I do the picture makes it look normal.
Also had the weird text bug but your fix worked.

Offline frankokoro

  • Zombie Food
  • *
  • Posts: 4
  • Bladed weapons maniac
    • View Profile
Re: Android Version
« Reply #51 on: February 08, 2017, 07:53:52 PM »
Hey, I applied the software rendering fix as you said so, but now when I open the game it closes instantly. Any idea why? Thanks in advance, you seem to be trying very hard for this to work :)
"...For any normal person this would be a trivial task. But you, you are an adventurer. Everything is a federal fucking issue for you."

Offline a1studmuffin

  • Zombie Food
  • *
  • Posts: 38
    • View Profile
Re: Android Version
« Reply #52 on: February 09, 2017, 06:06:47 AM »
Kevin: Thanks, I'm hoping the existence of this thread and my correspondence with you guys (the developers) counts as your written approval of my rights to release the game on Android, but if there's further issues I'll ping you and we can straighten it out with them over email. I'm sure it'll be resolved shortly though, it seems fairly straight-forward so I assume it was just an overcautious suspension on their part.

jipopotamus: Ahh interesting, I'm guessing it looks like this kind of thing?
https://forums.libsdl.org/viewtopic.php?t=11446&sid=512cc46a79cacaf0f60abb4a91ec8109
If so I'll submit a known fix for it in the next build, it's apparently an SDL2 bug on Android with certain devices. Don't hesitate to ping me if it's still happening after that and we can look into it further.

frankokoro: Hmm ok I guess that options.json hack didn't work, sorry! :) You can try copying an options.json file with software rendering enabled from a desktop build perhaps?

Offline jipopotamus

  • Zombie Food
  • *
  • Posts: 4
    • View Profile
Re: Android Version
« Reply #53 on: February 09, 2017, 04:54:59 PM »
Yes, it seems like that is the same kind of problem! I'm glad there is a known fix because its so good to have an android port!
Thanks for all the hard work!!

Offline s20dan

  • Zombie Food
  • *
  • Posts: 4
    • View Profile
Re: Android Version
« Reply #54 on: February 10, 2017, 06:39:00 PM »
A1studmuffin, This android version is fantastic!

 I'm playng it on Samsung Tab S2 and so far I haven't experienced any serious problems. I did experience the garbled text issue that was mentioned (although this issue sounds different as it occured over time) when viewing some stats of a car, but I noticed some time later that after restarting the app the text was readable again.
 If I see that again I'll make a note of exactly what was garbled.

 Are NPCs available on this release? I activated them in the options(Static and random) but didn't see any yet and have travelled to a couple of cities

Offline Aqma

  • Zombie Food
  • *
  • Posts: 20
    • View Profile
Re: Android Version
« Reply #55 on: February 10, 2017, 06:53:55 PM »
I can confirm in getting NPCs both random (random one appearing in an older save from PC that i now continued in the android version) and static with a new start.

It's actually easy to test, start a world in which you enable them, start as evacuee and I always find one directly next to me in the evac.

Offline a1studmuffin

  • Zombie Food
  • *
  • Posts: 38
    • View Profile
Re: Android Version
« Reply #56 on: February 11, 2017, 05:52:33 AM »
Yeah NPCs should be working. The only changes I've made to the game are the user interface and code additions necessary to get it to run on Android. It's possible I've missed something though that's quietly failing, so definitely keep reporting stuff like this even if you're not 100% sure, it's usually quick to check.

Good news RE: the Google Play suspension too, they got back to me and have revived the app. As a bonus they also looked at the content rating and decided the 18+ rating was probably too harsh for the game, so they've asked me to resubmit again for a lower rating. Hopefully this means it will be available in Australia, fingers crossed.

Offline hatcher

  • Zombie Food
  • *
  • Posts: 27
    • View Profile
Re: Android Version
« Reply #57 on: February 12, 2017, 07:05:41 AM »
.

 Are NPCs available on this release? I activated them in the options(Static and random) but didn't see any yet and have travelled to a couple of cities

You should check options in-game. There's a bug, when spawn modificators droping to the default value after game starts. I've played with 1 in item and zombie spawn modificators very long, until i noticed that crap.
Fixing is pretty easy: go to the save folder, change the values and put a only-reading flag after.

Offline Elirector

  • Zombie Food
  • *
  • Posts: 3
    • View Profile
Re: Android Version
« Reply #58 on: February 12, 2017, 05:10:23 PM »
Can't understand, what exactly should I do to remove keyboard shortcut? Some sort of touch gesture, I suppose

Offline StopSignal

  • Survivor
  • ***
  • Posts: 3431
  • Never stop drawing!
    • View Profile
    • You can see my drawings here!
Re: Android Version
« Reply #59 on: February 12, 2017, 06:27:00 PM »
The port is amazing! I just wanted to congratulate you. Man, this is great. If i could i would donate to you, but currently can't! Anyways, have a drink and imagine i paid for it. You deserve it!