GOG.com - Heroes of Might and Magic 3 Complete

Informations

Creator Message
petch
Developer

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 112688
Wine: 1.5.16

Feedbacks

Description

English: The famous turn-based strategy game.
(updated for GOG installer v2)

Français : Le célèbre jeu de stratégie par tours.
(mis à jour pour l'installeur GOG v2)

Relevant patch installers:
- Heroes of Might and Magic 3 HD mod

Screenshots

MiniatureMiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2012-12-23 16-55)
# Last revision : (2013-12-21 22-36)
# Wine version used : 1.5.16
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :

# Wine 1.5.16 + Set_Managed Off choice:
# http://www.playonlinux.com/en/topic-9996-HoMM3_HD_issue.html

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

GOGID="heroes_of_might_and_magic_3_complete_edition"
PREFIX="HoMM3_gog"
WORKING_WINE_VERSION="1.5.16"
[ "$POL_OS" = "Mac" ] && WORKING_WINE_VERSION="1.3.10"

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

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 1518
POL_Debug_Init

POL_SetupWindow_presentation "$TITLE" "New World Computing Inc. / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"

POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" 1 "263d58f8cc026dd861e9bbcadecba318"

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"

# fake sdbinst.exe
POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe" 

POL_Call POL_GoG_install /nogui


# GoG work!
Set_OS winxp

POL_SetupWindow_VMS "2"

# http://appdb.winehq.org/objectManager.php?sClass=version&iId=24425
Set_Managed "Off"

# Doesn't hurt ;)
POL_Wine_reboot

POL_Shortcut "Heroes3.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Heroes of Might and Magic 3 Complete/Heroes3_Manual.pdf"
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_AB_Manual.pdf
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_SoD_Manual.pdf
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_Tutorial.pdf
# C:\GOG Games\Heroes of Might and Magic 3\README.TXT
# C:\GOG Games\Heroes of Might and Magic 3\h3ccmped.exe
# C:\GOG Games\Heroes of Might and Magic 3\h3maped.exe

POL_SetupWindow_Close

exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Wednesday 12 June 2019 at 22:46
Dadu042
Moderator

Warning

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

Message

This script made to help 2019 users (see CHANGELOG).

Differences

@@ -1,57 +1,63 @@
 #!/bin/bash
 # Date : (2012-12-23 16-55)
-# Last revision : (2013-12-21 22-36)
+# Last revision : (2019-06-12 22-44)
 # Wine version used : 1.5.16
 # Distribution used to test : Debian Sid (Unstable)
 # Author : Pierre Etchemaite pe-pol@concept-micro.com
 # Script licence : GPL v.2
 # Program licence : Retail
 # Depend :
+#
+#
+# CHANGELOG: 
+#  2019-06-12 Dadu042
+#   Upgrade from Wine 1.5.16 to 1.9.24 on Linux, because the script crash with POL v4.x
+
 
 # Wine 1.5.16 + Set_Managed Off choice:
 # http://www.playonlinux.com/en/topic-9996-HoMM3_HD_issue.html
