Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

Minimalize Artemis display for vnc

A fellow netizen named NoseyNick has a great plan for making Artemis run way better on an x11vnc display: blank out the textures. He also has great scripts to use if you want to run an Artemis game server on somebody else's computer.

files/2024/listings/minimalize-artemis.sh (Source)

#!/bin/sh
# File: /mnt/public/Support/Games/Artemis
# Startdate: 2024-08-15-5 19:11
# Purpose: make artemis server have minimal graphics for vnc optimization
# Reference:
#    https://noseynick.org/artemis/nebula/artemis-dl.sh
artemis_path="${artemis_path:-${1}}"
artemis_path="${artemis_path:-${HOME}/.wine/drive_c/Program Files (x86)/Artemis}"
test ! -d "${artemis_path}" && { echo "Please set artemis_path. Aborted." 1>&2 ; exit 1 ; }
indir=/mnt/public/Support/Games/Artemis
empty_png="$( find "${indir}" -iname 'empty.png' | head -n1 )"
empty_jpg="$( find "${indir}" -iname 'empty.jpg' | head -n1 )"
test -f "${empty_png}" && {
   cp -vf "${empty_png}" "${artemis_path}/dat/aster2.png"
}
test -f "${empty_jpg}" && (
   cd "${artemis_path}/art"
   for word in sb*/*.jpg ; do
      cp -vf "${empty_jpg}" "${word}"
   done
)

The idea is to use a very small asset so the display looks incredibly boring. Ideally you will use a separate machine as a client that displays the main viewscreen. If you have a system somewhere to run x11vnc, you probably have enough to run a separate viewscreen.

For me, this makes it more likely that the game server will stay running even when the main viewscreen crashes. In my experience with the game, it crashes randomly, even on a non-free OS, so I don't consider it a huge deal to keep reloading some GNU/Linux clients.

References

  1. https://noseynick.org/artemis/nebula/artemis-dl.sh

Comments