Majesty 2: The Fantasy Kingdom Sim

Informations

Créateur Messages
Dadu042
Modérateur

Attention

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

Informations

Plate-formes :
Téléchargements : 752
Wine:

Retours d'expérience

Description

RTS Game, 2009.

Wikipedia page.

Code source

#!/bin/bash
# Date : (2016-01-21)
# Last revision : (2017-05-08)
# Wine version used : 2.0.1
# Distribution used to test : Ubuntu 17.04 x64
# Author : LinuxScripter
# Licence : GPLv3
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Majesty 2"
AUTHOR="LinuxScripter"
PREFIX="Majesty2"
EDITOR="Paradox Interactive"
GAME_URL="http://www.majesty2.com/"
WORKINGWINEVERSION="2.22"

POL_SetupWindow_SetID 3519

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

POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
  
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_d3dx9
  
POL_SetupWindow_InstallMethod "DVD,STEAM"
  
if [ "$INSTALL_METHOD" == "DVD" ]; then
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "0x0409.ini"
POL_Wine start /unix "$CDROM/setup.exe"
POL_Wine_WaitExit "$TITLE"
else
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/25980
POL_Wine_WaitBefore "$TITLE"
fi
  
# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/25980"
else
        POL_Shortcut "Majesty2.exe" "$TITLE" "" "" "Game;StrategyGame;"
fi
  
POL_SetupWindow_Close
exit 0

Contributions

Filters:

Contribuer
Membre Messages
Dadu042 Lundi 3 Février 2020 à 22:15
Dadu042
Modérateur

Information

Cette mise à jour a été acceptée par l'équipe

Differences

@@ -14,7 +14,7 @@
 PREFIX="Majesty2"
 EDITOR="Paradox Interactive"
 GAME_URL="http://www.majesty2.com/"
-WORKINGWINEVERSION="2.0.1"
+WORKINGWINEVERSION="2.22"
 
 POL_SetupWindow_SetID 3519
 
@@ -22,7 +22,9 @@
 POL_Debug_Init
   
 POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
-  
+
+POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+
 # Setting prefix path
 POL_Wine_SelectPrefix "$PREFIX"
   
@@ -52,7 +54,7 @@
 if [ "$INSTALL_METHOD" == "STEAM" ]; then
         POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/25980"
 else
-        POL_Shortcut "Majesty2.exe" "$TITLE" "" "Game;StrategyGame;"
+        POL_Shortcut "Majesty2.exe" "$TITLE" "" "" "Game;StrategyGame;"
 fi
   
 POL_SetupWindow_Close

Nouveau code source

#!/bin/bash
# Date : (2016-01-21)
# Last revision : (2017-05-08)
# Wine version used : 2.0.1
# Distribution used to test : Ubuntu 17.04 x64
# Author : LinuxScripter
# Licence : GPLv3
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Majesty 2"
AUTHOR="LinuxScripter"
PREFIX="Majesty2"
EDITOR="Paradox Interactive"
GAME_URL="http://www.majesty2.com/"
WORKINGWINEVERSION="2.22"

POL_SetupWindow_SetID 3519

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

POL_RequiredVersion "4.0.0" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"

# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
  
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_d3dx9
  
POL_SetupWindow_InstallMethod "DVD,STEAM"
  
if [ "$INSTALL_METHOD" == "DVD" ]; then
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "0x0409.ini"
POL_Wine start /unix "$CDROM/setup.exe"
POL_Wine_WaitExit "$TITLE"
else
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/25980
POL_Wine_WaitBefore "$TITLE"
fi
  
# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/25980"
else
        POL_Shortcut "Majesty2.exe" "$TITLE" "" "" "Game;StrategyGame;"
fi
  
POL_SetupWindow_Close
exit 0

Réponses

Dadu042 Lundi 20 Mai 2019 à 22:01
Dadu042
Modérateur

Warning

Cette mise à jour n'a pas été approuvée par l'équipe.
Utilisez-la à vos risques et périls

Messages

Copied from the forum.

Differences

@@ -0,0 +1,59 @@
+#!/bin/bash
+# Date : (2016-01-21)
+# Last revision : (2017-05-08)
+# Wine version used : 2.0.1
+# Distribution used to test : Ubuntu 17.04 x64
+# Author : LinuxScripter
+# Licence : GPLv3
+  
+[ "$PLAYONLINUX" = "" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+  
+TITLE="Majesty 2"
+AUTHOR="LinuxScripter"
+PREFIX="Majesty2"
+EDITOR="Paradox Interactive"
+GAME_URL="http://www.majesty2.com/"
+WORKINGWINEVERSION="2.0.1"
+
+POL_SetupWindow_SetID 3519
+
+POL_SetupWindow_Init
+POL_Debug_Init
+  
+POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
+  
+# Setting prefix path
+POL_Wine_SelectPrefix "$PREFIX"
+  
+# Downloading wine if necessary and creating prefix
+POL_System_SetArch "x86"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+  
+POL_Call POL_Install_vcrun2005
+POL_Call POL_Install_d3dx9
+  
+POL_SetupWindow_InstallMethod "DVD,STEAM"
+  
+if [ "$INSTALL_METHOD" == "DVD" ]; then
+# Asking for CDROM and checking if it's correct one
+POL_SetupWindow_cdrom
+POL_SetupWindow_check_cdrom "0x0409.ini"
+POL_Wine start /unix "$CDROM/setup.exe"
+POL_Wine_WaitExit "$TITLE"
+else
+POL_Call POL_Install_steam
+cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
+POL_Wine "steam.exe" steam://install/25980
+POL_Wine_WaitBefore "$TITLE"
+fi
+  
+# Making shortcut
+if [ "$INSTALL_METHOD" == "STEAM" ]; then
+        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/25980"
+else
+        POL_Shortcut "Majesty2.exe" "$TITLE" "" "Game;StrategyGame;"
+fi
+  
+POL_SetupWindow_Close
+exit 0
\ No newline at end of file

Nouveau code source

#!/bin/bash
# Date : (2016-01-21)
# Last revision : (2017-05-08)
# Wine version used : 2.0.1
# Distribution used to test : Ubuntu 17.04 x64
# Author : LinuxScripter
# Licence : GPLv3
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Majesty 2"
AUTHOR="LinuxScripter"
PREFIX="Majesty2"
EDITOR="Paradox Interactive"
GAME_URL="http://www.majesty2.com/"
WORKINGWINEVERSION="2.0.1"

POL_SetupWindow_SetID 3519

POL_SetupWindow_Init
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
  
# Setting prefix path
POL_Wine_SelectPrefix "$PREFIX"
  
# Downloading wine if necessary and creating prefix
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
  
POL_Call POL_Install_vcrun2005
POL_Call POL_Install_d3dx9
  
POL_SetupWindow_InstallMethod "DVD,STEAM"
  
if [ "$INSTALL_METHOD" == "DVD" ]; then
# Asking for CDROM and checking if it's correct one
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "0x0409.ini"
POL_Wine start /unix "$CDROM/setup.exe"
POL_Wine_WaitExit "$TITLE"
else
POL_Call POL_Install_steam
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/Steam"
POL_Wine "steam.exe" steam://install/25980
POL_Wine_WaitBefore "$TITLE"
fi
  
# Making shortcut
if [ "$INSTALL_METHOD" == "STEAM" ]; then
        POL_Shortcut "steam.exe" "$TITLE" "" "steam://rungameid/25980"
else
        POL_Shortcut "Majesty2.exe" "$TITLE" "" "Game;StrategyGame;"
fi
  
POL_SetupWindow_Close
exit 0

Réponses

Edité par Dadu042