GOG.com - Heroes of Might and Magic

Informations

Creator Message
norrec Anonymous

Warning

This installer has not been approved yet by the team.

Informations

Platforms:
Downloads: 0
Wine: System

Feedbacks

Description

The famous turn-based strategy game. 

Source code

                

Contributions

Filters:

Contribute
Member Message
norrec Thursday 14 February 2019 at 17:36
norrec Anonymous

Warning

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

Differences

@@ -0,0 +1,55 @@
+#!/bin/bash
+# Date : (2019-02-14 17-33)
+# Last revision : (2019-02-14 17-33)
+# Wine version used : 1.6.2-dos_support_0.6
+# Distribution used to test : OS X 10.14.2
+# Author : norrec
+# Script licence : GPL v.2
+# Program licence : Retail
+# Depend :
+
+[ -z "$PLAYONLINUX" ] && exit 0
+source "$PLAYONLINUX/lib/sources"
+
+GOGID="heroes_of_might_and_magic"
+PREFIX="HoMM_gog"
+# check with 1.8.6-dos_support
+WORKING_WINE_VERSION="1.6.2-dos_support_0.6"
+
+TITLE="GOG.com - Heroes of Might and Magic"
+SHORTCUT_NAME="Heroes of Might and Magic"
+
+# add setup images
+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 3455
+POL_Debug_Init
+
+POL_SetupWindow_presentation "$TITLE" "New World Computing Inc. / Ubisoft" "http://www.gog.com/game/$GOGID" "norrec" "$PREFIX"
+
+POL_Call POL_GoG_setup "$GOGID" "2cae1821085090e30e128cd0a76b0d21"
+
+POL_Wine_SelectPrefix "$PREFIX"
+POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
+
+POL_Call POL_GoG_install
+
+Set_OS winxp
+
+POL_Wine_reboot
+
+cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
+imgmount d "$WINEPREFIX/drive_c/GOG Games/HoMM/homm1.gog" -t iso -fs iso
+set dos4gvm=
+_EOFAE_
+ 
+# add shortcut image
+POL_Shortcut "HEROES.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
+
+POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/HoMM/manual.pdf"
+# C:\GOG Games\HoMM\reference_card.pdf
+
+POL_SetupWindow_Close
+
+exit 0

New source code

#!/bin/bash
# Date : (2019-02-14 17-33)
# Last revision : (2019-02-14 17-33)
# Wine version used : 1.6.2-dos_support_0.6
# Distribution used to test : OS X 10.14.2
# Author : norrec
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

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

GOGID="heroes_of_might_and_magic"
PREFIX="HoMM_gog"
# check with 1.8.6-dos_support
WORKING_WINE_VERSION="1.6.2-dos_support_0.6"

TITLE="GOG.com - Heroes of Might and Magic"
SHORTCUT_NAME="Heroes of Might and Magic"

# add setup images
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 3455
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "New World Computing Inc. / Ubisoft" "http://www.gog.com/game/$GOGID" "norrec" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" "2cae1821085090e30e128cd0a76b0d21"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

POL_Call POL_GoG_install

Set_OS winxp

POL_Wine_reboot

cat <<_EOFAE_ > "$WINEPREFIX/drive_c/autoexec.bat"
imgmount d "$WINEPREFIX/drive_c/GOG Games/HoMM/homm1.gog" -t iso -fs iso
set dos4gvm=
_EOFAE_
 
# add shortcut image
POL_Shortcut "HEROES.EXE" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"

POL_Shortcut_Document "$SHORTCUT_NAME" "$WINEPREFIX/drive_c/GOG Games/HoMM/manual.pdf"
# C:\GOG Games\HoMM\reference_card.pdf

POL_SetupWindow_Close

exit 0

Replies

Friday 15 February 2019 at 10:22
1.6.2-dos_support_0.6 seems a bit old
Anonymous
Saturday 16 February 2019 at 11:19
which version would you recommend?

checked with 1.8.6-dos_support, but it didn't run well and I didn't have time to go through all the settings to fix that.
Saturday 16 February 2019 at 20:06
4.0-dos_support if you can have it through POM 4.x