-
+ 
 [ -z "$PLAYONLINUX" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-
+ 
 GOGID="heroes_of_might_and_magic_3_complete_edition"
 PREFIX="HoMM3_gog"
-WORKING_WINE_VERSION="1.5.16"
+WORKING_WINE_VERSION="1.9.24"
 [ "$POL_OS" = "Mac" ] && WORKING_WINE_VERSION="1.3.10"
-
+ 
 TITLE="GOG.com - Heroes of Might and Magic 3 Complete"
 SHORTCUT_NAME="Heroes of Might and Magic 3 Complete"
-
+ 
 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 1518
 POL_Debug_Init
-
+ 
 POL_SetupWindow_presentation "$TITLE" "New World Computing Inc. / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
-
+ 
 POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" 1 "263d58f8cc026dd861e9bbcadecba318"
-
+ 
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
-
+ 
 # fake sdbinst.exe
-POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe" 
-
+POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe"
+ 
 POL_Call POL_GoG_install /nogui
-
-
+ 
+ 
 # GoG work!
 Set_OS winxp
-
+ 
 POL_SetupWindow_VMS "2"
-
+ 
 # http://appdb.winehq.org/objectManager.php?sClass=version&iId=24425
 Set_Managed "Off"
-
+ 
 # Doesn't hurt ;)
 POL_Wine_reboot
-
+ 
 POL_Shortcut "Heroes3.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
 POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Heroes of Might and Magic 3 Complete/Heroes3_Manual.pdf"
 # C:\GOG Games\Heroes of Might and Magic 3\Heroes3_AB_Manual.pdf
@@ -60,7 +66,7 @@
 # C:\GOG Games\Heroes of Might and Magic 3\README.TXT
 # C:\GOG Games\Heroes of Might and Magic 3\h3ccmped.exe
 # C:\GOG Games\Heroes of Might and Magic 3\h3maped.exe
-
+ 
 POL_SetupWindow_Close
-
-exit 0
+ 
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2012-12-23 16-55)
# Last revision : (2019-06-12 22-44)
# Wine version used : 1.5.16
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite pe-pol@concept-micro.com
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
#
#
# CHANGELOG: 
#  2019-06-12 Dadu042
#   Upgrade from Wine 1.5.16 to 1.9.24 on Linux, because the script crash with POL v4.x


# Wine 1.5.16 + Set_Managed Off choice:
# http://www.playonlinux.com/en/topic-9996-HoMM3_HD_issue.html
 
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
GOGID="heroes_of_might_and_magic_3_complete_edition"
PREFIX="HoMM3_gog"
WORKING_WINE_VERSION="1.9.24"
[ "$POL_OS" = "Mac" ] && WORKING_WINE_VERSION="1.3.10"
 
TITLE="GOG.com - Heroes of Might and Magic 3 Complete"
SHORTCUT_NAME="Heroes of Might and Magic 3 Complete"
 
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 1518
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "New World Computing Inc. / Ubisoft" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
 
POL_Call POL_GoG_setup "$GOGID" --alternate "setup_$GOGID" 1 "263d58f8cc026dd861e9bbcadecba318"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
 
# fake sdbinst.exe
POL_Call POL_Install_nop "$WINEPREFIX/drive_c/windows/system32/sdbinst.exe"
 
POL_Call POL_GoG_install /nogui
 
 
# GoG work!
Set_OS winxp
 
POL_SetupWindow_VMS "2"
 
# http://appdb.winehq.org/objectManager.php?sClass=version&iId=24425
Set_Managed "Off"
 
# Doesn't hurt ;)
POL_Wine_reboot
 
POL_Shortcut "Heroes3.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Heroes of Might and Magic 3 Complete/Heroes3_Manual.pdf"
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_AB_Manual.pdf
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_SoD_Manual.pdf
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_Tutorial.pdf
# C:\GOG Games\Heroes of Might and Magic 3\README.TXT
# C:\GOG Games\Heroes of Might and Magic 3\h3ccmped.exe
# C:\GOG Games\Heroes of Might and Magic 3\h3maped.exe
 
POL_SetupWindow_Close
 
exit 0

Replies

paranoise Wednesday 12 June 2019 at 22:13
paranoise Anonymous

Message

Hi. I was trying to run Heroes 3 from PlayOnLinux but i've got some errors: 

 playonlinux

Looking for python... 2.7.12 - wxversion(s): 3.0-gtk2

selected

