OpenMP
A multiplayer mod for Grand Theft Auto: San Andreas that is fully backwards compatible with San Andreas Multiplayer.
Ports
Add an allocation on the node for each port.
- Game 25570
Install
- Installer image
- ghcr.io/ptero-eggs/installers:debian
- Install script
- 42 lines
Image
- Samp ghcr.io/ptero-eggs/games:samp
Startup
The Panel runs this command to start the server. It replaces each variable in the command with the value of that variable.
2 variables
Startup command
./omp-serverThe password for RCON
RCON_PASSWORDUsers can edit
required|string|max:32A value is required.
The version you want to install
VERSIONUsers can edit
required|string|max:20
Wings
- Stop command
- exit
- Running when the console shows
- started on port
Files Wings edits
Wings sets these values in these files before each start.
config.json json
- network.port
- {{server.build.default.port}}
- rcon.password
- {{server.build.env.RCON_PASSWORD}}
Readme
Changes
- Validate and update embedded URLs
· Daniel Barton · bf9f3cb
- SteamCMD + Other fixes
· yesBad · edbf925
- Add standalone games
· Daniel Barton · 74c706a
Problem with this egg?
Open an issue on GitHub. Include your Panel and Wings versions.
Install script 42 lines bash in ghcr.io/ptero-eggs/installers:debian Show Hide
#!/bin/bash
apt -y install curl git jq tar
## get release info and download links
LATEST_JSON=$(curl --silent "https://api.github.com/repos/openmultiplayer/open.mp/releases/latest")
RELEASES=$(curl --silent "https://api.github.com/repos/openmultiplayer/open.mp/releases")
MATCH=open.mp-linux-x86-dynssl
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 -linux-x86 | head -1)
fi
fi
echo "running: curl -sSL -o openmp.tar.gz ${DOWNLOAD_URL}"
curl -sSL -o openmp.tar.gz ${DOWNLOAD_URL}
mkdir -p /mnt/server
tar -xzvf openmp.tar.gz --strip-components=1 -C /mnt/server/
cd /mnt/server || exit
echo "creating default config"
if [ -e config.json ]; then
echo "server config file exists"
else
echo "Downloading default OpenMp config"
curl https://raw.githubusercontent.com/ptero-eggs/game-eggs/main/gta/openmp/config.json >> config.json
fi
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"