Clone Hero is a classic instrument based rhythm game for Windows, Mac, Linux, and Android. It's playable with any 5 or 6 fret guitar controller, any midi drum kit, any game controller and even your keyboard! Jam out with Drums, 5-fret Guitar, or 6-fret Guitar online or local!
Minimum required memory to run the server. 80MiB is recommended. 2GB+ is preferred
Minimum required storage to run the server. 100MiB is recommended. 2GiB+ is preferred
Ports required to run the server.
Port | default |
---|---|
Game | 14242 |
14242 is the default port, but any port can be used.
Name | Tag |
---|---|
Debian | ghcr.io/ptero-eggs/yolks:debian |
Name | Description | Environment Variable | Default Value | User Viewable | User Editable |
---|---|---|---|---|---|
Server name | The name of the server | SERVER_DISPLAY_NAME | Yes | Yes | |
Server password | The password of the server | SERVER_PASSWORD | Yes | Yes | |
Log level | Set max logging level | LOG_LEVEL | 4 | Yes | Yes |
Version | The version of Clone Hero you want to install. Example: V1.0.0.4080 or latest | VERSION | latest | Yes | Yes |
#!/bin/bash
apt update
apt -y install curl unzip jq
## get release info and download links
V=$(curl -s https://clonehero.net/ | grep -i "Latest version" | grep -oP '(?<=<b>).+?(?=<\/b>)' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') #v1.0.0.4080
LATEST_JSON=$(curl --silent "https://api.github.com/repos/clonehero-game/releases/releases/latest")
RELEASES=$(curl --silent "https://api.github.com/repos/clonehero-game/releases/releases")
MATCH=CloneHero-standalone_server
if [ -z "${VERSION}" ] || [ "${VERSION}" == "latest" ]; then
DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i ${MATCH})
else
VERSION_CHECK=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .tag_name')
if [ "${VERSION}" == "${VERSION_CHECK}" ]; then
DOWNLOAD_URL=$(echo ${RELEASES} | jq -r --arg VERSION "${VERSION}" '.[] | select(.tag_name==$VERSION) | .assets[].browser_download_url' | grep -i ${MATCH})
else
echo -e "defaulting to latest release"
DOWNLOAD_URL=$(echo ${LATEST_JSON} | jq .assets | jq -r .[].browser_download_url | grep -i server)
fi
fi
V=$(curl -s https://clonehero.net/ | grep -i "Latest version" | grep -oP '(?<=<b>).+?(?=<\/b>)' | sed -e 's/^[[:space:]]*//' -e 's/[[:space:]]*$//') #v1.0.0.4080
ARCH=$([[ "$(uname -m)" == "x86_64" ]] && echo "linux-x64" || echo "linux-arm64")
mkdir -p /mnt/server
cd /mnt/server
echo "Running: curl -sSL -o ChStandaloneServer.zip ${DOWNLOAD_URL}"
curl -sSL -o ChStandaloneServer.zip ${DOWNLOAD_URL}
unzip -o ChStandaloneServer.zip
rm ChStandaloneServer.zip
mv ChStandaloneServer-${V}-final/${ARCH}/* .
rm -rf ChStandaloneServer-${V}-final/
chmod +x Server
if [ ! -f /mnt/server/settings.ini ]
then
curl -sSL -o settings.ini https://pastebin.com/raw/rhcv0hvi
fi
## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"