Wesnoth 1.14 on Android

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
alep
Android Port Maintainer
Posts: 160
Joined: June 24th, 2013, 6:22 am

Re: Wesnoth 1.14 on Android

Post by alep »

DopeKiwiWarrior wrote: June 14th, 2018, 7:10 pm There is no debug to be sent - the package downloader/intro screen doesn't show up. I just click the icon and it does nothing. I'd have asked how to find a debug message if I crashed after downloading all packages but unfortunately that isn't the case.
Ok, got it. If you happen to know how to capture android logcat, that will be helpful.
If not, still don't lose hope ;)
User avatar
DopeKiwiWarrior
Posts: 30
Joined: January 27th, 2013, 4:04 pm
Location: Inside your mom, she ate me, send help before I dissolve.

Re: Wesnoth 1.14 on Android

Post by DopeKiwiWarrior »

alep wrote: June 15th, 2018, 6:33 am
DopeKiwiWarrior wrote: June 14th, 2018, 7:10 pm There is no debug to be sent - the package downloader/intro screen doesn't show up. I just click the icon and it does nothing. I'd have asked how to find a debug message if I crashed after downloading all packages but unfortunately that isn't the case.
Ok, got it. If you happen to know how to capture android logcat, that will be helpful.
If not, still don't lose hope ;)
This is what I managed to get through the logcat:
Logcat

Code: Select all

E/Wesnoth (13994): libSDL: error loading lib wesnoth-1.14.1: java.lang.UnsatisfiedLinkError: dlopen failed: library "libcrypto.so.1.0.0" not found
E/Wesnoth (13994): java.lang.UnsatisfiedLinkError: dlopen failed: library "libcrypto.so.1.0.0" not found
E/Wesnoth (13994):      at java.lang.Runtime.load(Runtime.java:331)
E/Wesnoth (13994):      at java.lang.System.load(System.java:981)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.loadLib(MainActivity.java:161)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.loadLibraries(MainActivity.java:208)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.onCreate(MainActivity.java:117)
E/Wesnoth (13994):      at android.app.Activity.performCreate(Activity.java:6098)
E/Wesnoth (13994):      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/Wesnoth (13994):      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2314)
E/Wesnoth (13994):      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2423)
E/Wesnoth (13994):      at android.app.ActivityThread.access$1000(ActivityThread.java:154)
E/Wesnoth (13994):      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1326)
E/Wesnoth (13994):      at android.os.Handler.dispatchMessage(Handler.java:102)
E/Wesnoth (13994):      at android.os.Looper.loop(Looper.java:135)
E/Wesnoth (13994):      at android.app.ActivityThread.main(ActivityThread.java:5315)
E/Wesnoth (13994):      at java.lang.reflect.Method.invoke(Native Method)
E/Wesnoth (13994):      at java.lang.reflect.Method.invoke(Method.java:372)
E/Wesnoth (13994):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
E/Wesnoth (13994):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
E/Wesnoth (13994): libSDL: error loading lib wesnoth-1.14.1: java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/data/it.alessandropira.wesnoth114/files/libwesnoth-1.14.1.so" not found
E/Wesnoth (13994): java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/data/it.alessandropira.wesnoth114/files/libwesnoth-1.14.1.so" not found
E/Wesnoth (13994):      at java.lang.Runtime.load(Runtime.java:331)
E/Wesnoth (13994):      at java.lang.System.load(System.java:981)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.loadLib(MainActivity.java:170)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.loadLibraries(MainActivity.java:208)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.onCreate(MainActivity.java:117)
E/Wesnoth (13994):      at android.app.Activity.performCreate(Activity.java:6098)
E/Wesnoth (13994):      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/Wesnoth (13994):      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2314)
E/Wesnoth (13994):      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2423)
E/Wesnoth (13994):      at android.app.ActivityThread.access$1000(ActivityThread.java:154)
E/Wesnoth (13994):      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1326)
E/Wesnoth (13994):      at android.os.Handler.dispatchMessage(Handler.java:102)
E/Wesnoth (13994):      at android.os.Looper.loop(Looper.java:135)
E/Wesnoth (13994):      at android.app.ActivityThread.main(ActivityThread.java:5315)
E/Wesnoth (13994):      at java.lang.reflect.Method.invoke(Native Method)
E/Wesnoth (13994):      at java.lang.reflect.Method.invoke(Method.java:372)
E/Wesnoth (13994):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
E/Wesnoth (13994):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
I hope that helps.
Creator of Moonday Era, go check it out! (And critique the hell out of it, because it needs it.)
RolfDhew
Posts: 55
Joined: March 4th, 2018, 11:41 am

