SSH server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Gwarl
    Administrator
    • Jan 2017
    • 1025

    SSH server

    I've set up a server to ssh into with a few different variants to pick from:
    rogue@195.110.59.234:1111 (or -p 1111 for some systems)

    I'm not sure which forum to put this in! I'll try here.

    Currently savefiles and scorefiles are shared by everyone. The next thing I want to do is set up a login system for private savefiles. I want to keep scorefiles common to everyone though, and that will have to be done for each variant one by one.

    Other things I'd like to look into at some point are how to allow spectating games, and piping i/o through a browser. Or in-game morgue file uploads to the angband ladder.

    Angband itself fails to run - the server is debian based and the current debian package doesn't seem to play well in the console - version 3.3.2 is there, I was able to get 4.0.5 running in the console but with some display issues - currently refuses to run in my ssh client.

    But for now if you don't care about savefiles and just want to play some angbands without having to install them all, it works.
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9647

    #2
    This is an excellent initiative.

    Angband 4.0.5 and FAangband both fail for me too, with error "Angband requires UTF-8 support"; here's the piece of code which prints that error:
    Code:
    	if (setlocale(LC_CTYPE, "")) {
    		/* Require UTF-8 */
    		if (strcmp(nl_langinfo(CODESET), "UTF-8") != 0)
    			quit("Angband requires UTF-8 support");
    	}
    Maybe that helps?
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • fph
      Veteran
      • Apr 2009
      • 1030

      #3
      Try running it with
      Code:
      LC_ALL=en_US.UTF-8 ./angband
      --
      Dive fast, die young, leave a high-CHA corpse.

      Comment

      • Gwarl
        Administrator
        • Jan 2017
        • 1025

        #4
        I did get as far as finding that line - I think I just deleted, but I managed to get as far as having 4.0.5 run as pictured when I execute it as root.

        If I recall it involved editing some locale settings, but it's still not a playable solution and probably needs some real work to fix.
        Attached Files

        Comment

        • Gwarl
          Administrator
          • Jan 2017
          • 1025

          #5
          Originally posted by fph
          Try running it with
          Code:
          LC_ALL=en_US.UTF-8 ./angband
          Okay, that worked!

          (when compiling from the download on this site - not when compiling from the git source)

          I'm looking into dgamelaunch to see if it can be repurposed for angband.

          Comment

          • Gwarl
            Administrator
            • Jan 2017
            • 1025

            #6
            After a good bit of wrangling I both have dgamelaunch running and launching into angband - which then quits out after the loading screen with 'Couldn't open savefile'. I'm going to have to look closer at the internals of the programs to figure out what's going on there, if possible I'd rather make an angband shaped dgamelaunch than a dgamelaunch shaped angband.

            Comment

            • Gwarl
              Administrator
              • Jan 2017
              • 1025

              #7
              Done! A high level unix guru would probably have had that done in an hour, but I learned a lot about linux and c and angband in the process.

              You can now log in and play the latest release of angband with your own savefile and a shared scorefile. I doubt spectating works yet but I'm done for the night.

              Comment

              • Nick
                Vanilla maintainer
                • Apr 2007
                • 9647

                #8
                OK, this runs on a standard mac terminal, but the floors appear as '?'. I tried loading the other font-*.prf files from /lib/customize, but it did nothing or made it worse. I think you could probably fix this by replacing the current font-gcu.prf with:
                Code:
                # File: font-gcu.prf
                
                # This file contains definitions allowing Angband to make use of the
                # "alternate character set" on VT100-compatible terminals.
                
                # Terrain features
                
                # open floor
                feat:open floor:*:0x01:0x2e
                
                # magma vein with treasure
                feat:magma vein with treasure:*:0x83:0x2a
                # quartz vein with treasure
                feat:quartz vein with treasure:*:0x83:0x2a
                which just uses '.' for floors and '*' for treasure instead of trying to be fancy; or probably even by just removing font-gcu.prf.

                On a linux terminal angband won't open - 'p' does nothing. It is a terminal inside a VM running on a mac, but it worked OK for Angband 3.3.2 when you had that running.
                One for the Dark Lord on his dark throne
                In the Land of Mordor where the Shadows lie.

                Comment

                • Gwarl
                  Administrator
                  • Jan 2017
                  • 1025

                  #9
                  Originally posted by Nick
                  OK, this runs on a standard mac terminal, but the floors appear as '?'. I tried loading the other font-*.prf files from /lib/customize, but it did nothing or made it worse. I think you could probably fix this by replacing the current font-gcu.prf with:
                  Code:
                  # File: font-gcu.prf
                  
                  # This file contains definitions allowing Angband to make use of the
                  # "alternate character set" on VT100-compatible terminals.
                  
                  # Terrain features
                  
                  # open floor
                  feat:open floor:*:0x01:0x2e
                  
                  # magma vein with treasure
                  feat:magma vein with treasure:*:0x83:0x2a
                  # quartz vein with treasure
                  feat:quartz vein with treasure:*:0x83:0x2a
                  which just uses '.' for floors and '*' for treasure instead of trying to be fancy; or probably even by just removing font-gcu.prf.

                  On a linux terminal angband won't open - 'p' does nothing. It is a terminal inside a VM running on a mac, but it worked OK for Angband 3.3.2 when you had that running.
                  Okay, I've changed these settings.. I can't confirm whether that's fixed the problem because I wasn't seeing it on my end, but hopefully that will have done it.

                  I've also noticed that the game doesn't seem to have created a scorefile so I'll have to look into that.

                  Comment

                  • Nick
                    Vanilla maintainer
                    • Apr 2007
                    • 9647

                    #10
                    Cool, that works well now. Also working fine in linux terminal, the problem was I hadn't made it big enough
                    One for the Dark Lord on his dark throne
                    In the Land of Mordor where the Shadows lie.

                    Comment

                    • Gwarl
                      Administrator
                      • Jan 2017
                      • 1025

                      #11
                      After wrestling with the server and eventually compiling node.js from source I've set things up so that you can now play in a browser.

                      link

                      Spectating games and the two variants listed not yet working as advertised, but you can play Angband, which is a good start.

                      Comment

                      • Nick
                        Vanilla maintainer
                        • Apr 2007
                        • 9647

                        #12
                        This looks really cool, and I will test it as soon as I remember my password...
                        One for the Dark Lord on his dark throne
                        In the Land of Mordor where the Shadows lie.

                        Comment

                        • Gwarl
                          Administrator
                          • Jan 2017
                          • 1025

                          #13
                          The UTF8 bugbear strikes again. The game crashes when you try to use recall on monsters or items with accented characters, and the strings don't display properly in the message log.

                          I don't know if this just happens on firefox though, I suspect it may work on chrome.

                          I will probably do find and replace for all the troublesome characters at some point as a temporary fix until the problems can be solved. For now, I'm busy trying to set the new high score.

                          Comment

                          • Gwarl
                            Administrator
                            • Jan 2017
                            • 1025

                            #14
                            Angband Hall of Fame

                            1. 228586 Gwarl the High-Elf Ranger, level 30
                            Killed by an Ancient gold dragon on dungeon level 41
                            (User 1000, Date 2017-03-16, Gold 25663, Turn 412508).

                            2. 2330 picticon the Human Warrior, level 13
                            Killed by Golfimbul, the Hill Orc Chief on dungeon level 13
                            (User 1000, Date 2017-03-15, Gold 3927, Turn 49379).

                            3. 1778 Lahna the Half-Troll Warrior, level 11
                            Killed by a Wood spider on dungeon level 11
                            (User 1000, Date 2017-03-15, Gold 803, Turn 45281).

                            4. 1726 Lahna the Dwarf Warrior, level 8
                            Killed by a Giant black louse on dungeon level 14
                            (User 1000, Date 2017-02-11, Gold 591, Turn 34682).

                            5. 1635 Gwarl the High-Elf Rogue, level 10
                            Killed by a Scout on dungeon level 6
                            (User 1000, Date 2017-02-12, Gold 272, Turn 16696).
                            I've set a reasonable highscore if anyone wants to try to beat it.

                            Comment

                            • HugoVirtuoso
                              Veteran
                              • Jan 2012
                              • 1237

                              #15
                              Integrate PosChengband support ASAP!!
                              My best try at PosChengband 7.0.0's nightmare-mode on Angband.live:
                              https://www.youtube.com/watch?v=rwAR0WOphUA

                              If I'm offline I'm probably in the middle of maintaining Gentoo or something-Linux or other.

                              As of February 18th, 2022, my YouTube username is MidgardVirtuoso

                              Comment

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