VIllagers and Heroes is a family-friendly indie MMORPG. It is free to play and has a small but very friendly and helpful community.
The install throws an error if you leave "Launch the game" checked at the end of the install. I added a message regarding this to the script, and although the error looks bad (closes the game and brings up a help article on the web), the install completes and the game runs fine from the produced shortcut.
[code language=playonlinux]
#!/bin/bash
# Date : (2014-03-27)
# Last revision : (2014-03-27)
# Wine version used : 1.7.12
# Distribution used to test : xubuntu 13.10
# Author : Arcadien (arc@arcadien.net)
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Villagers and Heroes"
PREFIX="villagersandheroes"
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Mad Otter Games" "www.villagersandheroes.com" "Arcadien (arc@arcadien.net)" "$PREFIX"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "1.7.12"
POL_System_TmpCreate "$PREFIX"
cd "$POL_System_TmpDir"
POL_Download "http://affiliate.neonga.com/download.php?campaign_id=517&filter_id=111213"
mv "$POL_System_TmpDir/download.php?campaign_id=517&filter_id=111213" "$POL_System_TmpDir/VHSetup.exe"
POL_SetupWindow_message "The installer for $TITLE will now appear.\nDo not allow the installer to launch the game.\nUncheck the box to launch the game at the end of the installation.\n\nIf the game is launched from the installer, an error will occur.\nThis error can be safely ignored and the installation will complete successfully anyway." "Uncheck the Launch Game checkbox!"
POL_Wine start /unix "VHSetup.exe"
POL_Wine_WaitExit "$TITLE"
POL_Shortcut "VHLauncher.exe" "$TITLE"
POL_SetupWindow_Close
POL_System_TmpDelete
exit
[/code]
Screenshots:
Icons and Install Resources
48x48
22x22
left
top
Test and enjoy! :)
Edité par Arcadien