Egg Repository

Pterodactyl Community Egg Repository

Clone Hero

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!

Read Me

Clone Hero

From their Site

Documentation

Minimum RAM warning

Minimum required memory to run the server. 80MiB is recommended. 2GB+ is preferred

Minumim Sorage warning

Minimum required storage to run the server. 100MiB is recommended. 2GiB+ is preferred

Server Ports

Ports required to run the server.

Port default
Game 14242

Notes

14242 is the default port, but any port can be used.

Yolks
NameTag
Debianghcr.io/ptero-eggs/yolks:debian
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Server nameThe name of the serverSERVER_DISPLAY_NAMEYesYes
Server passwordThe password of the serverSERVER_PASSWORDYesYes
Log levelSet max logging levelLOG_LEVEL4YesYes
VersionThe version of Clone Hero you want to install. Example: V1.0.0.4080 or latestVERSIONlatestYesYes
Install Script
#!/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 "-----------------------------------------"