Villagers and Heroes

Informations

Creator Message
Arcadien Anonymous

Information

This installer has been approved by the team.

Informations

Platforms:
Downloads: 13921
Wine: 6.0.1

Feedbacks

Description

Family-friendly indie MMORPG. Free to play.

Official websitePCGamingWiki . Test reports on appdb.winehq.org

Screenshots

MiniatureMiniatureMiniatureMiniatureMiniature

Source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (see changelog)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# Game based on: DirectX 9, MS Visual studio. 
#
# CHANGELOG
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Dadu042] (2019-07-20)
#   Repair download URL.
# [Dadu042] (2019-07-24)
#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
#   Add messages for newcomers.
#   Add silent install (it's a bit faster).
# [Dadu042] (2020-06-08) (tested with game v2.3.7)
#   Wine 4.0.1 -> 4.0.4
#   Fix POL_Shortcut
#   Add icon to POL_Shortcut
# [Dadu042] (2020-09-13) (tested with game v2.3.7)
#   Wine 4.0.4 -> 5.0.2
# [Dadu042] (2022-03-23) (not tested)
#   Wine 5.0.3 -> 6.0.1

# KNOWN ISSUES
#   2019-07-24, Wine 4.0.1: POL Error when launching, but the game does launch. Game v2.3.7.



[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Villagers and Heroes"
PREFIX="villagers-and-heroes"
    
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 1985
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
  
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
   
  
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "6.0.1"
    
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
  
#######################################
# Setup GPU                           #
####################################### 
  
# Set Graphic Card (useful if laptop with dual GPU)
POL_Wine_SetVideoDriver
  
  
  
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
# POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkboxes." "$TITLE"
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
  
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "VHSetup.exe" "/SILENT"
fi


# Use the icon file hosted at: http://files.playonlinux.com/resources/icones/Villagers%20and%20Heroes.png
POL_Shortcut "VHLauncher.exe" "$TITLE" "Villagers%20and%20Heroes.png" "" "Game;Roleplaying"

# POL_Shortcut "VHLauncher.exe" "$TITLE" "" "" "Game;Roleplaying"
# icon: AMLIcon.ico but I have no idea how to use it.
 
POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"
 
POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Contributions

Filters:

Contribute
Member Message
Dadu042 Sunday 27 March 2022 at 1:40
Dadu042

Information

This update has been approved by the team.

Message

Not tested.
 

Differences

@@ -24,6 +24,8 @@
 #   Add icon to POL_Shortcut
 # [Dadu042] (2020-09-13) (tested with game v2.3.7)
 #   Wine 4.0.4 -> 5.0.2
+# [Dadu042] (2022-03-23) (not tested)
+#   Wine 5.0.3 -> 6.0.1
 
 # KNOWN ISSUES
 #   2019-07-24, Wine 4.0.1: POL Error when launching, but the game does launch. Game v2.3.7.
@@ -48,7 +50,7 @@
    
   
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "5.0.3"
+POL_Wine_PrefixCreate "6.0.1"
     
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
@@ -80,10 +82,10 @@
 fi
 
 
-# Use the icon file hosted at: http://files.playonlinux.com/resources/icones/Villagers%20and%20Heroes.png
+# Use the icon file hosted at: http://files.playonlinux.com/resources/icones/Villagers%20and%20Heroes.png
 POL_Shortcut "VHLauncher.exe" "$TITLE" "Villagers%20and%20Heroes.png" "" "Game;Roleplaying"
 
-# POL_Shortcut "VHLauncher.exe" "$TITLE" "" "" "Game;Roleplaying"
+# POL_Shortcut "VHLauncher.exe" "$TITLE" "" "" "Game;Roleplaying"
 # icon: AMLIcon.ico but I have no idea how to use it.
  
 POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"

New source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (see changelog)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# Game based on: DirectX 9, MS Visual studio. 
#
# CHANGELOG
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Dadu042] (2019-07-20)
#   Repair download URL.
# [Dadu042] (2019-07-24)
#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
#   Add messages for newcomers.
#   Add silent install (it's a bit faster).
# [Dadu042] (2020-06-08) (tested with game v2.3.7)
#   Wine 4.0.1 -> 4.0.4
#   Fix POL_Shortcut
#   Add icon to POL_Shortcut
# [Dadu042] (2020-09-13) (tested with game v2.3.7)
#   Wine 4.0.4 -> 5.0.2
# [Dadu042] (2022-03-23) (not tested)
#   Wine 5.0.3 -> 6.0.1

