Experiences with new Angband 4.2.5 and questions about Identifying and Variants

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PowerDiver
    Prophet
    • Mar 2008
    • 2782

    #46
    Originally posted by Michaelyx
    2. To easily start from a new terminal: It was recommended to start from the installation directory with: src/angband -c -msdl2 What speaks against starting from an other directory with a link like this: ~/Downloads/angband_28_01/src/angband -c -msdl2
    Perhaps things are better now, but in the old days there were relative paths in the code, so e.g. for the game to be able to find the "lib" directory you needed to be running in the directory above it. I continue to do it that way.

    Assuming you have a personal bin directory that appears early in your $PATH, you could put the cd and options and whatever else into a script in your bin directory. E.g. there was a time I was tracking real time played, and I used

    #! /bin/bash

    cd ~/angband/Angband-4.2.5/
    echo "" >> ../logs/log.4.2.5
    date >> ../logs/log.4.2.5
    ./angband
    date >> ../logs/log.4.2.5

    The ./angband was a symlink to src/angband. Technically I had that file in a directory of shell scripts and a symlink to it from ~/bin

    Comment

    • Michaelyx
      Rookie
      • Dec 2024
      • 12

      #47

      Thanks for the tip!
      I created a startup shortcut: With a script called “angband” in /usr/local/bin/ using an editor:
      sudo gedit /usr/local/bin/angband

      Contents:
      Code:
      #!/bin/sh
      cd /home/michaelyx/Downloads/angband_28_01
      ./src/angband -c -msdl2
      Then make this script executable: sudo chmod +x /usr/local/bin/angband

      Comment

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