Re: Wesnoth 1.14 on Android

Post by RolfDhew »

Hi
Update your android to version 6.0.1, I did this and now the app works for me, I had the same problem as you
RolfDhew
Posts: 55
Joined: March 4th, 2018, 11:41 am

Re: Wesnoth 1.14 on Android

Post by RolfDhew »

DopeKiwiWarrior wrote: June 15th, 2018, 2:50 pm
alep wrote: June 15th, 2018, 6:33 am
DopeKiwiWarrior wrote: June 14th, 2018, 7:10 pm There is no debug to be sent - the package downloader/intro screen doesn't show up. I just click the icon and it does nothing. I'd have asked how to find a debug message if I crashed after downloading all packages but unfortunately that isn't the case.
Ok, got it. If you happen to know how to capture android logcat, that will be helpful.
If not, still don't lose hope ;)
This is what I managed to get through the logcat:
Logcat

Code: Select all

E/Wesnoth (13994): libSDL: error loading lib wesnoth-1.14.1: java.lang.UnsatisfiedLinkError: dlopen failed: library "libcrypto.so.1.0.0" not found
E/Wesnoth (13994): java.lang.UnsatisfiedLinkError: dlopen failed: library "libcrypto.so.1.0.0" not found
E/Wesnoth (13994):      at java.lang.Runtime.load(Runtime.java:331)
E/Wesnoth (13994):      at java.lang.System.load(System.java:981)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.loadLib(MainActivity.java:161)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.loadLibraries(MainActivity.java:208)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.onCreate(MainActivity.java:117)
E/Wesnoth (13994):      at android.app.Activity.performCreate(Activity.java:6098)
E/Wesnoth (13994):      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/Wesnoth (13994):      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2314)
E/Wesnoth (13994):      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2423)
E/Wesnoth (13994):      at android.app.ActivityThread.access$1000(ActivityThread.java:154)
E/Wesnoth (13994):      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1326)
E/Wesnoth (13994):      at android.os.Handler.dispatchMessage(Handler.java:102)
E/Wesnoth (13994):      at android.os.Looper.loop(Looper.java:135)
E/Wesnoth (13994):      at android.app.ActivityThread.main(ActivityThread.java:5315)
E/Wesnoth (13994):      at java.lang.reflect.Method.invoke(Native Method)
E/Wesnoth (13994):      at java.lang.reflect.Method.invoke(Method.java:372)
E/Wesnoth (13994):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
E/Wesnoth (13994):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
E/Wesnoth (13994): libSDL: error loading lib wesnoth-1.14.1: java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/data/it.alessandropira.wesnoth114/files/libwesnoth-1.14.1.so" not found
E/Wesnoth (13994): java.lang.UnsatisfiedLinkError: dlopen failed: library "/data/data/it.alessandropira.wesnoth114/files/libwesnoth-1.14.1.so" not found
E/Wesnoth (13994):      at java.lang.Runtime.load(Runtime.java:331)
E/Wesnoth (13994):      at java.lang.System.load(System.java:981)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.loadLib(MainActivity.java:170)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.loadLibraries(MainActivity.java:208)
E/Wesnoth (13994):      at it.ap.wesnoth.MainActivity.onCreate(MainActivity.java:117)
E/Wesnoth (13994):      at android.app.Activity.performCreate(Activity.java:6098)
E/Wesnoth (13994):      at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
E/Wesnoth (13994):      at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2314)
E/Wesnoth (13994):      at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2423)
E/Wesnoth (13994):      at android.app.ActivityThread.access$1000(ActivityThread.java:154)
E/Wesnoth (13994):      at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1326)
E/Wesnoth (13994):      at android.os.Handler.dispatchMessage(Handler.java:102)
E/Wesnoth (13994):      at android.os.Looper.loop(Looper.java:135)
E/Wesnoth (13994):      at android.app.ActivityThread.main(ActivityThread.java:5315)
E/Wesnoth (13994):      at java.lang.reflect.Method.invoke(Native Method)
E/Wesnoth (13994):      at java.lang.reflect.Method.invoke(Method.java:372)
E/Wesnoth (13994):      at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912)
E/Wesnoth (13994):      at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:707)
I hope that helps.
Update your android to version 6.0.1, I did this and now the app works for me, I had the same problem as you
User avatar
DopeKiwiWarrior
Posts: 30
Joined: January 27th, 2013, 4:04 pm
Location: Inside your mom, she ate me, send help before I dissolve.

