Savage XR

Informations

Creator Message
sea-eye-aya Anonymous

Warning

This installer is a beta script. It means that it might not work as expected

Informations

Platforms:
Downloads: 431
Wine: 3.21

Feedbacks

Description

Multiplayer RTS/FPS shooter/fighter, medieval. Details.

Savage XR (2009), is the successor of the 2003 award winning PC game Savage: The Battle for Newerth (Wikipedia).

NOTE: this game has a native Linux client ! (2019).

Screenshots

Miniature

Source code

#!/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 : see changelog
# Wine version used : 3.21
# Distribution used to test : Xubuntu 18.04
# Game used to test : v1.4 (once patched after first start)
# Author : sea-eye-aya
#
# Tabs (not spaces), UTF-8, Unix line encoding.

# CHANGELOG
# [Dadu042] (2019-05-30 15-20)
#   Wine 3.18 -> 3.21  Minor changes. Standardize.
# [sea-eye-aya] (2018-10-19 12-00)
#   Updates.
# [sea-eye-aya] (2018-10-19 12-00)
#   First script version.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Savage XR"
PREFIX="SavageXR"
EDITOR="Newerth"
GAME_URL="http://www.newerth.com"
AUTHOR="sea-eye-aya"
WORKING_WINE_VERSION="3.21"
 
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$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 environment.
#
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_SetArch "x86"
Set_OS "win7"
 
# Run SavageXR installer.
#
POL_Wine_WaitBefore "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Before 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" "Game;"
POL_Shortcut_Document "$TITLE" "SavageXR_Guide.pdf"

# Clean up and exit.
#
POL_System_TmpDelete
 
POL_SetupWindow_Close
exit

Contributions

Filters:

Contribute
Member Message
Dadu042 Thursday 30 May 2019 at 14:49
Dadu042
Moderator

Information

This update has been approved by the team.

Message

See changelog.
Script tested and approved.
 

Differences

@@ -14,8 +14,8 @@
 # Tabs (not spaces), UTF-8, Unix line encoding.
 
 # CHANGELOG
-# [Dadu042] (2019-05-30)
-#   Wine 3.18 -> 3.21  Minor changes.
+# [Dadu042] (2019-05-30 15-20)
+#   Wine 3.18 -> 3.21  Minor changes. Standardize.
 # [sea-eye-aya] (2018-10-19 12-00)
 #   Updates.
 # [sea-eye-aya] (2018-10-19 12-00)
@@ -23,14 +23,18 @@
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
- 
+
 TITLE="Savage XR"
 PREFIX="SavageXR"
+EDITOR="Newerth"
+GAME_URL="http://www.newerth.com"
+AUTHOR="sea-eye-aya"
+WORKING_WINE_VERSION="3.21"
  
 POL_SetupWindow_Init
 POL_Debug_Init
-POL_SetupWindow_presentation "$TITLE" "Newerth" "http://www.newerth.com" "sea-eye-aya" "$PREFIX"
- 
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+
 POL_System_TmpCreate "Tmp$PREFIX"
 cd "$POL_System_TmpDir" || exit 1
  
@@ -58,7 +62,7 @@
 # Set WINE environment.
 #
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "3.21"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 POL_System_SetArch "x86"
 Set_OS "win7"
  
@@ -71,7 +75,8 @@
 # Create shortcut to game.
 #
 POL_Shortcut "savage.exe" "$TITLE" "Game;"
- 
+POL_Shortcut_Document "$TITLE" "SavageXR_Guide.pdf"
+
 # Clean up and exit.
 #
 POL_System_TmpDelete

New source code

#!/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 : see changelog
# Wine version used : 3.21
# Distribution used to test : Xubuntu 18.04
# Game used to test : v1.4 (once patched after first start)
# Author : sea-eye-aya
#
# Tabs (not spaces), UTF-8, Unix line encoding.

# CHANGELOG
# [Dadu042] (2019-05-30 15-20)
#   Wine 3.18 -> 3.21  Minor changes. Standardize.
# [sea-eye-aya] (2018-10-19 12-00)
#   Updates.
# [sea-eye-aya] (2018-10-19 12-00)
#   First script version.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

TITLE="Savage XR"
PREFIX="SavageXR"
EDITOR="Newerth"
GAME_URL="http://www.newerth.com"
AUTHOR="sea-eye-aya"
WORKING_WINE_VERSION="3.21"
 
POL_SetupWindow_Init
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$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 environment.
#
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_System_SetArch "x86"
Set_OS "win7"
 
# Run SavageXR installer.
#
POL_Wine_WaitBefore "$TITLE"
POL_SetupWindow_message "$(eval_gettext 'Before 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" "Game;"
POL_Shortcut_Document "$TITLE" "SavageXR_Guide.pdf"

# Clean up and exit.
#
POL_System_TmpDelete
 
POL_SetupWindow_Close
exit

Replies

Edited by Dadu042

sea-eye-aya Sunday 28 October 2018 at 13:26
sea-eye-aya Anonymous

Warning

This update has not been approved yet by the team.
Use it at your own risk

Differences

@@ -0,0 +1,71 @@
+#!/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

New source code

#!/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

Replies

Friday 2 November 2018 at 14:14
I'll check your script during the week-end. I still thing that's really not required to copy the installer to /tmp and you should probably don't use it. You don't need to change the all script for that to wrok