How to compile very old Angband versions?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lea2501
    Apprentice
    • Dec 2019
    • 61

    #16
    I noticed that the current angband compile i have has the save file in lib/save as you mentioned before:

    Code:
    $ ls -lahF ~/src/angband/lib/save/
    total 44K
    drwxr-xr-x  2 lea lea 4.0K Oct 29 22:53 ./
    drwxr-xr-x 14 lea lea 4.0K Oct 27 22:52 ../
    -rw-------  1 lea lea  34K Oct 29 22:53 User
    So i created the file in the old 2.9.3 compile, also copied the current save file there, but the error persist

    Code:
    $ ls -lahF ~/games/roguelikes/angband/angband-2.9.3/lib/save/
    total 64K
    drwxr-xr-x  2 lea lea 4.0K Oct 30 07:49 ./
    drwxr-xr-x 13 lea lea 4.0K Oct 27 23:49 ../
    -rw-r--r--  1 lea lea    0 Sep 29  2012 delete.me
    -rw-r--r--  1 lea lea 5.3K Oct 27 23:49 Makefile
    -rw-r--r--  1 lea lea  356 Sep 29  2012 Makefile.am
    -rw-r--r--  1 lea lea 5.3K Sep 29  2012 Makefile.in
    -rw-r--r--  1 lea lea  34K Oct 30 07:50 User

    Comment

    • Nick
      Vanilla maintainer
      • Apr 2007
      • 9637

      #17
      Have you tried
      Code:
      ~/.angband/Angband/save
      the same as modern private user paths? That was present in 2.9.3, I'm not sure if it was used by default, though.
      One for the Dark Lord on his dark throne
      In the Land of Mordor where the Shadows lie.

      Comment

      • lea2501
        Apprentice
        • Dec 2019
        • 61

        #18
        Originally posted by Nick
        Have you tried
        Code:
        ~/.angband/Angband/save
        the same as modern private user paths? That was present in 2.9.3, I'm not sure if it was used by default, though.
        no, in that directory i have the angband files of my linux distribution (devuan) angband package installed with apt, or you mean to copy that file to the angband 2.9.3 compilation directory?

        what i don't understand, is that if i use the following commands:

        Code:
        ./configure --prefix $HOME/.angband_2.9.3
        make clean
        make 
        make install
        the angband executable and files are in the directory of the src files, and not in the prefixed one.

        i also tried the "./configure" with no parameters and i get the same result, the only difference is with "./configure --with-no-install" this gives me the angband executable under the "src" directory, and not in the current directory (the decompressed sources directory)

        Comment

        • Cuboideb
          Adept
          • May 2020
          • 196

          #19
          Code:
          ./src/angband -uUser -mgcu -- -n1
          Copy the executable to the parent folder and start it from there.

          Comment

          • lea2501
            Apprentice
            • Dec 2019
            • 61

            #20
            Originally posted by Cuboideb
            Code:
            ./src/angband -uUser -mgcu -- -n1
            Copy the executable to the parent folder and start it from there.
            but this is the current version in this directory, that works perfectly, no "Savefile does not exist. -more-" error, the problem is the 2.9.3 version, that no matter what i try, i get that error after compile.
            Last edited by lea2501; October 30, 2021, 22:57.

            Comment

            • backwardsEric
              Knight
              • Aug 2019
              • 527

              #21
              Originally posted by lea2501
              However, when i start the game with

              Code:
              ./src/angband -uUser -mgcu -- -n1
              it fails to start showing a message saying

              Code:
              Savefile does not exist. -more-
              Any idea of where i need to create it?
              The problem likely isn't with the savefile or the savefile directory but with getting stuck in an infinite loop in the random number generator (at least that's what happens when I follow your steps on a x86_64 system). Doing this (so compiling doesn't assume that long is a 32-bit type) for configuration seems to solve the infinite loop problem:

              Code:
              env CFLAGS=-DL64 ./configure --with-no-install
              make clean
              make
              (the "make clean" step there is just to ensure that it's not using the previously compiled object files).

              Comment

              • lea2501
                Apprentice
                • Dec 2019
                • 61

                #22
                Originally posted by backwardsEric
                The problem likely isn't with the savefile or the savefile directory but with getting stuck in an infinite loop in the random number generator (at least that's what happens when I follow your steps on a x86_64 system). Doing this (so compiling doesn't assume that long is a 32-bit type) for configuration seems to solve the infinite loop problem:

                Code:
                env CFLAGS=-DL64 ./configure --with-no-install
                make clean
                make
                (the "make clean" step there is just to ensure that it's not using the previously compiled object files).
                It worked! (but not with those commands)

                what i did was the following:

                I edited src/Makefile.std and uncommented these lines (129 and 130):
                Code:
                ## Variation -- Only support "main-gcu.c" (not "main-x11.c")
                ##
                CFLAGS = -Wall -O1 -pipe -g -D"USE_GCU" -DL64
                LIBS = -lcurses -ltermcap
                Then i run these commands:
                Code:
                $ export CFLAGS=-DL64
                $ ./configure --with-no-install
                $ make clean
                $ make
                and now it works! thank you all! i will try to play 2.9.3 and then check if i can compile even more ancient builds, just to take a look at them, my initial point was to play the angband version that frogcomposband, and in fact zangband derived!

                Comment

                • Gwarl
                  Administrator
                  • Jan 2017
                  • 1025

                  #23
                  I haven't read this thread but MITZE told me about it,

                  I have a repository here called 2.9.3L which is a modernisation of 2.9.3



                  the first commit will get the thing to compile, the other commits give various things like a curses display that can go larger than 80x24 and a 'show visible monsters' command, an experience indicator that can be toggled to show experience required to level up (not just total experience), customiseable subwindow layouts in curses, and some code for angband.live to get the character info on the home page.

                  Comment

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