Re: Wesnoth 1.14 on Android

Post by DopeKiwiWarrior »

RolfDhew wrote: June 15th, 2018, 6:27 pm Update your android to version 6.0.1, I did this and now the app works for me, I had the same problem as you
Quite hard to do. The official MiUI for my model will probably never update to A6 and I don't really want to go through a risky flash of a custom ROM as everything else currently works right and I am used to it.
Creator of Moonday Era, go check it out! (And critique the hell out of it, because it needs it.)
alep
Android Port Maintainer
Posts: 160
Joined: June 24th, 2013, 6:22 am

Re: Wesnoth 1.14 on Android

Post by alep »

DopeKiwiWarrior wrote: June 15th, 2018, 2:50 pm I hope that helps.
Yes, really helpful! Thank you very much.
Don't expect a fix right along with 1.14.3 upgrade, but hopefully it will be ready soon.
RolfDhew
Posts: 55
Joined: March 4th, 2018, 11:41 am

Re: Wesnoth 1.14 on Android

Post by RolfDhew »

alep wrote: June 15th, 2018, 9:08 pm
DopeKiwiWarrior wrote: June 15th, 2018, 2:50 pm I hope that helps.
Yes, really helpful! Thank you very much.
Don't expect a fix right along with 1.14.3 upgrade, but hopefully it will be ready soon.
Hi Alep
I noticed that on this version of the app, one cannot send messages in single player or multiplayer, you can type them, but when you press enter you can't send it, you can set labels however.
alep
Android Port Maintainer
Posts: 160
Joined: June 24th, 2013, 6:22 am

Re: Wesnoth 1.14 on Android

Post by alep »

RolfDhew wrote: June 16th, 2018, 12:46 pm I noticed that on this version of the app, one cannot send messages in single player or multiplayer, you can type them, but when you press enter you can't send it, you can set labels however.
Ok, thanks, I'll check that ASAP.
RolfDhew
Posts: 55
Joined: March 4th, 2018, 11:41 am

Re: Wesnoth 1.14 on Android

Post by RolfDhew »

alep wrote: June 19th, 2018, 6:23 am
RolfDhew wrote: June 16th, 2018, 12:46 pm I noticed that on this version of the app, one cannot send messages in single player or multiplayer, you can type them, but when you press enter you can't send it, you can set labels however.
Ok, thanks, I'll check that ASAP.
No problem, thank you!
User avatar
BTIsaac
Posts: 428
Joined: December 7th, 2017, 7:30 am

Re: Wesnoth 1.14 on Android

Post by BTIsaac »

Okay, so EVERY SINGLE TIME I start up the App, I get asked what packages to download. Every single option I don't check gets DELETED before the game stards. So for example, if I download everything, the game runs, then I quit, get back later, the download dialog box pops up again with only the first option checked. If I don't manually check the next two options then and there, a message briefly pops up saying "cleaning folders" and the game starts with no music and all campaigns are gone. Is this normal?

