Jagged Alliance 2

Informations

Creator Message
lahtis

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 3840
Wine: 3.1

Feedbacks

Description

Manage a team of mercenaries to take back the control of a country.

Source code

#!/usr/bin/env playonlinux-bash
# Date : (2013-06-25 20:43)
# Last revision : (2018-02-11 00-34)
# Distribution used to test : Ubuntu Mate 16.04
# Author : lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Original 2 x CD version
# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/Jagged Alliance 2/
   
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
   
PREFIX="JaggedAlliance2"
WORKING_WINE_VERSION="3.1"
TITLE="Jagged Alliance 2"
EDITOR="Sir-Tech Software / Strategy First"        
GAME_URL="http://www.jaggedalliance.com/"
AUTHOR="lahtis"
   
# 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_SetupWindow_SetID 3107
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"
POL_System_TmpCreate "$PREFIX"
Set_OS win98
   
# Asking about memory size of graphic card
POL_SetupWindow_VMS "32"

# 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_cdrom
POL_SetupWindow_check_cdrom "Autorun.inf"

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

POL_Shortcut "ja2.exe" "$TITLE" "$TITLE.png"

# Download patch JA2-1.07. Game working (only) offical 1.07 patch.
# 107 patch found in http://kermi.pp.fi/JA_2/Patches/English/ address.
# this installer is only english version
# if you use other language version inform me about it, i can make better this script. 

cd "$POL_System_TmpDir"

POL_Download "http://kermi.pp.fi/JA_2/Patches/English/JA2-1.07.zip" 
POL_Wine_WaitExit "$TITLE"

# unzip file
unzip "JA2-1.07.zip" || POL_Debug_Error "Unable to extract JA2-1.07.zip"

POL_Wine_WaitBefore "$TITLE" 
POL_Wine start /unix "JA2_1.07.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while patching game.')"
POL_Wine_WaitExit "$TITLE"

   
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribute
Member Message
lahtis Saturday 10 February 2018 at 23:45
lahtis

Information

This update has been approved by the team.

Message

Finally working game.

  • Game working only offical 1.07 patch.
  • 107 patch only found in http://kermi.pp.fi/JA_2/Patches/English/ address.
  • this installer is only english version
  • if you use other language version inform me about it, i can make better this script.

 

Differences

@@ -0,0 +1,79 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2013-06-25 20:43)
+# Last revision : (2018-02-11 00-34)
+# Distribution used to test : Ubuntu Mate 16.04
+# Author : lahtis <lahtis@gmail.com>
+# Script licence : GPLv2
+# Original 2 x CD version
+# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
+# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/Jagged Alliance 2/
+   
+[ -z "$PLAYONLINUX" ] && exit
+source "$PLAYONLINUX/lib/sources"
+   
+PREFIX="JaggedAlliance2"
+WORKING_WINE_VERSION="3.1"
+TITLE="Jagged Alliance 2"
+EDITOR="Sir-Tech Software / Strategy First"        
+GAME_URL="http://www.jaggedalliance.com/"
+AUTHOR="lahtis"
+   
+# 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_SetupWindow_SetID 3107
+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"
+POL_System_TmpCreate "$PREFIX"
+Set_OS win98
+   
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS "32"
+
+# 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_cdrom
+POL_SetupWindow_check_cdrom "Autorun.inf"
+
+POL_Wine_WaitBefore "$TITLE" 
+POL_Wine start /unix "$CDROM/Install/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
+POL_Wine_WaitExit "$TITLE"
+
+POL_Shortcut "ja2.exe" "$TITLE" "$TITLE.png"
+
+# Download patch JA2-1.07. Game working (only) offical 1.07 patch.
+# 107 patch found in http://kermi.pp.fi/JA_2/Patches/English/ address.
+# this installer is only english version
+# if you use other language version inform me about it, i can make better this script. 
+
+cd "$POL_System_TmpDir"
+
+POL_Download "http://kermi.pp.fi/JA_2/Patches/English/JA2-1.07.zip" 
+POL_Wine_WaitExit "$TITLE"
+
+# unzip file
+unzip "JA2-1.07.zip" || POL_Debug_Error "Unable to extract JA2-1.07.zip"
+
+POL_Wine_WaitBefore "$TITLE" 
+POL_Wine start /unix "JA2_1.07.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while patching game.')"
+POL_Wine_WaitExit "$TITLE"
+
+   
+# Check Kernel ptrace
+if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
+        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
+        if [ "$PTRACE_CHECK" != 0 ]; then
+                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
+        fi
+fi
+
+POL_System_TmpDelete
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2013-06-25 20:43)
# Last revision : (2018-02-11 00-34)
# Distribution used to test : Ubuntu Mate 16.04
# Author : lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Original 2 x CD version
# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/Jagged Alliance 2/
   
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
   
