Paul Sutton

freebsd

Nethack Vulture scores 10/8/2020

This post will,from time to time be republished, with updates to the score table.

Just sharing my latest scores from Nethack-vulture. I am playing this on FreeBSD.

nethack

 No  Points     Name                                                   Hp [max]
  1       1078  paul-Arc-Dwa-Mal-Law died in The Dungeons of Doom on
                level 7.  Killed by a dog, while helpless.              -  [33]
  2        987  paul-Bar-Hum-Fem-Neu died in The Dungeons of Doom on
                level 4 [max 5].  Killed by a homunculus, while
                helpless.                                               -  [44]
  3        265  Paul-Arc-Hum-Mal-Neu died in The Dungeons of Doom on
                level 2 [max 3].  Killed by a jackal.                   -  [16]
  4        221  Paul-Kni-Hum-Mal-Law died in The Dungeons of Doom on
                level 2.  Killed by a grid bug, while helpless.         -  [16]
  5         76  Paul-Hea-Hum-Mal-Neu died in The Dungeons of Doom on
                level 2.  Killed by a goblin.                           -  [13]

to generate the score type:

nethack -s at the command line. If you direct this in to a file with nethack -s >score.txt, then this will also include scores from previous games.

#games,#freebsd,#dungeon,#nethack,#vulture,#scores

Nethack vultures-eye 1

Nethack is a very popular game amongst some techy groups. Normal Nethack is a text based game. However vultures-eye, adds some basic 3d isometric graphics to the game, making it more accessible to people.

As you explore, you come across, monsters and other residents in the dungeon, some are friendly others not so, you need to discover all this as you explore the many rooms, corridors in the game.

nethack

Depending on your character type you get a companion with you. Here the player is a knight accompanied by a horse.

I have the game working on FreeBSD, so these notes / screenshots are copied over from my FreeBSD install.

nethack

nethack

Gold (zorkomids) are the main currency, you need this to buy new goods, and receive this if you sell something.

nethack

Shops are a place to buy or sell goods.

nethack

You can see your full inventory, detailing what you are carrying, wearing or how much currency you have.

nethack

While the game maps help you keep track of where you are.

nethack

nethack

nethack

nethack

When you die, you can view all the stats on how you performed during the game.

nethack

nethack

One of the many stairways down to the next level of the dungeon, you can go up and down these as you wish. The upper most level (1) has a stairway to the outside world, choose this, your game ends. Onwards and downwards, it has to be.

Resources

#games, #rogue, #roguelike, #nethack, #vultureseye, #unix,#freebsd, #dungeon, #crawler.


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 7

Further to my previous post I have been on IRC #freebsd in order to ask about what would be good to use for taking screen shots of desktop applications for example.

Scrot : is easy to use and you cam use this to take a picture of the whole screen, this will be useful going forward with these posts.

pkg install scrot

For basic usage just type scrot at the console or in a terminal window.

I have also installed simpleviewer, with

pkg install simpleviewer

However running this at the cli did do anything, you need to find the actual binary executable for this.

info -lx simpleviewer

reveals sviewgl as the program you need to run.

I am now pretty much set up for taking screenshots and being able to view then.

#bsd, #desktop, ##freebsd, #twm, #screenshots, #graphics, #viewing, #console, #gui

Resources

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 6

Further to my previous post or probably more specifically the post before that I am sharing a little more about setting up twm.

I have been trying to find a way to share my config files here. The easiest way to this, so I thought, would be to copy the files to a removable media, this failed. So this morning I created a github repository and uploaded copies of the two files there.

So firstly there is the xinitrc file as below

#!/bin/sh

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/usr/local/etc/X11/xinit/.Xresources
sysmodmap=/usr/local/etc/X11/xinit/.Xmodmap

# merge in defaults and keymaps

if [ -f $sysresources ]; then

    xrdb -merge $sysresources

fi

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap
fi

if [ -f "$userresources" ]; then
    xrdb -merge "$userresources"

fi

if [ -f "$usermodmap" ]; then
    xmodmap "$usermodmap"
fi

# start some nice programs

if [ -d /usr/local/etc/X11/xinit/xinitrc.d ] ; then
	for f in /usr/local/etc/X11/xinit/xinitrc.d/?*.sh ; do
		[ -x "$f" ] && . "$f"
	done
	unset f
