#!/bin/sh # Grand Text ASCII: download the terminal client from https://grand-text-ascii-production.up.railway.app and join that server set -e command -v node >/dev/null 2>&1 || { echo "Grand Text ASCII needs Node 22 or newer: https://nodejs.org" >&2; exit 1; } D="${GTA_DIR:-$HOME/.grand-text-ascii}" mkdir -p "$D" echo "Downloading the game to $D ..." for f in core mesh samap world render actors game police missions riot hud net term; do curl -fsS --compressed -o "$D/$f.js" "https://grand-text-ascii-production.up.railway.app/$f.js"; done exec node "$D/term.js" --join "wss://grand-text-ascii-production.up.railway.app" "$@"