Angband on Android

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • retrobits
    Scout
    • Dec 2008
    • 29

    #31
    Originally posted by tprice
    The upgrade didn't go smoothly. I got an unable to find \lib\ type error when starting Angband since the new version uses \libangband320\ instead. Ended up having to do an uninstall and then reinstalled the new code. It worked fine after that and i was able to copy over my backed up save file and keep on playing fine.
    Thanks for the report. I forgot that the beta versions all have the same internal version number so the install would not execute if you had a prior beta. I'll try to clean that up for the future.

    Glad the key mapping is working for you.

    Comment

    • tprice
      Adept
      • Jun 2008
      • 105

      #32
      Feature request for Angdroid.

      In Vanilla Angband for Windows you get to choose which save file to load. Can you implement that functionality?

      Its useful for swapping to an alt character if you want a magic using break from you main warrior without having to use a pc to manually copy and rename save files.

      Thomas Price
      Aka the Bookworm

      Comment

      • retrobits
        Scout
        • Dec 2008
        • 29

        #33
        Originally posted by tprice
        Feature request for Angdroid.

        In Vanilla Angband for Windows you get to choose which save file to load. Can you implement that functionality?
        Thomas,

        That feature is already implemented. In preferences tap "Game Profile", tap menu, tap "New Profile". Type a descriptive name, tap OK. Tap the descriptive name you just created to make the profile active. Now tap "Selected variant" to choose the game to run with the profile. Note that the Game section in Preferences sticks to the selected profile. To quickly switch profiles in the future, just tap "Game Profile".
        Last edited by retrobits; February 28, 2011, 21:04.

        Comment

        • geoff_tewierik
          Adept
          • Mar 2009
          • 140

          #34
          Congrats on what you have put together so far. I tried the 3.08 version on my phone but had no joy with it due to a lack of keyboard, but the latest release works fine.

          I am playing the 3.1.2v2.5 version on a Desire HD and find the lack of Esc key on the main keyboard mildly annoying. Is it possible to somehow massage the keyboard to include the Esc key? Makes dealing with shops and lists a lot easier.

          Cheers,

          GT

          Comment

          • retrobits
            Scout
            • Dec 2008
            • 29

            #35
            Thanks GT.

            First off, esc by default is mapped to your hardware back key, but maybe you know that already.

            That being said, I could change * to esc, possibly switch back to * on shift. Maybe an extra top row of keys could be added... but that would shrink the viewable area.

            Comment

            • geoff_tewierik
              Adept
              • Mar 2009
              • 140

              #36
              Thanks for the info, and no I hadn't worked out the hardware back key did the job.

              Makes changes to the keyboard irrelevant now

              Thanks.

              Back to diving.

              Comment

              • retrobits
                Scout
                • Dec 2008
                • 29

                #37
                Android Nightly

                Angband development is very active at the moment. We thought it would be good to produce a nightly Android build based on the current Angband source in the git repo. Be aware that this is untested code and might be broken or crash or eat your save file, etc. It is a completely new Android app and will not affect files in our other releases.

                If you find bugs, I would encourage you to open discussions in the forums here and even more importantly please open tickets at http://trac.rephial.org/. For Android specific issues, please report bugs at angdroid.org in the bug forum. I've patched the version number in the game with the timestamp when we retrieved the Angband source from git, so that is a way to track bugs back to the source. Its probably a good idea to reproduce the bug in one of the official nightly builds from http://rephial.org/nightlies/ before opening a ticket at rephial. I figure the more bugs we find and the more feedback the Angband community provide to the devs, the better the outcome will be.

                The nightly is available here:

                Comment

                • d_m
                  Angband Devteam member
                  • Aug 2008
                  • 1517

                  #38
                  Originally posted by retrobits
                  Angband development is very active at the moment. We thought it would be good to produce a nightly Android build based on the current Angband source in the git repo. Be aware that this is untested code and might be broken or crash or eat your save file, etc. It is a completely new Android app and will not affect files in our other releases.
                  Are there patches to the core game that you all have that you'd want to pull into the official repo?
                  linux->xterm->screen->pmacs

                  Comment

                  • retrobits
                    Scout
                    • Dec 2008
                    • 29

                    #39
                    Originally posted by d_m
                    Are there patches to the core game that you all have that you'd want to pull into the official repo?
                    There is only one patch at the moment that is required for Android. I use the Esc followed by Ctrl-X command as a general purpose signal for the native code to exit. This works except in death.c. But I don't think my hacked code below should be included in git. It would be best if the app just exited on Ctrl-X immediately as it does in the birth screens.

                    diff -Nru --strip-trailing-cr angband-3.2.0/src/death.c angband-3.2.0-android/src/death.c
                    --- angband-3.2.0/src/death.c 2010-12-24 05:13:59.000000000 -0800
                    +++ angband-3.2.0-android/src/death.c 2010-12-24 11:05:09.343486000 -0800
                    @@ -437,5 +437,11 @@
                    do
                    {
                    menu_select(death_menu, 0);
                    - } while (!get_check("Do you want to quit? "));
                    +
                    + // hack to allow KTRL('X') to exit the game here
                    + char opts[4] = {'y', 'n', KTRL('X'), '\0'};
                    + char gckey = get_char("Do you want to quit?", &opts[0], 2, 'n');
                    + if (gckey == KTRL('X') || gckey == 'y' || gckey == 'Y') break;
                    +
                    + } while (TRUE);
                    }

                    Comment

                    • Nick
                      Vanilla maintainer
                      • Apr 2007
                      • 9637

                      #40
                      Originally posted by retrobits
                      There is only one patch at the moment that is required for Android. I use the Esc followed by Ctrl-X command as a general purpose signal for the native code to exit. This works except in death.c. But I don't think my hacked code below should be included in git. It would be best if the app just exited on Ctrl-X immediately as it does in the birth screens.
                      That sounds sensible.
                      One for the Dark Lord on his dark throne
                      In the Land of Mordor where the Shadows lie.

                      Comment

                      • d_m
                        Angband Devteam member
                        • Aug 2008
                        • 1517

                        #41
                        Originally posted by retrobits
                        It would be best if the app just exited on Ctrl-X immediately as it does in the birth screens.
                        This is now in staging, and should be pushed to master (and the nightlies) soon.

                        Definitely let me know if there are other patches you all need.
                        linux->xterm->screen->pmacs

                        Comment

                        • retrobits
                          Scout
                          • Dec 2008
                          • 29

                          #42
                          Originally posted by d_m
                          Definitely let me know if there are other patches you all need.
                          Thanks d_m, just tested the nightly and your fix worked great.

                          I forgot about one other small patch I do for Android to skip the SET_UID stuff. Rather than continue this pattern:

                          Code:
                          #if !defined(MACH_O_CARBON) && !defined(WINDOWS) && \
                          		!defined(GAMEBOY) && !defined(NDS) && !defined(ANDROID)
                            # define SET_UID
                            ...
                          ,I wonder if there should just be a generic define called something like NO_SET_UID that could be set in a makefile.

                          Code:
                          #if !defined(NO_SET_UID)
                            # define SET_UID
                            ...
                          Its a double negative, but its cleaner I think...

                          Comment

                          • geoff_tewierik
                            Adept
                            • Mar 2009
                            • 140

                            #43
                            What's the chance the latest nightlies could be added for Android?

                            Magnate is about to release another dealing with the, I feel, major issue of disconnected rooms.

                            And if it could be done as something other than an .apk, that'd be awesome.

                            Just lost my level 27 warrior today, got punched by a Master Wight too many times. I got too tap happy

                            I'd attach the dump but haven't worked out how to get it off the phone and onto here without using a PC.

                            Comment

                            • Magnate
                              Angband Devteam member
                              • May 2007
                              • 5110

                              #44
                              Originally posted by geoff_tewierik
                              What's the chance the latest nightlies could be added for Android?

                              Magnate is about to release another dealing with the, I feel, major issue of disconnected rooms.

                              And if it could be done as something other than an .apk, that'd be awesome.

                              Just lost my level 27 warrior today, got punched by a Master Wight too many times. I got too tap happy

                              I'd attach the dump but haven't worked out how to get it off the phone and onto here without using a PC.
                              We don't have an Android expert on the devteam. IMO it would be really good to integrate Android support into the official repo, with main-droid.c and whatever else is necessary. Does anyone familiar with the android port have any idea how much work this would be? Is it worth aiming for?
                              "Been away so long I hardly knew the place, gee it's good to be back home" - The Beatles

                              Comment

                              • retrobits
                                Scout
                                • Dec 2008
                                • 29

                                #45
                                Originally posted by geoff_tewierik
                                What's the chance the latest nightlies could be added for Android?

                                Magnate is about to release another dealing with the, I feel, major issue of disconnected rooms.

                                And if it could be done as something other than an .apk, that'd be awesome.

                                Just lost my level 27 warrior today, got punched by a Master Wight too many times. I got too tap happy

                                I'd attach the dump but haven't worked out how to get it off the phone and onto here without using a PC.
                                Hi Geoff,

                                We already have a nightly build set up based on the angband git, details at angdroid.org. Using the Android browser, just tap the link to the nightly apk. When the download is complete, just tap it to pop up the installer.

                                Not sure what you mean about not wanting an apk? Android only installs apk. Thats like asking for a ride in a car, but not an automobile. Maybe you mean that you want the nightly apk hosted on the Market? Unfortunately I don't know an automated way to make that happen.
                                Last edited by retrobits; April 14, 2011, 05:43.

                                Comment

                                Working...
                                😀
                                😂
                                🥰
                                😘
                                🤢
                                😎
                                😞
                                😡
                                👍
                                👎