Total Annihilation

Informations

Creator Message
bastien09

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 15227
Wine: 3.0.3

Feedbacks

Description

Type : RTS
Lan : -
Online : -
Company : GT Interactive Software
Compatibility : -/5

Source code

#!/bin/bash
# Date : (2017-01-20 08:01)
# Last revision : see changelog
# Wine version used : 2.22
# Distribution used to test : Ubuntu Mate 16.04 LTS, 32-bit
# Author : bastien09, NSLW, lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Program version : Retail original 2 CD box
# Bug reports ->
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/TotalAnnihilation
#
# CHANGELOG
# [bastien09, NSLW] (2017-01-20 08:01)
#   First script.
# [lahtis] (2017-01-20 ?)
#   Fixes.
# [Dadu042] (2019-12-30)
#   Wine POL 2.0-rc5 -> 2.22
# [Dadu042] (2020-03-29)
#   Wine 3.0.3 (for OSX and Linux)
#

[ -z "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
PREFIX="TotalAnnihilation"

TITLE="Total Annihilation"
EDITOR="Cavedog Entertainment / GT Interactive"          
GAME_URL="http://files.tauniverse.com/"
AUTHOR="lahtis"
GAME_VMS="32"
WORKING_WINE_VERSION="3.0.3"
 
# Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
POL_SetupWindow_Init
POL_Debug_Init
  
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win95"
 
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive')" "$TITLE"
POL_SetupWindow_check_cdrom "SETUP.EXE"
POL_SetupWindow_cdrom
 
POL_Wine start /unix "$CDROM/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png" "" "Game;"
  
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
  
POL_SetupWindow_Close
  
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 29 March 2020 at 0:10
Dadu042

Information

This update has been approved by the team.

Differences

@@ -16,21 +16,21 @@
 #   Fixes.
 # [Dadu042] (2019-12-30)
 #   Wine POL 2.0-rc5 -> 2.22
+# [Dadu042] (2020-03-29)
+#   Wine 3.0.3 (for OSX and Linux)
 #
 
 [ -z "$PLAYONLINUX" = "" ] && exit
 source "$PLAYONLINUX/lib/sources"
  
 PREFIX="TotalAnnihilation"
- 
-# FIXME!
-[ "$POL_OS" = "Mac" ] WORKING_WINE_VERSION="1.2.3" || WORKING_WINE_VERSION="2.22"
- 
+
 TITLE="Total Annihilation"
 EDITOR="Cavedog Entertainment / GT Interactive"          
 GAME_URL="http://files.tauniverse.com/"
 AUTHOR="lahtis"
 GAME_VMS="32"
+WORKING_WINE_VERSION="3.0.3"
  
 # Initialization
 POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

New source code

#!/bin/bash
# Date : (2017-01-20 08:01)
# Last revision : see changelog
# Wine version used : 2.22
# Distribution used to test : Ubuntu Mate 16.04 LTS, 32-bit
# Author : bastien09, NSLW, lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Program version : Retail original 2 CD box
# Bug reports ->
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/TotalAnnihilation
#
# CHANGELOG
# [bastien09, NSLW] (2017-01-20 08:01)
#   First script.
# [lahtis] (2017-01-20 ?)
#   Fixes.
# [Dadu042] (2019-12-30)
#   Wine POL 2.0-rc5 -> 2.22
# [Dadu042] (2020-03-29)
#   Wine 3.0.3 (for OSX and Linux)
#

[ -z "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
PREFIX="TotalAnnihilation"

TITLE="Total Annihilation"
EDITOR="Cavedog Entertainment / GT Interactive"          
GAME_URL="http://files.tauniverse.com/"
AUTHOR="lahtis"
GAME_VMS="32"
WORKING_WINE_VERSION="3.0.3"
 
# Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
POL_SetupWindow_Init
POL_Debug_Init
  
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win95"
 
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive')" "$TITLE"
POL_SetupWindow_check_cdrom "SETUP.EXE"
POL_SetupWindow_cdrom
 
POL_Wine start /unix "$CDROM/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png" "" "Game;"
  
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
  
POL_SetupWindow_Close
  
exit 0

Replies

Dadu042 Tuesday 31 December 2019 at 14:19
Dadu042

Warning

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

Differences

@@ -1,21 +1,30 @@
 #!/bin/bash
 # Date : (2017-01-20 08:01)
-# Last revision : (2017-01-20 08:01)
-# Wine version used : 2.0-rc5-staging
+# Last revision : see changelog
+# Wine version used : 2.22
 # Distribution used to test : Ubuntu Mate 16.04 LTS, 32-bit
 # Author : bastien09, NSLW, lahtis <lahtis@gmail.com>
 # Script licence : GPLv2
 # Program version : Retail original 2 CD box
 # Bug reports ->
 # Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/TotalAnnihilation
- 
+#
+# CHANGELOG
+# [bastien09, NSLW] (2017-01-20 08:01)
+#   First script.
+# [lahtis] (2017-01-20 ?)
+#   Fixes.
+# [Dadu042] (2019-12-30)
+#   Wine POL 2.0-rc5 -> 2.22
+#
+
 [ -z "$PLAYONLINUX" = "" ] && exit
 source "$PLAYONLINUX/lib/sources"
  
 PREFIX="TotalAnnihilation"
  
 # FIXME!
-[ "$POL_OS" = "Mac" ] WORKING_WINE_VERSION="1.2.3" || WORKING_WINE_VERSION="2.0-rc5-staging"
+[ "$POL_OS" = "Mac" ] WORKING_WINE_VERSION="1.2.3" || WORKING_WINE_VERSION="2.22"
  
 TITLE="Total Annihilation"
 EDITOR="Cavedog Entertainment / GT Interactive"          
@@ -50,7 +59,7 @@
 POL_Wine start /unix "$CDROM/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
 POL_Wine_WaitExit "$TITLE"
  
-POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png"
+POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png" "" "Game;"
   
 POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
   

New source code

#!/bin/bash
# Date : (2017-01-20 08:01)
# Last revision : see changelog
# Wine version used : 2.22
# Distribution used to test : Ubuntu Mate 16.04 LTS, 32-bit
# Author : bastien09, NSLW, lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Program version : Retail original 2 CD box
# Bug reports ->
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/TotalAnnihilation
#
# CHANGELOG
# [bastien09, NSLW] (2017-01-20 08:01)
#   First script.
# [lahtis] (2017-01-20 ?)
#   Fixes.
# [Dadu042] (2019-12-30)
#   Wine POL 2.0-rc5 -> 2.22
#

[ -z "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
PREFIX="TotalAnnihilation"
 
# FIXME!
[ "$POL_OS" = "Mac" ] WORKING_WINE_VERSION="1.2.3" || WORKING_WINE_VERSION="2.22"
 
TITLE="Total Annihilation"
EDITOR="Cavedog Entertainment / GT Interactive"          
GAME_URL="http://files.tauniverse.com/"
AUTHOR="lahtis"
GAME_VMS="32"
 
# Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
POL_SetupWindow_Init
POL_Debug_Init
  
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win95"
 
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive')" "$TITLE"
POL_SetupWindow_check_cdrom "SETUP.EXE"
POL_SetupWindow_cdrom
 
POL_Wine start /unix "$CDROM/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png" "" "Game;"
  
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
  
POL_SetupWindow_Close
  
exit 0

Replies

Edited by Dadu042

lahtis Sunday 22 January 2017 at 14:27
lahtis

Warning

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

Message

fixed version.

Differences

@@ -1,57 +1,59 @@
 #!/bin/bash
-# Date : (????-??-?? ??-??)
-# Last revision : (2010-05-23 10-00)
-# Wine version used : -
-# Distribution used to test : -
-# Author : bastien09 (last changes by NSLW)
-# Licence : Retail
-# Depend : -
+# Date : (2017-01-20 08:01)
+# Last revision : (2017-01-20 08:01)
+# Wine version used : 2.0-rc5-staging
+# Distribution used to test : Ubuntu Mate 16.04 LTS, 32-bit
+# Author : bastien09, NSLW, lahtis <lahtis@gmail.com>
+# Script licence : GPLv2
+# Program version : Retail original 2 CD box
+# Bug reports ->
+# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/TotalAnnihilation
  
-[ "$PLAYONLINUX" = "" ] && exit 0
+[ -z "$PLAYONLINUX" = "" ] && exit
 source "$PLAYONLINUX/lib/sources"
-
-TITLE="Total Annihilation"
+ 
 PREFIX="TotalAnnihilation"
-
+ 
 # FIXME!
-[ "$POL_OS" = "Mac" ] WORKINGWINEVERSION="1.2.3" || WORKINGWINEVERSION="1.1.44"
-
-#starting the script
-wget http://upload.wikimedia.org/wikipedia/en/6/6c/Total_Annihilation_Coverart.png --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
-convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
-POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
- 
-POL_SetupWindow_presentation "$TITLE" "GT Interactive Software" "N/A" "bastien09" "$PREFIX"
-
-#asking for CDROM and checking if it's correct one
-POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
-cd "$CDROM"
-CHECK=$(find . -iwholename ./SETUP.EXE | cut -d'/' -f2)
-POL_SetupWindow_check_cdrom "$CHECK"
- 
-select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
-
-#downloading specific Wine
-POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
-Use_WineVersion "$WORKINGWINEVERSION"
-
-#creating application's own prefix
-POL_SetupWindow_prefixcreate 
- 
-#fetching PROGRAMFILES environmental variable
-PROGRAMFILES="Program Files"
-POL_LoadVar_PROGRAMFILES
-
-Set_OS "win98"
-#starting installation
-POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
-wine "$CDROM/$CHECK"
-POL_SetupWindow_detect_exit
-
-#making shortcut
-POL_SetupWindow_make_shortcut "$PREFIX" "CAVEDOG/TOTALA" "totala.exe" "" "$TITLE"
-Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"
-
-POL_SetupWindow_message "$TITLE has been installed successfully." "$TITLE"
+[ "$POL_OS" = "Mac" ] WORKING_WINE_VERSION="1.2.3" || WORKING_WINE_VERSION="2.0-rc5-staging"
+ 
+TITLE="Total Annihilation"
+EDITOR="Cavedog Entertainment / GT Interactive"          
+GAME_URL="http://files.tauniverse.com/"
+AUTHOR="lahtis"
+GAME_VMS="32"
+ 
+# Initialization
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
+ 
+POL_SetupWindow_Init
+POL_Debug_Init
+  
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+ 
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+ 
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+ 
+# Fix pulseaudio issue
+which pulseaudio && Set_OS "win95"
+ 
+# Asking for CDROM and checking if it's correct one
+POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive')" "$TITLE"
+POL_SetupWindow_check_cdrom "SETUP.EXE"
+POL_SetupWindow_cdrom
+ 
+POL_Wine start /unix "$CDROM/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
+POL_Wine_WaitExit "$TITLE"
+ 
+POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png"
+  
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
+  
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+  
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2017-01-20 08:01)
# Last revision : (2017-01-20 08:01)
# Wine version used : 2.0-rc5-staging
# Distribution used to test : Ubuntu Mate 16.04 LTS, 32-bit
# Author : bastien09, NSLW, lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Program version : Retail original 2 CD box
# Bug reports ->
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/TotalAnnihilation
 
[ -z "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
PREFIX="TotalAnnihilation"
 
# FIXME!
[ "$POL_OS" = "Mac" ] WORKING_WINE_VERSION="1.2.3" || WORKING_WINE_VERSION="2.0-rc5-staging"
 
TITLE="Total Annihilation"
EDITOR="Cavedog Entertainment / GT Interactive"          
GAME_URL="http://files.tauniverse.com/"
AUTHOR="lahtis"
GAME_VMS="32"
 
# Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
POL_SetupWindow_Init
POL_Debug_Init
  
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS
 
# Fix pulseaudio issue
which pulseaudio && Set_OS "win95"
 
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive')" "$TITLE"
POL_SetupWindow_check_cdrom "SETUP.EXE"
POL_SetupWindow_cdrom
 
POL_Wine start /unix "$CDROM/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
POL_Wine_WaitExit "$TITLE"
 
POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png"
  
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
  
POL_SetupWindow_Close
  
exit 0

Replies

lahtis Friday 20 January 2017 at 7:30
lahtis

Warning

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

Differences

@@ -1,57 +1,59 @@
 #!/bin/bash
-# Date : (????-??-?? ??-??)
-# Last revision : (2010-05-23 10-00)
-# Wine version used : -
-# Distribution used to test : -
-# Author : bastien09 (last changes by NSLW)
-# Licence : Retail
-# Depend : -
- 
-[ "$PLAYONLINUX" = "" ] && exit 0
+# Date : (2017-01-20 08:01)
+# Last revision : (2017-01-20 08:01)
+# Wine version used : 2.0-rc5-staging
+# Distribution used to test : Ubuntu Mate 16.04 LTS, 32-bit
+# Author :bastien09, NSLW, lahtis <lahtis@gmail.com>
+# Script licence : GPLv2
+# Program version : Retail original 2 CD box
+# Bug reports -> 
+# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/testing/TotalAnnihilation
+
+[ -z "$PLAYONLINUX" = "" ] && exit
 source "$PLAYONLINUX/lib/sources"
 
-TITLE="Total Annihilation"
 PREFIX="TotalAnnihilation"
 
 # FIXME!
-[ "$POL_OS" = "Mac" ] WORKINGWINEVERSION="1.2.3" || WORKINGWINEVERSION="1.1.44"
+[ "$POL_OS" = "Mac" ] WORKINGWINEVERSION="1.2.3" || WORKINGWINEVERSION="2.0-rc5-staging"
 
-#starting the script
-wget http://upload.wikimedia.org/wikipedia/en/6/6c/Total_Annihilation_Coverart.png --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
-convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\! "$REPERTOIRE/tmp/left.jpeg"
-POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
- 
-POL_SetupWindow_presentation "$TITLE" "GT Interactive Software" "N/A" "bastien09" "$PREFIX"
+TITLE="Total Annihilation"
+EDITOR="Cavedog Entertainment / GT Interactive"           
+GAME_URL="http://files.tauniverse.com/"
+AUTHOR="lahtis"
+GAME_VMS="32"
+
+# Initialization
+POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"
 
-#asking for CDROM and checking if it's correct one
-POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
-cd "$CDROM"
-CHECK=$(find . -iwholename ./SETUP.EXE | cut -d'/' -f2)
-POL_SetupWindow_check_cdrom "$CHECK"
+POL_SetupWindow_Init
+POL_Debug_Init
  
-select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
+# Presentation
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
-#downloading specific Wine
-POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
-Use_WineVersion "$WORKINGWINEVERSION"
+# Create Prefix
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
-#creating application's own prefix
-POL_SetupWindow_prefixcreate 
- 
-#fetching PROGRAMFILES environmental variable
-PROGRAMFILES="Program Files"
-POL_LoadVar_PROGRAMFILES
-
-Set_OS "win98"
-#starting installation
-POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
-wine "$CDROM/$CHECK"
-POL_SetupWindow_detect_exit
-
-#making shortcut
-POL_SetupWindow_make_shortcut "$PREFIX" "CAVEDOG/TOTALA" "totala.exe" "" "$TITLE"
-Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
 
-POL_SetupWindow_message "$TITLE has been installed successfully." "$TITLE"
+# Fix pulseaudio issue
+which pulseaudio && Set_OS "win95"
+
+# Asking for CDROM and checking if it's correct one
+POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive')" "$TITLE"
+POL_SetupWindow_check_cdrom "SETUP.EXE"
+POL_SetupWindow_cdrom
+
+POL_Wine start /unix "$CDROM/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
+POL_Wine_WaitExit "$TITLE"
+
+POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png"
+ 
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
+ 
 POL_SetupWindow_Close
-exit
\ No newline at end of file
+ 
+exit 0

New source code

#!/bin/bash
# Date : (2017-01-20 08:01)
# Last revision : (2017-01-20 08:01)
# Wine version used : 2.0-rc5-staging
# Distribution used to test : Ubuntu Mate 16.04 LTS, 32-bit
# Author :bastien09, NSLW, lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Program version : Retail original 2 CD box
# Bug reports -> 
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/testing/TotalAnnihilation

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

PREFIX="TotalAnnihilation"

# FIXME!
[ "$POL_OS" = "Mac" ] WORKINGWINEVERSION="1.2.3" || WORKINGWINEVERSION="2.0-rc5-staging"

TITLE="Total Annihilation"
EDITOR="Cavedog Entertainment / GT Interactive"           
GAME_URL="http://files.tauniverse.com/"
AUTHOR="lahtis"
GAME_VMS="32"

# Initialization
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/$PREFIX/top.jpg" "http://files.playonlinux.com/resources/setups/$PREFIX/left.jpg" "$TITLE"

POL_SetupWindow_Init
POL_Debug_Init
 
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

# Fix pulseaudio issue
which pulseaudio && Set_OS "win95"

# Asking for CDROM and checking if it's correct one
POL_SetupWindow_message "$(eval_gettext 'Please insert the game media into your disk drive')" "$TITLE"
POL_SetupWindow_check_cdrom "SETUP.EXE"
POL_SetupWindow_cdrom

POL_Wine start /unix "$CDROM/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
POL_Wine_WaitExit "$TITLE"

POL_Shortcut "totala.exe" "$TITLE" "$TITLE.png"
 
POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
 
POL_SetupWindow_Close
 
exit 0

Replies

Friday 20 January 2017 at 7:47
WORKINGWINEVERSION -> WORKING_WINE_VERSION
amarsianin Friday 30 September 2016 at 8:14
amarsianin Anonymous

Message

Simply doesn't work. Always says "Unable to find the CD-ROM" even if you mount everything correctly and specify the path.

 

Any ideas?

Replies

Friday 20 January 2017 at 7:27
Refresh and try again. The second time, the disc began to work.