PREFIX="JaggedAlliance2"
WORKING_WINE_VERSION="3.1"
TITLE="Jagged Alliance 2"
EDITOR="Sir-Tech Software / Strategy First"        
GAME_URL="http://www.jaggedalliance.com/"
AUTHOR="lahtis"
   
# 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_SetupWindow_SetID 3107
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"
POL_System_TmpCreate "$PREFIX"
Set_OS win98
   
# Asking about memory size of graphic card
POL_SetupWindow_VMS "32"

# 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_cdrom
POL_SetupWindow_check_cdrom "Autorun.inf"

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

POL_Shortcut "ja2.exe" "$TITLE" "$TITLE.png"

# Download patch JA2-1.07. Game working (only) offical 1.07 patch.
# 107 patch found in http://kermi.pp.fi/JA_2/Patches/English/ address.
# this installer is only english version
# if you use other language version inform me about it, i can make better this script. 

cd "$POL_System_TmpDir"

POL_Download "http://kermi.pp.fi/JA_2/Patches/English/JA2-1.07.zip" 
POL_Wine_WaitExit "$TITLE"

# unzip file
unzip "JA2-1.07.zip" || POL_Debug_Error "Unable to extract JA2-1.07.zip"

POL_Wine_WaitBefore "$TITLE" 
POL_Wine start /unix "JA2_1.07.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while patching game.')"
POL_Wine_WaitExit "$TITLE"

   
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi

POL_System_TmpDelete
POL_SetupWindow_Close
exit 0

Replies

Sunday 11 February 2018 at 10:25
Can you make a dropmenu to ask language ? and add other language ? it's not so hard to see what you need ;)
Sunday 11 February 2018 at 16:27
It can take a little more time. Whenever the update packages are always different. And they are badly packaged.
Sunday 11 February 2018 at 16:32
And next, you should know which patches work in a different language version. When there is a 1.07 package in English, but there is no German language. And so on.
lahtis Saturday 10 February 2018 at 19:48
lahtis

Warning

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

Differences

@@ -0,0 +1,59 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2013-06-25 20:43)
+# Last revision : (2018-02-09 17-57)
+# Distribution used to test : Ubuntu Mate 16.04
+# Author : lahtis <lahtis@gmail.com>
+# Script licence : GPLv2
+# Original 2 x CD version
+# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
+# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/Jagged Alliance 2/
+  
+[ -z "$PLAYONLINUX" ] && exit
+source "$PLAYONLINUX/lib/sources"
+  
+PREFIX="JaggedAlliance2origCD"
+WORKING_WINE_VERSION="3.1"
+TITLE="Jagged Alliance 2"
+EDITOR="Sir-Tech Software / Strategy First"         
+GAME_URL="http://www.jaggedalliance.com/"
+AUTHOR="lahtis"
+  
+# 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_SetupWindow_SetID 3107
+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"
+Set_OS winxp
+  
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS "32"
+Set_OS "winxp"
+  
+# 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 "Install/SETUP.EXE"
+POL_SetupWindow_cdrom
+  
+POL_Wine start /unix "$CDROM/Install/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
+POL_Wine_WaitBefore "$TITLE"
+  
+POL_Shortcut "ja2.exe" "$TITLE" "$TITLE.png"
+   
+# Check Kernel ptrace
+if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
+        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
+        if [ "$PTRACE_CHECK" != 0 ]; then
+                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
+        fi
+fi
+ 
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2013-06-25 20:43)
# Last revision : (2018-02-09 17-57)
# Distribution used to test : Ubuntu Mate 16.04
# Author : lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Original 2 x CD version
# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/Jagged Alliance 2/
  
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
  
