Angband Forums

Angband Forums (http://angband.oook.cz/forum/index.php)
-   Variants (http://angband.oook.cz/forum/forumdisplay.php?f=4)
-   -   [Android] New Variants on my phone? why not... (http://angband.oook.cz/forum/showthread.php?t=7340)

Doc_cheilvenerdi.org May 17, 2015 23:15

[Android] New Variants on my phone? why not...
 
...how can I save Middle Earth without the latest angband variant on my Android Phone?

...I really don't know...

...so I just tried to build the angdroid.org application with few others inside:


...it was just a "blind shot" but...

...Hey, WOW... it works :)



Is That All?

...of course not...

I'm not a developer so I don't host google play, github or similar repository...

...and I'm posting here just because I feel this is, actually, the best place to share it and its patched source code ready to build:



Further development ongoin?

...by me? who knows...


Credits:
  • Angdroid.org developer,
  • variants developer,
  • this forum,
  • everybody else involved.

What's working?
  • trying to kill Morgoth...

What's not working?
  • some utf-8 accented chars...


P.S.
  • I built The app with "debug" option, so it's signed with the Google Test Key from AOSP (previous one should be uninstalled first...);
  • I actually didn't create new code for the app or the variants;
  • I simply patched the variants init_path routines to match SD-Card save folder;
  • ...and bunch of code, occasionally on compiler errors...
  • Nothing else.

Zireael May 18, 2015 10:23

What "previous" should be uninstalled first?

BTW, great work!

Doc_cheilvenerdi.org May 18, 2015 11:05

Previous install signature mismatch...
 
Yes, you are right, i explain better the "stock app update issue":

If you have already installed the original Angband Variants from the Play Store (built with release option and signed by its original developer), when you'll try to update it with this one using "adb shell" or any file manager of your choice, you'll get an error like this:
Code:

Failure [INSTALL_FAILED_SIGNATURE_MATCH]
Now, not being a developer, I don't have a private signature for apps so I need to build it with debug option, where the use of AOSP test key is permitted.
Let's say that it's a sort of prerelease fully working, used for testing but not suitable for upgrade a different released app... so you need to uninstall any "angband variants" app from your phone before installing this one...

Doc_cheilvenerdi.org July 4, 2015 11:36

Sil 1.2.1 - You're welcome :)
 
Quote:

Originally Posted by Angrist (Post 102896)
Are there any more recent versions of variants ( especcially Sil ) for android, than those that are in google play?

...I just tried to add Sil 1.2.1


...and... ...Hey, WOW... it works too :)

By the way, it was easier than other variants because I simply applied the 1.1.1 patches from angdroid.org to 1.2.1 source and everything was fine...
Code:

doc@saucy:~/builds/Sil$ patch -p1 < sil.patch
patching file src/birth.c
Hunk #1 succeeded at 860 (offset 4 lines).
patching file src/config.h
Hunk #1 succeeded at 276 (offset -5 lines).
patching file src/dungeon.c
Hunk #1 succeeded at 2946 (offset 146 lines).
patching file src/files.c
Hunk #1 succeeded at 3064 (offset 7 lines).
Hunk #2 succeeded at 3086 (offset 7 lines).
Hunk #3 succeeded at 3109 (offset 7 lines).
Hunk #4 succeeded at 4647 (offset -67 lines).
patching file src/h-config.h
patching file src/init2.c
Hunk #2 succeeded at 1029 (offset 1 line).
Hunk #3 succeeded at 1164 (offset -5 lines).
Hunk #4 succeeded at 1803 (offset -11 lines).
Hunk #5 succeeded at 1824 (offset -11 lines).
Hunk #6 succeeded at 1845 (offset -11 lines).
patching file src/main.c
patching file src/util.c
Hunk #2 succeeded at 3699 (offset -13 lines).

(patches applied to slightly different code, but still consistent!)


All times are GMT +1. The time now is 10:38.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.