fi
twm &
#afterstep
#xclock -geometry 50x50-1+1 &
#xterm -geometry 40x25+494-0 &
exec xterm -geometry 40x25+0+0 -name login

The end section of this tells the X11 system to load twm as the window manager, the last line creates a special xterm window that, if exited will exit the X11 system too.

Following on from this is the system.twmrc file which is sets up the twm system.

#
# Default twm configuration file; needs to be kept small to conserve string
# space in systems whose compilers don't handle medium-sized strings.
#
# Sites should tailor this file, providing any extra title buttons, menus, etc.
# that may be appropriate for their environment.  For example, if most of the
# users were accustomed to uwm, the defaults could be set up not to decorate
# any windows and to use meta-keys.
#

NoGrabServer
RestartPreviousState
DecorateTransients
TitleFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
ResizeFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
MenuFont "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-*-*"
IconFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*-*-*-*"
IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"
#ClientBorderWidth

Color
{
    BorderColor "slategrey"
    DefaultBackground "rgb:2/a/9"
    DefaultForeground "gray85"
    TitleBackground "rgb:2/a/9"
    TitleForeground "gray85"
    MenuBackground "rgb:2/a/9"
    MenuForeground "white"
    MenuBorderColor "black"
    MenuTitleBackground "gray70"
    MenuTitleForeground "rgb:2/a/9"
    IconBackground "rgb:2/a/9"
    IconForeground "gray85"
    IconBorderColor "gray85"
    IconManagerBackground "rgb:2/a/9"
    IconManagerForeground "gray85"
}

#
# Define some useful functions for motion-based actions.
#
MoveDelta 3
Function "move-or-lower" { f.move f.deltastop f.lower }
Function "move-or-raise" { f.move f.deltastop f.raise }
Function "move-or-iconify" { f.move f.deltastop f.iconify }

#
# Set some useful bindings.  Sort of uwm-ish, sort of simple-button-ish
#
Button1 = : root : f.menu "defops"

Button1 = m : window|icon : f.function "move-or-lower"
Button2 = m : window|icon : f.iconify
#Button3 = m : window|icon : f.function "move-or-raise"
Button3 = m : window|icon : f.quit "quit application"

Button1 = : title : f.function "move-or-raise"
Button2 = : title : f.raiselower

Button1 = : icon : f.function "move-or-iconify"
Button2 = : icon : f.iconify

Button1 = : iconmgr : f.iconify
Button2 = : iconmgr : f.iconify

#
# And a menus with the usual things
#
menu "defops"
{
"Twm"	f.title
"Iconify"	f.iconify
"Resize"	f.resize
"Move"		f.move
"Raise"		f.raise
"Lower"		f.lower
""		f.nop
"Focus"		f.focus
"Unfocus"	f.unfocus
"Show Iconmgr"	f.showiconmgr
"Hide Iconmgr"	f.hideiconmgr
""		f.nop
"Nethack"	f.exec "exec vulture-nethack &"
"Doom"		f.exec "exec prboom &"	
#"Xterm"	f.exec "exec xterm &"
"LXTerminal"	f.exec "exec lxterminal &"
"Thunar"	f.exec "exec thunar &"

"XCalc"		f.exec "exec xcalc &"
""		f.nop
"Kill"		f.destroy
"Delete"	f.delete
""		f.nop
"Restart"	f.restart
"Exit"		f.quit
}