# KNOWN ISSUES
#   2019-07-24, Wine 4.0.1: POL Error when launching, but the game does launch. Game v2.3.7.



[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Villagers and Heroes"
PREFIX="villagers-and-heroes"
    
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 1985
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
  
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
   
  
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "6.0.1"
    
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
  
#######################################
# Setup GPU                           #
####################################### 
  
# Set Graphic Card (useful if laptop with dual GPU)
POL_Wine_SetVideoDriver
  
  
  
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
# POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkboxes." "$TITLE"
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
  
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "VHSetup.exe" "/SILENT"
fi


# Use the icon file hosted at: http://files.playonlinux.com/resources/icones/Villagers%20and%20Heroes.png
POL_Shortcut "VHLauncher.exe" "$TITLE" "Villagers%20and%20Heroes.png" "" "Game;Roleplaying"

# POL_Shortcut "VHLauncher.exe" "$TITLE" "" "" "Game;Roleplaying"
# icon: AMLIcon.ico but I have no idea how to use it.
 
POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"
 
POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Replies

Dadu042 Saturday 30 January 2021 at 21:14
Dadu042

Warning

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

Differences

@@ -48,7 +48,7 @@
    
   
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "5.0.2"
+POL_Wine_PrefixCreate "5.0.3"
     
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"

New source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (see changelog)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# Game based on: DirectX 9, MS Visual studio. 
#
# CHANGELOG
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Dadu042] (2019-07-20)
#   Repair download URL.
# [Dadu042] (2019-07-24)
#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
#   Add messages for newcomers.
#   Add silent install (it's a bit faster).
# [Dadu042] (2020-06-08) (tested with game v2.3.7)
#   Wine 4.0.1 -> 4.0.4
#   Fix POL_Shortcut
#   Add icon to POL_Shortcut
# [Dadu042] (2020-09-13) (tested with game v2.3.7)
#   Wine 4.0.4 -> 5.0.2

# KNOWN ISSUES
#   2019-07-24, Wine 4.0.1: POL Error when launching, but the game does launch. Game v2.3.7.



[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Villagers and Heroes"
PREFIX="villagers-and-heroes"
    
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 1985
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
  
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
   
  
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "5.0.3"
    
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
  
#######################################
# Setup GPU                           #
####################################### 
  
# Set Graphic Card (useful if laptop with dual GPU)
POL_Wine_SetVideoDriver
  
  
  
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
# POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkboxes." "$TITLE"
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
  
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "VHSetup.exe" "/SILENT"
fi


# Use the icon file hosted at: http://files.playonlinux.com/resources/icones/Villagers%20and%20Heroes.png
POL_Shortcut "VHLauncher.exe" "$TITLE" "Villagers%20and%20Heroes.png" "" "Game;Roleplaying"

# POL_Shortcut "VHLauncher.exe" "$TITLE" "" "" "Game;Roleplaying"
# icon: AMLIcon.ico but I have no idea how to use it.
 
POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"
 
POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Replies

Dadu042 Tuesday 15 September 2020 at 21:03
Dadu042

Warning

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

Message

Installation and Tutorial are OK.

Differences

@@ -22,6 +22,8 @@
 #   Wine 4.0.1 -> 4.0.4
 #   Fix POL_Shortcut
 #   Add icon to POL_Shortcut
+# [Dadu042] (2020-09-13) (tested with game v2.3.7)
+#   Wine 4.0.4 -> 5.0.2
 
 # KNOWN ISSUES
 #   2019-07-24, Wine 4.0.1: POL Error when launching, but the game does launch. Game v2.3.7.
@@ -46,7 +48,7 @@
    
   
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "4.0.4"
+POL_Wine_PrefixCreate "5.0.2"
     
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"

New source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (see changelog)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# Game based on: DirectX 9, MS Visual studio. 
#
# CHANGELOG
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Dadu042] (2019-07-20)
#   Repair download URL.
# [Dadu042] (2019-07-24)
#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
#   Add messages for newcomers.
#   Add silent install (it's a bit faster).
# [Dadu042] (2020-06-08) (tested with game v2.3.7)
#   Wine 4.0.1 -> 4.0.4
#   Fix POL_Shortcut
#   Add icon to POL_Shortcut
# [Dadu042] (2020-09-13) (tested with game v2.3.7)
#   Wine 4.0.4 -> 5.0.2

