Het forum

[Script] Savage XR

Auteur Antwoorden
sea-eye-aya Dinsdag 23 October 2018 om 14:30
sea-eye-ayaAnonymous

Description

Savage XR, the successor of the 2003 award winning PC game Savage: The Battle for Newerth, takes the best of the Real-time Strategy, First-person Shooter and Third-person Action genres and blends it into a cohesive, complex and addicting experience. Aim of the game is to destroy the enemy base. Savage XR is entirely free and non-profit!

Savage XR is a unique RTS/FPS hybrid game available as Freeware for Windows, Linux and Mac, that can be played either online, on LAN or offline against bots (without commander). Each match of Savage XR takes place on one of over 2000 available maps. A single match has two or more teams, which can be either human or beasts. The goal of the game is to destroy the primary enemy structure - the "Stronghold" for the human race, or the "Lair" for the beast race. Each team has one commander, who plays the game like an RTS, and additional players, who play the game like an FPS (but with a third-person mode for melee). A game can take between 2 and 45 minutes. With each new match all previous progress gets reset.

 

Requirements

  • 1GB of ram.
  • 1GB of disk space.
  • A Hardware Accelerated graphics card, the faster the better but it will work on low end cards such as Intel GM45 or Radeon R300.
  • Hardware accelerated OpenGL drivers.
  • Internet connection.

 

Installation instructions

During installation please choose:

  • The default install location.
  • Default settings.

Once install you will be asked to register an account:

  • Leave empty for a Guest account.
  • Register a user account for in game statistics (shot accuracy, wins/loses etc) and ranking to be recorded.

Script

#!/usr/bin/env playonlinux-bash
#
# Savage XR - Battle for Newerth installer script for Play On Linux/Mac.
#     http://www.savagexr.com
#     http://www.newerth.com/
#
# Date : (2018-10-19 12-00)
# Last revision : (2018-10-23 12-00)
# Wine version used : 3.18
# Distribution used to test : Void Linux, Ubuntu 16.04
# Author : sea-eye-aya
#
# Tabs (not spaces), UTF-8, Unix line encoding.
#
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Savage XR"
PREFIX="SavageXR"

POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Newerth" "http://www.newerth.com" "sea-eye-aya" "$PREFIX"

POL_System_TmpCreate "Tmp$PREFIX"
cd "$POL_System_TmpDir" || exit 1

POL_SetupWindow_InstallMethod "DOWNLOAD,LOCAL"
 
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    # Local install is really only meant for this script development purposes,
    # to stop hitting Newerth.com bandwidth needlessly!
    #
    POL_SetupWindow_browse "$(eval_gettext 'Please select the SavageXR installer.')" "$TITLE"
    cp "$APP_ANSWER" "$POL_System_TmpDir"
    SAVAGE_INSTALLER=$(basename "$APP_ANSWER")

elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    # Grr POL_Download automatically give the file a name which is the end of the URL...
    #
    SAVAGE_INSTALLER="xr_setup-1.0-cl_win_prod.exe"
    AUTO_NAME="?id=downloads&op=downloadFile&file=xr_setup-1.0-cl_win_prod.exe&mirrorid=2"
    POL_Download "http://www.newerth.com/?id=downloads&op=downloadFile&file=xr_setup-1.0-cl_win_prod.exe&mirrorid=2" "84ddcf12e693f8ad0c91aefa39481328"
    mv "$AUTO_NAME" "$SAVAGE_INSTALLER"
fi

# Set WINE enviroment.
#
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "3.18"
POL_System_SetArch "x86"
Set_OS "win7"

# Run SavageXR installer.
#
POL_Wine_WaitBefore "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'About to start the Savage XR Installer, please choose:\n\t * The default install location.\n\t * The default settings.\n\nOnce installed you can register an account (to have your player stats and rankings recorded) or login as guest by leaving the fields empty.')"
POL_Wine "$SAVAGE_INSTALLER"

# Create shortcut to game.
#
POL_Shortcut "savage.exe" "$TITLE"

# Clean up and exit.
#
POL_System_TmpDelete

POL_SetupWindow_Close
exit

 

 

Screenshots

 

Media screen shots are located here:

  • http://savagexr.com/media.html

 

Icons and Install Resources

Hmmm, for some reason this editor is not allowing me to attach Icons & Resources, they appear in the Editor but once you've hit the Send button to submit the post they've gone.

Most of the icon sizes can be located on the media webpage here:

  • http://savagexr.com/media.html

 

 

left.png

 

top

 

savagexr-48x48.png

 

savagexr-22x22.png

 

 

 

Aangepast door sea-eye-aya

Tutul Dinsdag 23 October 2018 om 14:51
Tutul

Hi thanks for the script. Please can you respect the multi-langual support ?

You don't need to copy the installer into tmp dir, why are you doing it ?


Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
sea-eye-aya Dinsdag 23 October 2018 om 17:23
sea-eye-ayaAnonymous

Hi Tutul,

added multi-langual support, apologies for missing that out.

 

I use the mv command to rename the file as POL_Download does not give the option for a file name, it just uses the end of the url, which in this case is:

  • ?id=downloads&op=downloadFile&file=xr_setup-1.0-cl_win_prod.exe&mirrorid=2

Which by the time it get through to the Windows side contains illegal characters for Windows OS and so the file can't be found. So I just rename it back to its proper name:

  • xr_setup-1.0-cl_win_prod.exe
Tutul Woensdag 24 October 2018 om 18:04
Tutul

No I mean for local installer, why do you copy it ?


Gentils modérateur dans mes bon jours - Attention, à tenir hors de portée des enfants. En cas de contact, veuillez immédiatement rincer à l'eau clair. Peut provoquer des sueurs froide !
sea-eye-aya Woensdag 24 October 2018 om 20:06
sea-eye-ayaAnonymous

Hi Tutal,

the Local Installer just copies the Savage XR installer to the same location that the file would be downloaded to so that it can use the rest of the installation script without modification, it gets deleted automatically at the end.

The Local Installer is only meant for development purposes, as found on the PlayOnLinux wiki.

sea-eye-aya Maandag 29 October 2018 om 18:09
sea-eye-ayaAnonymous

Added Savage XR as (unapproved) Supported Software:

  * https://www.playonlinux.com/en/app-3397-Savage_XR.html