Minecraft 1.11.2 for HP-UX 11.11 (PA-RISC)
==========================================

Minecraft: Java Edition 1.11.2 on HP's Java 6, with LWJGL 2.9.4 and OpenAL
Soft 1.17.2 built for HP-UX, and a Java agent (hpuxfix) that fixes Minecraft's
big-endian bugs and works around the FireGL driver. 1.11.2 is the newest
release that runs on Java 6.

This package does NOT contain Minecraft. get-minecraft.sh downloads it from
Mojang and checks every file's SHA-1. You need a Minecraft: Java Edition
license. The game starts in offline mode, without logging in.


1. On a PC with internet access
-------------------------------
HP-UX 11.11 can't connect to Mojang's servers, so the game files are fetched
on another computer: Linux, macOS, BSD or WSL, with curl and sh.

    tar xzf minecraft-1.11.2-hpux11.11-hppa-DATE.tar.gz
    cd minecraft-1.11.2-hpux11.11-hppa-DATE
    ./get-minecraft.sh

That downloads about 150 MB (1211 files) and writes
../minecraft-1.11.2-hpux11.11-hppa-DATE-full.tar, which holds this package
plus the game files.

If your HP-UX machine does have a curl with TLS 1.2, you can instead run
"./get-minecraft.sh -n" on it and skip the copying. Set CURL=/path/to/curl,
and CURL_OPTS="--cacert FILE" if its CA bundle is too old.


2. On the HP-UX machine, as root
--------------------------------
Copy the -full.tar file over (scp, or ftp in binary mode), then:

    tar xf minecraft-1.11.2-hpux11.11-hppa-DATE-full.tar
    cd minecraft-1.11.2-hpux11.11-hppa-DATE
    ./install.sh                         # into /opt/minecraft (--prefix DIR)
    ./install.sh --link /usr/local/bin   # ...plus a "minecraft" command

Afterwards the extracted directory and the tar file can be deleted.


3. Playing
----------
As the player, in an X session (CDE is fine):

    /opt/minecraft/minecraft.sh

Saves, options and logs go in ~/.minecraft-1.11.2. Settings are environment
variables, described at the top of minecraft.sh:

    MC_USER    player name (default: your login name)
    MC_HEAP    Java heap (default 1024m)
    MC_SIZE    window size (default 854x480)
    MC_DIR     game directory (default ~/.minecraft-1.11.2)
    MC_DEBUG   1: LWJGL debug output
    JAVA_HOME  Java 6 (default /opt/java6)

To remove it, delete /opt/minecraft and each player's ~/.minecraft-1.11.2.


Requirements
------------
- HP-UX 11.11 on PA-RISC 2.0.
- HP's Java 6 for PA-RISC (JDK or JRE, product Jdk60 or Jre60) in
  /opt/java6. Tested with 6.0.22.
- HP's OpenGL runtime (/opt/graphics/OpenGL/lib/libGL.2) and a graphics
  card with hardware texturing. Tested on a c8000 with an ATI FireGL X3, at
  about 55 fps. VISUALIZE-FX cards without the texture accelerator draw
  textures in software and are far too slow.
- Enough memory for a 1 GB Java heap (MC_HEAP).
- Sound goes to /dev/audio, if the machine has a sound device.

Everything else is either in this package or part of HP-UX 11.11.


What is in here
---------------
  minecraft.sh                launcher
  lwjgl/lwjgl.jar, lwjgl_util.jar   LWJGL 2.9.4, patched for HP-UX
  lwjgl/natives/liblwjgl.sl   LWJGL's native library
  lwjgl/natives/libopenal.so  OpenAL Soft 1.17.2 with an HP-UX /dev/audio
                              backend (a SOM library; LWJGL looks for .so)
  hpuxfix/                    Java agent with the Minecraft fixes, and ASM 5.2
  versions/1.11.2/classpath.txt   Mojang's library list
  minecraft-1.11.2.files      what get-minecraft.sh downloads, with SHA-1s
  src/                        patches, build scripts and hpuxfix source
  LICENSES/

Minecraft's own LWJGL jars are replaced by the patched ones. The patches and
build steps are in src/; src/README.md describes the port. To rebuild
OpenAL Soft, get openal-soft-1.17.2 from
https://github.com/kcat/openal-soft/archive/refs/tags/openal-soft-1.17.2.tar.gz
and apply src/openal/openal-soft-1.17.2-hpux.patch.


Known limitations
-----------------
- Only 1.11.2 is supported; 1.12 and later need Java 8.


Licenses
--------
- LWJGL: BSD 3-clause (LICENSES/LWJGL.txt).
- OpenAL Soft: GNU LGPL 2 (LICENSES/OpenAL-Soft-LGPL-2.txt). The source
  changes are in src/openal/.
- ASM: BSD 3-clause (LICENSES/ASM.txt).
- Minecraft is Mojang's and is not included.