# KNOWN ISSUES
#   2019-07-24, Wine 4.0.1: POL Error when launching, but the game does launch. Game v2.3.7.



[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Villagers and Heroes"
PREFIX="villagers-and-heroes"
    
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 1985
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
  
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
   
  
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "5.0.2"
    
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
  
#######################################
# Setup GPU                           #
####################################### 
  
# Set Graphic Card (useful if laptop with dual GPU)
POL_Wine_SetVideoDriver
  
  
  
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
# POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkboxes." "$TITLE"
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
  
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "VHSetup.exe" "/SILENT"
fi


# Use the icon file hosted at: http://files.playonlinux.com/resources/icones/Villagers%20and%20Heroes.png
POL_Shortcut "VHLauncher.exe" "$TITLE" "Villagers%20and%20Heroes.png" "" "Game;Roleplaying"

# POL_Shortcut "VHLauncher.exe" "$TITLE" "" "" "Game;Roleplaying"
# icon: AMLIcon.ico but I have no idea how to use it.
 
POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"
 
POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Replies

Dadu042 Monday 15 June 2020 at 16:55
Dadu042

Message

Fail to launch (after the window where the game checks its integrity). AMD IGP (Vega 11). Wine 4.0.3 and 4.0.4. XUbuntu 18.04 amd64, Vulkan. Same issue after installing DXVK_161.

Debug log last line: fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.

The last time I tested it OK, it was a Intel Core I3-4130 computer, IGP: Intel HD 4400, same OS (same HDD).

Replies

Sunday 13 September 2020 at 11:28
Tested again, now OK on my new computer AMD, Wine 4.0.4, game v2.3.7. Xubuntu 18.04 amd64, CPU/APU: AMD Ryzen 5 3400G.

Edited by Dadu042

Dadu042 Monday 8 June 2020 at 14:30
Dadu042

Warning

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

Differences

@@ -18,64 +18,74 @@
 #   Fix 'script freeze': call to POL_Wine_SetVideoDriver
 #   Add messages for newcomers.
 #   Add silent install (it's a bit faster).
+# [Dadu042] (2020-06-08) (tested with game v2.3.7)
+#   Wine 4.0.1 -> 4.0.4
+#   Fix POL_Shortcut
+#   Add icon to POL_Shortcut
 
 # KNOWN ISSUES
-#   2019-07-24, Wine 4.0.1: POL Error when launching but game does launch. Game v2.3.7.
+#   2019-07-24, Wine 4.0.1: POL Error when launching, but the game does launch. Game v2.3.7.
+
+
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-   
+    
 TITLE="Villagers and Heroes"
 PREFIX="villagers-and-heroes"
-   
+    
 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 1985
 POL_Debug_Init
-   
+    
 POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
- 
+  
 POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+   
   
- 
 POL_Wine_SelectPrefix "$PREFIX"
-POL_Wine_PrefixCreate "4.0.1"
-   
+POL_Wine_PrefixCreate "4.0.4"
+    
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
- 
+  
 #######################################
 # Setup GPU                           #
 ####################################### 
- 
+  
 # Set Graphic Card (useful if laptop with dual GPU)
 POL_Wine_SetVideoDriver
+  
+  
+  
+POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
  
+# POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkboxes." "$TITLE"
  
- 
-POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
-
-POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkbox." "$TITLE"
-
 if [ "$INSTALL_METHOD" == "LOCAL" ]; then
         cd "$HOME"
         POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
         SETUP_EXE="$APP_ANSWER"
         POL_Wine start /unix "$SETUP_EXE"
         POL_Wine_WaitExit "$TITLE"
- 
+  
 elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
         POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
         POL_Wine_WaitBefore "$TITLE"
         POL_Wine "VHSetup.exe" "/SILENT"
 fi
-   
-POL_Shortcut "VHLauncher.exe" "$TITLE"  "Game;Roleplaying"
-# icon: AMLIcon.ico but I have no idea how to use it.
 
-POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"
 
+# Use the icon file hosted at: http://files.playonlinux.com/resources/icones/Villagers%20and%20Heroes.png
+POL_Shortcut "VHLauncher.exe" "$TITLE" "Villagers%20and%20Heroes.png" "" "Game;Roleplaying"
+
+# POL_Shortcut "VHLauncher.exe" "$TITLE" "" "" "Game;Roleplaying"
+# icon: AMLIcon.ico but I have no idea how to use it.
+ 
+POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"
+ 
 POL_SetupWindow_Close
 POL_System_TmpDelete
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (see changelog)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# Game based on: DirectX 9, MS Visual studio. 
#
# CHANGELOG
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Dadu042] (2019-07-20)
#   Repair download URL.
# [Dadu042] (2019-07-24)
#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
#   Add messages for newcomers.
#   Add silent install (it's a bit faster).
# [Dadu042] (2020-06-08) (tested with game v2.3.7)
#   Wine 4.0.1 -> 4.0.4
#   Fix POL_Shortcut
#   Add icon to POL_Shortcut

