Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Sil

Reply
 
Thread Tools Display Modes
Old June 17, 2018, 02:08   #1
Shaosil
Rookie
 
Join Date: Jun 2018
Posts: 12
Shaosil is on a distinguished road
Making Sil 1.3 for Android

Hi folks,

Just FYI, I'm not exactly "new" per se to roguelikes (I've spent some time in this, Nethack, FTL, etc), but I'm by no means good at them. For example, I haven't really got past the 5th depth of any dungeon roguelike that I know of

However, I do like access to them, namely on my android phone so I can pull it up and play anytime. As some of you may know, Sil 1.1.1 can be currently played on Android via the app "Angband Variants" and setting the plugin to Sil. But of course, it bugs me to play on a version other than the latest and greatest, so, being a software developer myself, I started looking into ways to get Sil 1.3 compiled.

The BAD news is that I've never even looked at Android development before, and right off the bat I can see the development process is much different than what I'm used to, and I know for sure I'm going to overlook something.

The GOOD news is that I already have a compiled and mostly working version of Sil 1.3 on my phone. There are some bugs, like savefiles don't seem to be loading properly, and other minor things I want to fix before I "release" it. I downloaded the source code for Angdroid from the Google code repository and just plugged Sil's latest source into it when I figured out how the build worked. If you're interested in the extra nerdy info, I'm using Visual Studio (I know I know, not the usual IDE) and an android Native Activity project since the source is in C, but I also need the Java files from the repository.

I have no idea how to release anything on Google Play, though I imagine it can't be too difficult, and I imagine there must be some type of licensing info I have to include. Obviously I would release it for free as well, according to the license.

I don't really have a point to this post other than bringing awareness to my little project, and welcoming any tips or suggestions given my situation. I usually never finish personal projects, but this is something I've been wanting to do for a long time, and since I'm this close already, I can't imagine that I will completely abandon it.

Thoughts? Does anyone other than me actually want this?

Edit: It's live, download it from the Play Store here!

Last edited by Shaosil; July 14, 2018 at 03:25.
Shaosil is offline   Reply With Quote
Old July 1, 2018, 13:04   #2
Squid
Rookie
 
Join Date: Jul 2018
Posts: 1
Squid is on a distinguished road
I'd love Sil on Android!!
Squid is offline   Reply With Quote
Old July 1, 2018, 21:09   #3
Shaosil
Rookie
 
Join Date: Jun 2018
Posts: 12
Shaosil is on a distinguished road
Status Update

I've made progress since my initial post. At first I thought Angband Variants had been removed from the play store, but it appears some people still see it, so perhaps my Android version was upgraded to a version past what it allowed? For now I'll keep going and plan on releasing it when it's stable enough.

Now for the progress update. Here is a list of the changes I've made from the other app:
  • Upgraded Sil to version 1.3
  • APP BUGFIX: Save games are no longer being corrupted! This was the highest thing to fix on my list. We can't be having saves be corrupted for a game like this. The other app was calling a save function any time the app lost focus, and didn't always detect whether the game was in progress. Sometimes, it would save during the main menu and overwrite the game data. I just improved the in progress logic.
  • APP BUGFIX: The quit button now functions from the main menu.
  • SIL BUGFIX: Playing a game after the tutorial no longer displays a blank message at the top.
  • SIL BUGFIX: Trying to save during the tutorial no longer displays a warning message with -more- cutting out the middle.
  • Added a tab key to the symbols keyboard.
  • Added an options key to the symbols keyboard.
  • The orientation preference now has four options: Sensor (System), Sensor (Forced), Portrait, and Landscape. Sensor (System) will rotate based on the current user rotate system preference, and System (Forced) will rotate based on the sensor, regardless of user preference. The latter was the only sensor setting previously, and it bugged me.
  • The keyboard no longer displays annoying little popup key animations between certain keypresses. I had to hack my way around this one because that animation code is part of Android's functionality for that class.
  • Raised the minimum and target APIs a bit (19 and 26 - KitKat and Oreo). As a result, I had to make sure the newer Android permission system worked and asked the user about permissions when needed.

Basically, it's probably good enough to go ahead and release on the Play store, and I can if the public demands it. However, I do have a Todo list, and I would like to get another 2-3 things done before committing.

Todo List:
  • Use the same font as the one on PC. Android is showing '#' for walls, which I think is ugly compared to the solid block that I see on Windows. This one is a little difficult to track down but I'm close.
  • Add a transparency setting for the keyboard, at least in landscape mode.
  • Fix the slain monsters list - currently doesn't open
  • Thinking about adding a single row sliding keyboard, similar to DCSS.
  • Add a way to open the manual from the app - could be embedded, or a link to the website...
  • Fill entire screen with game view so there is no wasted space in portrait mode.
  • Add way to reuse the exact stats from the last character upon a new play. Everything but the skills save currently, so it's probably not difficult.
  • Add a way to pan the view by dragging. This might be harder than it sounds, since Sil isn't structured to let the view be changed if the player isn't in a look-around mode already. I may not actually get to this.

Last edited by Shaosil; July 1, 2018 at 21:55.
Shaosil is offline   Reply With Quote
Old July 1, 2018, 21:19   #4
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,861
Donated: $40
Pete Mack is on a distinguished road
It's still there, from angdroid.org whoever that is.
Pete Mack is offline   Reply With Quote
Old July 1, 2018, 21:22   #5
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 4,861
Donated: $40
Pete Mack is on a distinguished road
Ooh, one more: fit screen correctly in portrait mode. (I am playing Angband, not Sil, but the waste of vertical space is my biggest peeve. )
Pete Mack is offline   Reply With Quote
Old July 1, 2018, 21:24   #6
Shaosil
Rookie
 
Join Date: Jun 2018
Posts: 12
Shaosil is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
It's still there, from angdroid.org whoever that is.
Oh really? Maybe they have a max SDK version set. I could have had an Android upgrade that went past it. Good to know though!
Shaosil is offline   Reply With Quote
Old July 1, 2018, 21:54   #7
Shaosil
Rookie
 
Join Date: Jun 2018
Posts: 12
Shaosil is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
Ooh, one more: fit screen correctly in portrait mode. (I am playing Angband, not Sil, but the waste of vertical space is my biggest peeve. )
I see what you mean. I'll add it to my list
Shaosil is offline   Reply With Quote
Old July 1, 2018, 22:11   #8
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,163
Donated: $60
Nick is on a distinguished road
If you could update Angband as a side-effect, that would be awesome
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Old July 1, 2018, 22:54   #9
Shaosil
Rookie
 
Join Date: Jun 2018
Posts: 12
Shaosil is on a distinguished road
Quote:
Originally Posted by Nick View Post
If you could update Angband as a side-effect, that would be awesome
Not sure what you mean exactly. The Angdroid app?
Shaosil is offline   Reply With Quote
Old July 2, 2018, 01:03   #10
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 53
Posts: 7,163
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by Shaosil View Post
Not sure what you mean exactly. The Angdroid app?
Yep. I'm appointing you the new maintainer of it
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm considering making a new Sil branch Quirk Sil 46 October 19, 2017 18:27
Sil and Angband variants available on Android half Sil 37 November 11, 2016 00:19
Sil 1.3 on android xorzac Sil 33 November 5, 2016 00:51
Making V play more like Sil Therem Harth Vanilla 81 October 1, 2012 14:36
Android Antoine Development 3 July 30, 2011 01:59


All times are GMT +1. The time now is 04:13.


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