/home/tomasz/.gtkrc-2.0:1: error: invalid keyword 'font_name', expected valid keyword - e.g. `style'

[main] Message: PlayOnLinux (4.2.10) is starting

[clean_tmp] Message: Cleaning temp directory

[Check_OpenGL] Warning: check_dd_x86 missing, test skipped

[Check_OpenGL] Warning: check_dd_amd64 missing, test skipped

[POL_System_CheckFS] Message: Checking filesystem for /home/tomasz/.PlayOnLinux/

[main] Message: Filesystem is compatible

[install_plugins] Message: Checking plugin: ScreenCap...

[install_plugins] Message: Checking plugin: PlayOnLinux Vault...

[update_check] Message: Web version : 1560342288

[update_check] Message: Current local version : 1559896498

[update_check] Message: Updating list

[POL_Config_Write] Message: Config write: LAST_TIMESTAMP 1560342288

[POL_SetupWindow_Init] Message: Creating new window for pid 5798

[POL_SetupWindow_Close] Message: Closing window for pid 5798

[POL_GPG_auth_script] Message: Checking signature of /home/tomasz/.PlayOnLinux//install

[POL_GPG_install_key] Message: Importing PlayOnLinux public key

[POL_Bash] Message: POL GPG : Good signature - GOG.com - Heroes of Might and Magic 3 Complete

[POL_SetupWindow_Init] Message: Creating new window for pid 5930

[POL_Call] Message: Calling POL_GoG_setup

[POL_Call] Message: ----- Starting function POL_GoG_setup -----

[POL_GPG_auth_script] Message: Checking signature of POL_GoG_setup

[POL_GPG_install_key] Message: Importing PlayOnLinux public key

[POL_Source] Message: POL GPG : Good signature

[source] Message: PlayOnLinux do not understand GoG_Download

[POL_SetupWindow_question] Message: question answer: TRUE

[POL_Open] Message: Opening: http://www.gog.com/gamecard/heroes_of_might_and_magic_3_complete_edition

[source] Message: Install method LOCAL

[POL_SetupWindow_browse] Message: browser answer: /home/tomasz/Heroes/gogHeroes.exe

[POL_Call] Message: ----- Ending function POL_GoG_setup -----

[POL_Wine_SelectPrefix] Message: Selecting prefix: HoMM3_gog

[POL_System_SetArch] Message: POL_ARCH set to x86

[POL_Wine_PrefixCreate] Message: Setting POL_WINEVERSION to 1.5.16

[POL_Wine_PrefixCreate] Message: Creating prefix (1.5.16)...

[POL_Wine_PrefixCreate] Message: Prefix already exists

[POL_SetupWindow_menu] Message: menu answer: Overwrite (usually works, no guarantee)

[POL_Wine_PrefixCreate] Message: Overwrite Prefix

[POL_Wine_PrefixCreate] Message: Setting version to 1.5.16

[POL_Config_PrefixWrite] Message: Prefix config write: VERSION 1.5.16

/home/tomasz/.PlayOnLinux//wine/linux-x86/1.5.16/bin//wineserver

[POL_LoadVar_PROGRAMFILES] Message: Getting Program Files name

[POL_Wine] Message: Running wine-1.5.16 cmd /c echo %ProgramFiles% (Working directory : /usr/share/playonlinux/python)

[POL_Wine] Message: Notice: PlayOnLinux deliberately disables winemenubuilder. See http://www.playonlinux.com/fr/page-26-Winemenubuilder.html

[POL_Wine] Message: Wine return: 0

[POL_Call] Message: Calling POL_Install_nop

[POL_Call] Message: ----- Starting function POL_Install_nop -----

[POL_GPG_auth_script] Message: Checking signature of POL_Install_nop

[POL_GPG_install_key] Message: Importing PlayOnLinux public key

[POL_Source] Message: POL GPG : Good signature

[POL_Download_Resource] Message: Downloading resource http://files.playonlinux.com/nop.zip

[POL_Download_Resource] Message: Download MD5 matches

[source] Message: Installing nop.exe

[POL_System_ExtractSingleFile] Message: Extracting single file : "nop.zip", "nop.exe", "/home/tomasz/.PlayOnLinux//wineprefix/HoMM3_gog/drive_c/windows/system32/nop.exe"

[POL_Call] Message: ----- Ending function POL_Install_nop -----

[POL_Call] Message: Calling POL_GoG_install

[POL_Call] Message: ----- Starting function POL_GoG_install -----

[POL_GPG_auth_script] Message: Checking signature of POL_GoG_install

[POL_GPG_install_key] Message: Importing PlayOnLinux public key

[POL_Source] Message: POL GPG : Good signature

[POL_Call] Message: Calling POL_Function_SetNativeExtension

[POL_Call] Message: ----- Starting function POL_Function_SetNativeExtension -----

[POL_GPG_auth_script] Message: Checking signature of POL_Function_SetNativeExtension

[POL_GPG_install_key] Message: Importing PlayOnLinux public key

[POL_Source] Message: POL GPG : Good signature

[POL_Wine] Message: Running wine-1.5.16 regedit /home/tomasz/.PlayOnLinux//tmp/nativeext.reg (Working directory : /home/tomasz/.PlayOnLinux/tmp)

[POL_Wine] Message: Notice: PlayOnLinux deliberately disables winemenubuilder. See http://www.playonlinux.com/fr/page-26-Winemenubuilder.html

[POL_Wine] Message: Wine return: 0

[POL_Call] Message: ----- Ending function POL_Function_SetNativeExtension -----

[POL_Call] Message: Calling POL_Install_gdiplus

[POL_Call] Message: ----- Starting function POL_Install_gdiplus -----

[POL_GPG_auth_script] Message: Checking signature of POL_Install_gdiplus

[POL_GPG_install_key] Message: Importing PlayOnLinux public key

[POL_Source] Message: POL GPG : Good signature

[POL_Download_Resource] Message: Downloading resource http://download.microsoft.com/download/a/b/c/abc45517-97a0-4cee-a362-1957be2f24e1/WindowsXP-KB975337-x86-ENU.exe

[POL_Download_Resource] Message: Download MD5 matches

[POL_System_CheckFS] Message: Checking filesystem for WindowsXP-KB975337-x86-ENU.exe

[POL_Wine] Message: Running wine-1.5.16 WindowsXP-KB975337-x86-ENU.exe /extract:C:\Tmp /q (Working directory : /home/tomasz/.PlayOnLinux/ressources)

fixme:advapi:DecryptFileA "C:\\Tmp\\" 00000000

[POL_Wine] Message: Wine return: 0

[POL_Wine_OverrideDLL] Message: Overriding DLLs

[POL_Wine] Message: Running wine-1.5.16 regedit /home/tomasz/.PlayOnLinux//tmp/override-dll.reg (Working directory : /home/tomasz/.PlayOnLinux/wineprefix/HoMM3_gog/drive_c/Tmp)

[POL_Wine] Message: Wine return: 0

[POL_Call] Message: ----- Ending function POL_Install_gdiplus -----

[POL_System_CheckFS] Message: Checking filesystem for /home/tomasz/Heroes/gogHeroes.exe

[POL_Wine] Message: Running wine-1.5.16 /home/tomasz/Heroes/gogHeroes.exe /nogui (Working directory : /home/tomasz/.PlayOnLinux/tmp)

fixme:advapi:RegisterTraceGuidsW (0x441dca, (nil), {f7b697a3-4db5-4d3b-be71-c4d284e6592f}, 7, 0x493be4, (null), (null), 0x498670,): stub

fixme:process:GetNumaHighestNodeNumber (0x32f4c0): stub

wine: Unhandled exception 0x40000015 at address 0x456d43 (thread 0028), starting debugger...

Process of pid=0027 has terminated

No process loaded, cannot execute 'echo Modules:'

Cannot get info on module while no process is loaded

No process loaded, cannot execute 'echo Threads:'

process  tid      prio (all id:s are in hex)

0000000e services.exe

0000001e    0

0000001d    0

00000015    0

00000010    0

0000000f    0

00000012 winedevice.exe

00000019    0

00000014    0

00000013    0

0000001a plugplay.exe

0000001f    0

0000001c    0

0000001b    0

[POL_Wine] Error: Wine seems to have crashed


If your program is running, just ignore this message

00000023 explorer.exe

00000024    0

winedbg: Internal crash at 0x7ebf408c

[POL_Wine] Message: Wine return: 3

[source] Fatal: Error while installing archive

[POL_SetupWindow_Close] Message: Closing window for pid 5930

[POL_SetupWindow_question] Message: question answer: TRUE

[POL_SetupWindow_Init] Message: Creating new window for pid 7278

Does anyone can help me with it? I'll be thankfull. 

Replies

Wednesday 12 June 2019 at 22:47
Try the script I posted this month (june 2019). And please post the log (or feeback) if necessary.
Izaya21 Thursday 28 February 2019 at 23:03
Izaya21 Anonymous

Message

POL stuck on instaling nop.exe or WindowsXP-KB975337-x86-ENU.exe. Waited about 1 hour but nothing happend. Tried few times.
I tried manual installation too, but same happened when POL tried to install WindowsXP-KB975337-x86-ENU.exe.

Someone maybe have fix for this?

 

Ubuntu 18.04, POL ver. 4.3.4

Replies

Anonymous
Thursday 21 March 2019 at 19:58
Hi did you find a solution ? I have the same issue...
Anonymous
Friday 10 May 2019 at 19:04
Hi did you find a solution ? I have the same issue... me too :-(

Edited by Izaya21

unfunky Thursday 13 December 2018 at 22:59
unfunky Anonymous

Message

Hi. Thanks for your work, but I experienced a problem. Downloaded successfully the game from GOG, but on integrity checking got an error. Any solutions?
Thanks in advance.

Replies

Anonymous
Thursday 13 December 2018 at 23:01
macOS 10.13.6
alan.cugler Wednesday 17 October 2018 at 10:52
alan.cugler Anonymous

Message

Tried running this and the GOG.com galaxy download fails at the start of the download. bing unable to connect to the internet. My terminal couldnt identify the error and ended with "unknown error." This setup does not work for my system.

 

System specs:

-ubuntu 16.04.5

-Nvidia Driver 390.87

-GTX 970

-24 Gb RAM

i5 intel processor

Replies

SaW1991 Wednesday 14 December 2016 at 22:31
SaW1991 Anonymous

Message

The game stops working some times, just get an massive error.

Replies

nexter Tuesday 19 May 2015 at 22:58
nexter Anonymous

Message

Got an error when it came to this part:

# Doesn't hurt ;)
POL_Wine_reboot
 
POL_Shortcut "Heroes3.exe" "$SHORTCUT_NAME" "$SHORTCUT_NAME.png" "" "Game;StrategyGame;"
POL_Shortcut_Document "$SHORTCUT_NAME" "$GOGROOT/Heroes of Might and Magic 3 Complete/Heroes3_Manual.pdf"
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_AB_Manual.pdf
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_SoD_Manual.pdf
# C:\GOG Games\Heroes of Might and Magic 3\Heroes3_Tutorial.pdf
# C:\GOG Games\Heroes of Might and Magic 3\README.TXT
# C:\GOG Games\Heroes of Might and Magic 3\h3ccmped.exe
# C:\GOG Games\Heroes of Might and Magic 3\h3maped.exe
 
POL_SetupWindow_Close
 
Don't know why though.

Replies

Anonymous
Tuesday 19 May 2015 at 22:59
Oh, and it was right after the installer asked me how much memory my graphics card has.
Anonymous
Tuesday 19 May 2015 at 23:01
BTW, it still works, but not very good. The game doesn't cover all of the screen, and parts of it can't be seen.
I'm using KDE 4 as desktop environment.
Anonymous
Thursday 27 October 2016 at 9:44
First of all thank you for both installers.
Anonymous
Thursday 27 October 2016 at 9:45
I have one question, how can I install new patch on these installation scripts? patch_heroes_of_might_and_magic_3_complete_2.0.1.17.exe I have the following patch with my game distribution, but have no clue on how to install it in existing wine prefix created by POL script.