# KNOWN ISSUES
#   2019-07-24, Wine 4.0.1: POL Error when launching, but the game does launch. Game v2.3.7.



[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
TITLE="Villagers and Heroes"
PREFIX="villagers-and-heroes"
    
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 1985
POL_Debug_Init
    
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
  
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
   
  
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "4.0.4"
    
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
  
#######################################
# Setup GPU                           #
####################################### 
  
# Set Graphic Card (useful if laptop with dual GPU)
POL_Wine_SetVideoDriver
  
  
  
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
 
# POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkboxes." "$TITLE"
 
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
  
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "VHSetup.exe" "/SILENT"
fi


# Use the icon file hosted at: http://files.playonlinux.com/resources/icones/Villagers%20and%20Heroes.png
POL_Shortcut "VHLauncher.exe" "$TITLE" "Villagers%20and%20Heroes.png" "" "Game;Roleplaying"

# POL_Shortcut "VHLauncher.exe" "$TITLE" "" "" "Game;Roleplaying"
# icon: AMLIcon.ico but I have no idea how to use it.
 
POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"
 
POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Replies

Dadu042 Wednesday 24 July 2019 at 19:39
Dadu042

Warning

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

Message

Tutorial played 20 min.

 

As soon as launched, Wine does crash (process still unknown from me) however this does not stop the game.

Differences

@@ -15,7 +15,12 @@
 # [Dadu042] (2019-07-20)
 #   Repair download URL.
 # [Dadu042] (2019-07-24)
-#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
+#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
+#   Add messages for newcomers.
+#   Add silent install (it's a bit faster).
+
+# KNOWN ISSUES
+#   2019-07-24, Wine 4.0.1: POL Error when launching but game does launch. Game v2.3.7.
 
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
@@ -50,7 +55,9 @@
  
  
 POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
-   
+
+POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkbox." "$TITLE"
+
 if [ "$INSTALL_METHOD" == "LOCAL" ]; then
         cd "$HOME"
         POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
@@ -61,12 +68,14 @@
 elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
         POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
         POL_Wine_WaitBefore "$TITLE"
-        POL_Wine "VHSetup.exe"
+        POL_Wine "VHSetup.exe" "/SILENT"
 fi
    
 POL_Shortcut "VHLauncher.exe" "$TITLE"  "Game;Roleplaying"
- 
- 
+# icon: AMLIcon.ico but I have no idea how to use it.
+
+POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"
+
 POL_SetupWindow_Close
 POL_System_TmpDelete
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (see changelog)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# Game based on: DirectX 9, MS Visual studio. 
#
# CHANGELOG
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Dadu042] (2019-07-20)
#   Repair download URL.
# [Dadu042] (2019-07-24)
#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
#   Add messages for newcomers.
#   Add silent install (it's a bit faster).

# KNOWN ISSUES
#   2019-07-24, Wine 4.0.1: POL Error when launching but game does launch. Game v2.3.7.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Villagers and Heroes"
PREFIX="villagers-and-heroes"
   
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 1985
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
 
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
  
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "4.0.1"
   
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
 
#######################################
# Setup GPU                           #
####################################### 
 
# Set Graphic Card (useful if laptop with dual GPU)
POL_Wine_SetVideoDriver
 
 
 
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"