EDIT: Also, unable to find tutorial, apparently.
alep
Android Port Maintainer
Posts: 160
Joined: June 24th, 2013, 6:22 am

Re: Wesnoth 1.14 on Android

Post by alep »

BTIsaac wrote: June 20th, 2018, 9:46 am Okay, so EVERY SINGLE TIME I start up the App, I get asked what packages to download. Every single option I don't check gets DELETED before the game stards. So for example, if I download everything, the game runs, then I quit, get back later, the download dialog box pops up again with only the first option checked. If I don't manually check the next two options then and there, a message briefly pops up saying "cleaning folders" and the game starts with no music and all campaigns are gone. Is this normal?
Well, it's not normal that if you deselect something it gets deleted, but it's not normal to have the package selection popup at every run. Which app version are you running? On what kind of device?
Please try to uninstall and reinstall the app from scratch.
User avatar
BTIsaac
Posts: 428
Joined: December 7th, 2017, 7:30 am

Re: Wesnoth 1.14 on Android

Post by BTIsaac »

I'm using the version from the app store. Not sure what other version I'd be using.
I have a Galaxy Tab A, SM-T585, with Android 7.

Also, uninstalled, reinstalled, downloaded everything and it still works the same way.

EDIT: Okay, I'm sure I should've pointed this out earlier, but the page on the app store has a warning sign telling me the app may not be optimized for my device. I didn't pay much attention to it, because the older version has the same message, and that works just fine.

Also, the app's permission to access the storage seems to be disabled by default. I'm not sure if that actually is the case, or if it was disabled when I cleared the app data, but enabling it doesn't seem to change anything.
alep
Android Port Maintainer
Posts: 160
Joined: June 24th, 2013, 6:22 am

Re: Wesnoth 1.14 on Android

Post by alep »

BTIsaac wrote: June 20th, 2018, 12:23 pm ...or if it was disabled when I cleared the app data...
Just since you mentioned it, clearing the application data may cause the exact issue you are experiencing: on the next startup the game will ask you again which packages to download. Is it possible that you have some kind of tool installed that periodically cleans application folders on your device?
User avatar
BTIsaac
Posts: 428
Joined: December 7th, 2017, 7:30 am

Re: Wesnoth 1.14 on Android

Post by BTIsaac »

alep wrote: June 22nd, 2018, 2:26 pm
BTIsaac wrote: June 20th, 2018, 12:23 pm ...or if it was disabled when I cleared the app data...
Just since you mentioned it, clearing the application data may cause the exact issue you are experiencing: on the next startup the game will ask you again which packages to download. Is it possible that you have some kind of tool installed that periodically cleans application folders on your device?
Uhm... no. First off, as i mentioned, the app itself is what's cleaning the folders. It says so in the same progress bar where the download progress is shown. Second, it only deletes the packages when i start the app and don't check the boxes, and only the packages i don't check. If i check the packages that i already downloaded, the app starts without any problems. Also, i can browse the folders no problem.
alep
Android Port Maintainer
Posts: 160
Joined: June 24th, 2013, 6:22 am

Re: Wesnoth 1.14 on Android

Post by alep »

BTIsaac wrote: June 22nd, 2018, 10:33 pm Uhm... no. First off, as i mentioned, the app itself is what's cleaning the folders. It says so in the same progress bar where the download progress is shown. Second, it only deletes the packages when i start the app and don't check the boxes, and only the packages i don't check. If i check the packages that i already downloaded, the app starts without any problems. Also, i can browse the folders no problem.
I'm not speaking about wesnoth packages installation folder, but about app internal storage. That space is usually not accessible by the user unless the phone is rooted, but can be cleaned from phone settings.
The app stores there informations about installed packages and if that file can't be saved or gets lost it behaves exactly as you said.
Please send me a debug report as described here:

https://www.alessandropira.org/bfw_android/faq#dbg

To access setup options you'll need on startup you can tap on "show more options" in the data install location dialog.
Post Reply