Egg Repository

Pterodactyl Community Egg Repository

mohaa

Medal of Honor: Allied Assault

Read Me

Medal of Honor: Allied Assault

Medal of Honor: Allied Assault is a first-person shooter video game developed by 2015, Inc.

Server Ports

Port default
Game 12203

This egg uses the Unofficial MoH:AA 1.12 Patch that addes several features and security updates to allow a fair multiplayer experience.

Ones the server is installed you can check the File Manager for Medal of Honor Reborn Patch Documentation RC3.5.1.pdf for more information.

Check the main/server.cfg in the File Manager for more configuration options.

Yolks
NameTag
Mohaaghcr.io/ptero-eggs/games:mohaa
Variables
NameDescriptionEnvironment VariableDefault ValueUser ViewableUser Editable
Max clientsSERVER_MAXCLIENTS14YesYes
Config URLURL from where to get the initial server.cfgCONFIG_URLhttps://raw.githubusercontent.com/ptero-eggs/game-eggs/main/mohaa/server.cfgNoNo
Server nameThe name of the serverSERVER_NAMEMOHAA Server running on PterodactylYesYes
Rcon passwordAdmin password for rconRCON_PASSWORDYesYes
Server mapSelect the mapSERVER_MAPdm/mohdm7YesYes
Logs dirLOG_DIR/home/container/LogsYesNo
Base PATHBASE_PATH/home/containerYesNo
Server passwordSERVER_PASSWORDYesYes
Install Script
#!/bin/ash

apk --no-cache add curl

if [[ ! -d /mnt/server/ ]]; then
    mkdir -p /mnt/server/
fi

cd /mnt/server/

DOWNLOAD_URL=http://linuxgsm.download/MedalofHonorAlliedAssault/moh_revival_v1.12_RC3.5.1.tar.xz

if [ ! -z "${DOWNLOAD_URL}" ]; then 
    if curl --output /dev/null --silent --head --fail ${DOWNLOAD_URL}; then
        echo -e "link is valid. setting download link to ${DOWNLOAD_URL}"
        DOWNLOAD_LINK=${DOWNLOAD_URL}
    else        
        echo -e "link is invalid closing out"
        exit 2
    fi
fi

echo -e "running 'curl -sSL ${DOWNLOAD_LINK} -o mohaaserver.tar.xz'" 
curl -sSL ${DOWNLOAD_LINK} -o mohaaserver.tar.xz

echo -e "Unpacking server files"
tar xvf mohaaserver.tar.xz

rm mohaaserver.tar.xz

echo -e "checking for default server.cfg"
[[ -f main/server.cfg ]] || curl -sSL ${CONFIG_URL} -o main/server.cfg

echo -e "running 'chmod +x ./mohaa_lnxded'"
chmod +x ./mohaa_lnxded


## install end
echo "-----------------------------------------"
echo "Installation completed..."
echo "-----------------------------------------"