PREFIX="JaggedAlliance2origCD"
WORKING_WINE_VERSION="3.1"
TITLE="Jagged Alliance 2"
EDITOR="Sir-Tech Software / Strategy First"         
GAME_URL="http://www.jaggedalliance.com/"
AUTHOR="lahtis"
  
# 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_SetupWindow_SetID 3107
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"
Set_OS winxp
  
# Asking about memory size of graphic card
POL_SetupWindow_VMS "32"
Set_OS "winxp"
  
# 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 "Install/SETUP.EXE"
POL_SetupWindow_cdrom
  
POL_Wine start /unix "$CDROM/Install/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
POL_Wine_WaitBefore "$TITLE"
  
POL_Shortcut "ja2.exe" "$TITLE" "$TITLE.png"
   
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi
 
POL_SetupWindow_Close
exit 0

Replies

lahtis Friday 9 February 2018 at 17:04
lahtis

Warning

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

Message

Original 2 x CD version Jagged Alliance 2

Differences

@@ -0,0 +1,59 @@
+#!/usr/bin/env playonlinux-bash
+# Date : (2013-06-25 20:43)
+# Last revision : (2018-02-09 17-57)
+# Distribution used to test : Ubuntu Mate 16.04
+# Author : lahtis <lahtis@gmail.com>
+# Script licence : GPLv2
+# Original 2 x CD version
+# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
+# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/Jagged Alliance 2/
+ 
+[ -z "$PLAYONLINUX" ] && exit
+source "$PLAYONLINUX/lib/sources"
+ 
+PREFIX="JaggedAlliance2origCD"
+WORKING_WINE_VERSION="3.1"
+TITLE="Jagged Alliance 2"
+EDITOR="Sir-Tech Software / Strategy First"          
+GAME_URL="http://www.jaggedalliance.com/"
+AUTHOR="lahtis"
+ 
+# 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_SetupWindow_SetID 3107
+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"
+Set_OS winxp
+ 
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS "32"
+Set_OS "winxp"
+ 
+# 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 "install/SETUP.EXE"
+POL_SetupWindow_cdrom
+ 
+POL_Wine start /unix "$CDROM/install/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
+POL_Wine_WaitBefore "$TITLE"
+ 
+POL_Shortcut "ja2.exe" "$TITLE" "$TITLE.png"
+  
+# Check Kernel ptrace
+if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
+        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
+        if [ "$PTRACE_CHECK" != 0 ]; then
+                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
+        fi
+fi
+
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

New source code

#!/usr/bin/env playonlinux-bash
# Date : (2013-06-25 20:43)
# Last revision : (2018-02-09 17-57)
# Distribution used to test : Ubuntu Mate 16.04
# Author : lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Original 2 x CD version
# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/working/Jagged Alliance 2/
 
[ -z "$PLAYONLINUX" ] && exit
source "$PLAYONLINUX/lib/sources"
 
PREFIX="JaggedAlliance2origCD"
WORKING_WINE_VERSION="3.1"
TITLE="Jagged Alliance 2"
EDITOR="Sir-Tech Software / Strategy First"          
GAME_URL="http://www.jaggedalliance.com/"
AUTHOR="lahtis"
 