IconManagers{
"Frame"	"=100x50+100+100"	1
"XTerm"	"=300x50+120+100"	2

It is fairly basic at the moment, but feel free to git clone from here.

I am sharing as they are more of a guide rather than something that should be just used.

#bsd, #config, #desktop, #settings, #configuration, #tool, #freebsd, #twm, #window, #icoms, #xinitrc, #system.twmrc

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

This post is NOT endorsed by FreeBSD.

I am creating this post to try and bring together some information on how to get involved with the FreeBSD project. I am not a developer in this project. This information may simply be useful as it points to various related resources.

It would be really good to get a Devon based developer / tester community set up, where people can work together, learn essential computer skills, have fun, be social but at the same time develop some real world developer / work skills that can be useful later on.

Being part of any developer community can also open up doors. Learning c / c++ for example is useful, but as would learning shell scripting.

Resources

1 FeeeBSD Project 2 About FreeBSD 3 FreeBSD Developer Handbook 4 FreeBSD Twitter 5 Default Shell 6 tcsh tutorial 7 sh tutorial 8 Repl.it 9 Developer roadmap 10 CodeCademy 11 Freshports

#FreeBSD. #Development, #Get, #Involved, #programming, #documentation, #testing

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 5

Carrying on directly from my previous post I have found a nice video tutorial to explain how to edit the .twmrc file. This can be found at:

While this is a short video, it is easy to follow and comprehensive.

#bsd, #config, #desktop, #settings, #configuration, #tool, #freebsd, #twm, #window, #icoms.

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 4

Carrying on from my previous post. I am now turning my attention to configuring the twm desktop [1]

twm is set as the default window manager in:-

/usr/local/etc/X11/xinit/ file : xinitrc

After finding some information on how to configure the twm desktop [2]. This document seems to be from around 1989.

I tried to find the configuration files in my local home directory structure on bsd but was unable to. However there is one

/usr/local/share/X11/twm/system.twmrc

Which, I think is more of a global configuration. Given the only two users are myself and root is fine.

I used this to add a second icon manager to the desktop.

I have also found some other documentation [3] which explains how add items to the menu.

So to add menu entry to menu for vulture-nethack

edit /usr/local/share/X11/twm/system.twmrc

“Nethack” f.exec “exec vulture-nethack &”

the & is important

If you need more help you may want to ask on IRC: * #freebsd which is hosted freenode. [4] I am on IRC as zleap but also frequent a few other channels.

References

  1. twm Desktop
  2. An Overview of twm (Tom’s Window Manager)
  3. Customizing twm
  4. Freenode IRC

#bsd, #config, #desktop, #settings, #configuration, #tool, #freebsd, #twm, #window, #icoms.

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 3

Following on from my previous post which discussed changing the X11 keyboard layout. I had to also change the console layout.

This can be undertaken through editing the appropriate configuration files or with a tool called bsdconfig which needs to be run as root.

The online man page can be found here

This is a menu driven / text based interface. I can't, as yet provide a screen shot, but the man page is comprehensive enough so a screenshot isn't really needed.

To change the keyboard map you will need to find the appropriate section and make the changes.

#bsd, #config, #menu, #settings, #configuration, #tool, #freebsd, #keyboard, #layout, #gb.

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 2

Following on from my previous post. I have been working on fixing the keyboard mapping issue.

Again, after asking for some help on this from IRC, I was given an example configuration file to work from.

/usr/local/etc/X11/xorg.conf.d/00-keyboard.conf

From this I have created a new X11 keyboard configuration file for the UK / GB keyboard layout. This now works, so at least pressing shift 2 gives “ and not @ which would happen on a US keyboard and was happening previously.

Now this is working, it is a little easier to play nethack as @ turns auto pickups off, which is very helpful when you don't want to pick up everything you come across.

#freebsd, #x11, #keyboard, #layout, #configuration, #irc, #nethack

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)

FreeBSD 1

Further to my post on Vultures-eye earlier . I spent some time last night installing FreeBSD with the view to getting the game working. The page on freshports.

I also joined #freebsd on irc.freenode.net to ask for any help.

Once I had downloaded the ISO file and created an install DVD. I set about installing it. Text based installer is easy to use. Very similar to Slackware.

Once installed, I set about installing nethack with the package manager. (pkg install <packagename ) Once installed I realised that I probably need to run this through X.

I then set about installing X11 on the target netbook. This was painless, once installed started X11 with startx then ran the vulture-nethack game

Worth noting the config file can be found in /usr/home/user/.vulture as: vulture.conf

You may want to: Change the game window size Turn off music if you want to play the game and :-

  • watch a video
  • listen to other music.

The game worked fine, so I can get back to playing again.

The only issue I did seem to have was setting up a normal user account, this failed during the install process, not quite sure why, but I just added a new user with adduser from the root prompt. One thing to note about BSD is the user home director is in a different place. But that much different to under Linux.

I also installed prboom which is a free Doom game.

Given that I have never actually touched BSD at all. The ease of use is down to the great work of the developer team(s).

FreeBSD Handbook

#freebsd, #unix, #nethack, #technology, #computing, #irc, #freenode, #support, #install, #configure, #x11, #setup, #netbook

You can find me on Friendica at zleap@social.isurf.ca


cc-by logo

Licenced under Attribution 4.0 International (CC BY 4.0)