POL_SetupWindow_message "Please do not run the game as soon installed. Uncheck the checkbox." "$TITLE"

if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
 
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "VHSetup.exe" "/SILENT"
fi
   
POL_Shortcut "VHLauncher.exe" "$TITLE"  "Game;Roleplaying"
# icon: AMLIcon.ico but I have no idea how to use it.

POL_SetupWindow_message "Game installed (the launcher)." "$TITLE"

POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Replies

Anonymous
Sunday 25 August 2019 at 6:52
Was working beautifully until tonight (Aug 24/2019) I am going to try and reinstall from this link again but the previous two times didn't work

I cannot tell you the reason but after re-downloading everything, it worked the third time.  Apple Gremlins.  However, thanks for the GREAT job helping us non-tech person enjoy games that otherwise we wouldn't be able to enjoy as much or at all 
Friday 6 September 2019 at 23:15
To add to the script (because there is on crash report that does not stop the installation): POL_Wine --ignore-errors "$SETUP_EXE"

Edited by Dadu042

Dadu042 Wednesday 24 July 2019 at 17:53
Dadu042

Warning

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

Message

Fix 'script freeze': call to POL_Wine_SetVideoDriver

Differences

@@ -14,57 +14,59 @@
 #   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
 # [Dadu042] (2019-07-20)
 #   Repair download URL.
- 
+# [Dadu042] (2019-07-24)
+#   Fix 'script freeze': call to POL_Wine_SetVideoDriver
+
 [ "$PLAYONLINUX" = "" ] && exit 0
 source "$PLAYONLINUX/lib/sources"
-  
+   
 TITLE="Villagers and Heroes"
 PREFIX="villagers-and-heroes"
-  
+   
 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 1985
 POL_Debug_Init
-  
+   
 POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
-
+ 
 POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
+  
  
-
 POL_Wine_SelectPrefix "$PREFIX"
 POL_Wine_PrefixCreate "4.0.1"
-  
+   
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
-
+ 
 #######################################
 # Setup GPU                           #
 ####################################### 
-
+ 
 # Set Graphic Card (useful if laptop with dual GPU)
-POL_Call POL_Wine_SetVideoDriver
-
-
-
+POL_Wine_SetVideoDriver
+ 
+ 
+ 
 POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
-  
+   
 if [ "$INSTALL_METHOD" == "LOCAL" ]; then
         cd "$HOME"
         POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
         SETUP_EXE="$APP_ANSWER"
         POL_Wine start /unix "$SETUP_EXE"
         POL_Wine_WaitExit "$TITLE"
-
+ 
 elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
-	POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe" 
-	POL_Wine_WaitBefore "$TITLE"
-	POL_Wine "VHSetup.exe"
+        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
+        POL_Wine_WaitBefore "$TITLE"
+        POL_Wine "VHSetup.exe"
 fi
-  
+   
 POL_Shortcut "VHLauncher.exe" "$TITLE"  "Game;Roleplaying"
-
-
+ 
+ 
 POL_SetupWindow_Close
 POL_System_TmpDelete
 exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (see changelog)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# Game based on: DirectX 9, MS Visual studio. 
#
# CHANGELOG
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Dadu042] (2019-07-20)
#   Repair download URL.
# [Dadu042] (2019-07-24)
#   Fix 'script freeze': call to POL_Wine_SetVideoDriver

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
   
TITLE="Villagers and Heroes"
PREFIX="villagers-and-heroes"
   
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 1985
POL_Debug_Init
   
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
 
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
  
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "4.0.1"
   
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
 
#######################################
# Setup GPU                           #
####################################### 
 
# Set Graphic Card (useful if laptop with dual GPU)
POL_Wine_SetVideoDriver
 
 
 
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
   
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"
 
elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe"
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "VHSetup.exe"
fi
   
POL_Shortcut "VHLauncher.exe" "$TITLE"  "Game;Roleplaying"
 
 
POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Replies

Dadu042 Saturday 20 July 2019 at 7:30
Dadu042

Warning

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

Differences

@@ -5,6 +5,8 @@
 # Distribution used to test : Xubuntu 18.04 x64
 # Author : Arcadien (arc@arcadien.net)
 #