# 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_SetupWindow_SetID 3107
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"
Set_OS winxp
 
# Asking about memory size of graphic card
POL_SetupWindow_VMS "32"
Set_OS "winxp"
 
# 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 "install/SETUP.EXE"
POL_SetupWindow_cdrom
 
POL_Wine start /unix "$CDROM/install/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
POL_Wine_WaitBefore "$TITLE"
 
POL_Shortcut "ja2.exe" "$TITLE" "$TITLE.png"
  
# Check Kernel ptrace
if [ -e "/proc/sys/kernel/yama/ptrace_scope" ]; then
        PTRACE_CHECK=`cat /proc/sys/kernel/yama/ptrace_scope`
        if [ "$PTRACE_CHECK" != 0 ]; then
                POL_Debug_message "$(eval_gettext 'If the game crashes at startup, open a terminal and type:\necho 0|sudo tee /proc/sys/kernel/yama/ptrace_scope')" "$TITLE"
        fi
fi

POL_SetupWindow_Close
exit 0

Replies

lahtis Thursday 19 January 2017 at 8:55
lahtis

Warning

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

Message

Making installer orginal Jagged Alliance 2 cd's. Game install fine, but game not working. Im add this script also here.

Differences

@@ -0,0 +1,57 @@
+#!/bin/bash
+# Date : (2013-06-25 20:43)
+# Last revision : (2017-01-19 07:06)
+# Wine version used : 2.0-rc5
+# Distribution used to test : Ubuntu Mate 16.04
+# Author : lahtis <lahtis@gmail.com>
+# Script licence : GPLv2
+# Program version : Retail original CD version
+# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
+# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/testing/ja2-original
+
+[ -z "$PLAYONLINUX" = "" ] && exit
+source "$PLAYONLINUX/lib/sources"
+
+PREFIX="ja2-original"
+WORKING_WINE_VERSION="2.0-rc5-staging"
+TITLE="Jagged Alliance 2"
+EDITOR="Sir-Tech Software / Strategy First"           
+GAME_URL="http://www.jaggedalliance.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"
+Set_OS winxp
+
+# Asking about memory size of graphic card
+POL_SetupWindow_VMS $GAME_VMS
+
+# Fix pulseaudio issue
+which pulseaudio && Set_OS "winxp"
+
+# 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 "install/SETUP.EXE"
+POL_SetupWindow_cdrom
+
+POL_Wine start /unix "$CDROM/install/SETUP.EXE" || POL_Debug_Fatal "$(eval_gettext 'Error while installing game.')"
+POL_Wine_WaitExit "$TITLE"
+
+POL_Shortcut "ja2.exe" "$TITLE" "$TITLE.png"
+ 
+POL_SetupWindow_message "$(eval_gettext '$TITLE has been successfully installed.')"
+ 
+POL_SetupWindow_Close
+ 
+exit 0

New source code

#!/bin/bash
# Date : (2013-06-25 20:43)
# Last revision : (2017-01-19 07:06)
# Wine version used : 2.0-rc5
# Distribution used to test : Ubuntu Mate 16.04
# Author : lahtis <lahtis@gmail.com>
# Script licence : GPLv2
# Program version : Retail original CD version
# Bug reports -> https://bugs.winehq.org/show_bug.cgi?id=34836
# Latest install script -> https://github.com/lahtis/playonlinux/blob/master/testing/ja2-original

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

PREFIX="ja2-original"
WORKING_WINE_VERSION="2.0-rc5-staging"
TITLE="Jagged Alliance 2"
EDITOR="Sir-Tech Software / Strategy First"           
GAME_URL="http://www.jaggedalliance.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"
Set_OS winxp

# Asking about memory size of graphic card
POL_SetupWindow_VMS $GAME_VMS

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

# 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 "install/SETUP.EXE"
POL_SetupWindow_cdrom

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

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

Replies

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmca-notice@playonlinux.com