Medieval II Total War

Informations

Creator Message
ThanosApostolou

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 1149
Wine: 1.9.24

Feedbacks

Description

Medieval II Total War is the 4th game of the series Total War, created by Creative Assembly. This script installs Medieval II from a cd or a mounted image. This is for the NON-STEAM version!

Source code

#!/bin/bash
# Date :  2016-12-04 20:00
# Last revision :
# Wine version used : 1.9.24
# Distributions used to test : manjaro x64
# Author : ThanosApostolou
# Depend :
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Medieval II Total War"
PREFIX="Medieval II Total War"
 
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
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Creative Assembly" "https://www.totalwar.com/" "ThanosAPostolou" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.9.24"
 
# Libraries overrides:
POL_Wine_OverrideDLL "native,builtin" "msvcp71"
POL_Wine_OverrideDLL "native,builtin" "msvcr71"

 
# Choose mounted image:
POL_SetupWindow_message "$(eval_gettext 'Please insert $TITLE media into your disk drive.')"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

#starting installation:
POL_Wine_WaitBefore "$TITLE"
cd "$CDROM"
POL_Wine "setup.exe"
POL_Wine_WaitExit "$TITLE"

 
POL_SetupWindow_VMS "64"
POL_Wine_reboot
 
POL_Shortcut "medieval2.exe" "$TITLE" "$TITLE.png" ""
POL_SetupWindow_Close
 
exit 0 

Contributions

Filters:

Contribute
Member Message
ThanosApostolou Sunday 4 December 2016 at 19:00
ThanosApostolou

Information

This update has been approved by the team.

Message

I am not familiar with the playonlinux website so I didn't send the script. I post the images (lef.png, top.png, Medieval II Total War-48x48,  and the script as an update:
     

Differences

@@ -0,0 +1,47 @@
+#!/bin/bash
+# Date :  2016-12-04 20:00
+# Last revision :
+# Wine version used : 1.9.24
+# Distributions used to test : manjaro x64
+# Author : ThanosApostolou
+# Depend :
+ 
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+ 
+TITLE="Medieval II Total War"
+PREFIX="Medieval II Total War"
+ 
+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
+POL_Debug_Init
+ 
+POL_SetupWindow_presentation "$TITLE" "Creative Assembly" "https://www.totalwar.com/" "ThanosAPostolou" "$PREFIX"
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "1.9.24"
+ 
+# Libraries overrides:
+POL_Wine_OverrideDLL "native,builtin" "msvcp71"
+POL_Wine_OverrideDLL "native,builtin" "msvcr71"
+
+ 
+# Choose mounted image:
+POL_SetupWindow_message "$(eval_gettext 'Please insert $TITLE media into your disk drive.')"
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "setup.exe"
+
+#starting installation:
+POL_Wine_WaitBefore "$TITLE"
+cd "$CDROM"
+POL_Wine "setup.exe"
+POL_Wine_WaitExit "$TITLE"
+
+ 
+POL_SetupWindow_VMS "64"
+POL_Wine_reboot
+ 
+POL_Shortcut "medieval2.exe" "$TITLE" "$TITLE.png" ""
+POL_SetupWindow_Close
+ 
+exit 0 
\ No newline at end of file

New source code

#!/bin/bash
# Date :  2016-12-04 20:00
# Last revision :
# Wine version used : 1.9.24
# Distributions used to test : manjaro x64
# Author : ThanosApostolou
# Depend :
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Medieval II Total War"
PREFIX="Medieval II Total War"
 
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
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Creative Assembly" "https://www.totalwar.com/" "ThanosAPostolou" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.9.24"
 
# Libraries overrides:
POL_Wine_OverrideDLL "native,builtin" "msvcp71"
POL_Wine_OverrideDLL "native,builtin" "msvcr71"

 
# Choose mounted image:
POL_SetupWindow_message "$(eval_gettext 'Please insert $TITLE media into your disk drive.')"
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"

#starting installation:
POL_Wine_WaitBefore "$TITLE"
cd "$CDROM"
POL_Wine "setup.exe"
POL_Wine_WaitExit "$TITLE"

 
POL_SetupWindow_VMS "64"
POL_Wine_reboot
 
POL_Shortcut "medieval2.exe" "$TITLE" "$TITLE.png" ""
POL_SetupWindow_Close
 
exit 0 

Replies