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!
Ports
Add an allocation on the node for each port.
- Game 14242
Install
- Installer image
- ghcr.io/ptero-eggs/installers:debian
- Install script
- 51 lines
Image
- Debian ghcr.io/ptero-eggs/yolks:debian
Startup
The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.
4 variables
Startup command
./Server -l 4 -n "{{SERVER_DISPLAY_NAME}}" -p 14242 -a 0.0.0.0 $([[ -z "{{SERVER_PASSWORD}}" ]] && echo -np || echo "-ps {{SERVER_PASSWORD}}")Dotted values come from the server settings. These values are examples.
The name of the server
SERVER_DISPLAY_NAMEUsers can edit
required|string|max:80A value is required.
The password of the server
SERVER_PASSWORDUsers can edit
nullable|string|regex:/^[a-zA-Z0-9_]+$/
Set max logging level
LOG_LEVELUsers can edit
required|string|in:0,1,2,3,4
The version of Clone Hero you want to install. Example: V1.0.0.4080 or latest
VERSIONUsers can edit
required|string|max:20
Wings
- Stop command
- ^c
- Running when the console shows
- Server running...
Readme
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.
Problem with this egg?
Open an issue on GitHub. Include your Panel and Wings versions.
Install script 51 lines bash in ghcr.io/ptero-eggs/installers:debian Show Hide
#!/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 "-----------------------------------------"