+# Game based on: DirectX 9, MS Visual studio. 
+#
 # CHANGELOG
 # [Arcadien (arc@arcadien.net)] (2014-03-27)
 #   Initial writing.
@@ -36,6 +38,15 @@
 POL_System_TmpCreate "$PREFIX"
 cd "$POL_System_TmpDir"
 
+#######################################
+# Setup GPU                           #
+####################################### 
+
+# Set Graphic Card (useful if laptop with dual GPU)
+POL_Call POL_Wine_SetVideoDriver
+
+
+
 POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
   
 if [ "$INSTALL_METHOD" == "LOCAL" ]; then
@@ -53,12 +64,6 @@
   
 POL_Shortcut "VHLauncher.exe" "$TITLE"  "Game;Roleplaying"
 
-#######################################
-# Setup GPU                           #
-####################################### 
-
-# Set Graphic Card (useful if laptop with dual GPU)
-POL_Call POL_Wine_SetVideoDriver
 
 POL_SetupWindow_Close
 POL_System_TmpDelete

New source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (see changelog)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# Game based on: DirectX 9, MS Visual studio. 
#
# CHANGELOG
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Dadu042] (2019-07-20)
#   Repair download URL.
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Villagers and Heroes"
PREFIX="villagers-and-heroes"
  
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 1985
POL_Debug_Init
  
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"

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

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "4.0.1"
  
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"

#######################################
# Setup GPU                           #
####################################### 

# Set Graphic Card (useful if laptop with dual GPU)
POL_Call POL_Wine_SetVideoDriver



POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
  
if [ "$INSTALL_METHOD" == "LOCAL" ]; then
        cd "$HOME"
        POL_SetupWindow_browse "$(eval_gettext 'Please select the setup file to run:')" "$TITLE"
        SETUP_EXE="$APP_ANSWER"
        POL_Wine start /unix "$SETUP_EXE"
        POL_Wine_WaitExit "$TITLE"

elif [ "$INSTALL_METHOD" == "DOWNLOAD" ];then
        POL_Download "https://www.villagers-and-heroes.com/VHSetup.exe" 
        POL_Wine_WaitBefore "$TITLE"
        POL_Wine "VHSetup.exe"
fi
  
POL_Shortcut "VHLauncher.exe" "$TITLE"  "Game;Roleplaying"


POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Replies

Edited by Dadu042

Dadu042 Thursday 23 May 2019 at 11:18
Dadu042

Warning

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

Message

Don't work. Read the changelog.

 

Wine 4.01 crash log:
--- verifying...

wine: Unhandled page fault on write access to 0x0000000c at address 0x1e015319 (thread 0009), starting debugger...
002b:fixme:dbghelp:elf_search_auxv can't find symbol in module

Wine 3.0 crash log:
--- verifying..

Differences

@@ -39,16 +39,4 @@
  
 POL_SetupWindow_Close
 POL_System_TmpDelete
-exit
-
-
-Wine 4.01 crash log:
---- verifying...
-
-wine: Unhandled page fault on write access to 0x0000000c at address 0x1e015319 (thread 0009), starting debugger...
-002b:fixme:dbghelp:elf_search_auxv can't find symbol in module
-
-
-Wine 3.0 crash log:
---- verifying...
-
+exit 0
\ No newline at end of file

New source code

#!/bin/bash
# Date : (2014-03-27)
# Last revision : (2014-03-27)
# Wine version used : see below
# Distribution used to test : Xubuntu 18.04 x64
# Author : Arcadien (arc@arcadien.net)
#
# CHANGELOG
# [Dadu042] (2019-05-23)
#   Repair download URL. Game start updating partially, then fail (a error window open: 'Connection problems were encountered while updating ...').
# [Arcadien (arc@arcadien.net)] (2014-03-27)
#   Initial writing.

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
 
TITLE="Villagers and Heroes"
PREFIX="villagersandheroes"
 
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 1985
POL_Debug_Init
 
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
 
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "4.0.1"
 
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "https://www.madottergames.com/VHSetup.exe"

POL_Wine_WaitBefore "$TITLE"
POL_Wine "VHSetup.exe"
 
POL_Shortcut "VHLauncher.exe" "$TITLE" "Game;Roleplaying"
 
POL_SetupWindow_Close
POL_System_TmpDelete
exit 0

Replies

Edited by Dadu042

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