forked from petchema/playonlinux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathavernum_the_complete_saga-gog
87 lines (61 loc) · 3.48 KB
/
avernum_the_complete_saga-gog
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#!/usr/bin/env playonlinux-bash
# Date : (2013-02-12 17-10)
# Last revision : (2014-02-15 17-48)
# Wine version used : 1.4.1
# Distribution used to test : Debian Sid (Unstable)
# Author : Pierre Etchemaite [email protected]
# Script licence : GPL v.2
# Program licence : Retail
# Depend :
# Pictures in title screen/menu/introduction appear with a delay starting with Wine 1.5.5
[ -z "$PLAYONLINUX" ] && exit 0
source "$PLAYONLINUX/lib/sources"
GOGID="avernum_the_complete_saga"
PREFIX="Avernum_gog"
WORKING_WINE_VERSION="1.4.1"
TITLE="GOG.com - Avernum: The Complete Saga"
SHORTCUT_NAME1="Avernum"
SHORTCUT_NAME2="Avernum 2"
SHORTCUT_NAME3="Avernum 3"
SHORTCUT_NAME4="Avernum 4"
SHORTCUT_NAME5="Avernum 5"
SHORTCUT_NAME6="Avernum 6"
SHORTCUT_NAMEB="Blades of Avernum"
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 1568
POL_Debug_Init
POL_SetupWindow_presentation "$TITLE" "Spiderweb Software" "http://www.gog.com/gamecard/$GOGID" "Pierre Etchemaite" "$PREFIX"
POL_Call POL_GoG_setup "$GOGID" "97caacf820a97bc73fd95fb757971afa"
POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WORKING_WINE_VERSION"
POL_Call POL_GoG_install
# GoG work!
Set_OS winxp
POL_SetupWindow_VMS "32"
# For Avernum 4+
POL_Wine_DirectInput "MouseWarpOverride" "force"
# Enable "Change resolution: Ask at start"
# Seems to starts more reliably that way, at least in virtual desktop
cd "$WINEPREFIX/drive_c/GOG Games/Avernum Series" || POL_Debug_Fatal "Could not find game directory"
dd if=/dev/zero of="Avernum 4/Data/Avernum4Settings.dat" conv=notrunc bs=1 seek=8 count=1
# Doesn't hurt ;)
POL_Wine_reboot
POL_Shortcut "Avernum.exe" "$SHORTCUT_NAME1" "$SHORTCUT_NAME1.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME1" "$WINEPREFIX/drive_c/GOG Games/Avernum Series/Avernum/Mapofavernum.bmp"
POL_Shortcut "Avernum 2.exe" "$SHORTCUT_NAME2" "$SHORTCUT_NAME2.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME2" "$WINEPREFIX/drive_c/GOG Games/Avernum Series/Avernum 2/Avernum 2 Map.BMP"
POL_Shortcut "Avernum 3.exe" "$SHORTCUT_NAME3" "$SHORTCUT_NAME3.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME3" "$WINEPREFIX/drive_c/GOG Games/Avernum Series/Avernum 3/Avernum 3 Manual, Order Form.pdf"
POL_Shortcut "Blades of Avernum.exe" "$SHORTCUT_NAMEB" "$SHORTCUT_NAMEB.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAMEB" "$WINEPREFIX/drive_c/GOG Games/Avernum Series/Blades of Avernum/Blades of Avernum Manual, Order Form.pdf"
POL_Shortcut "Avernum 4.exe" "$SHORTCUT_NAME4" "$SHORTCUT_NAME4.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME4" "$WINEPREFIX/drive_c/GOG Games/Avernum Series/Avernum 4/Avernum 4 Instructions.pdf"
POL_Shortcut "Avernum 5.exe" "$SHORTCUT_NAME5" "$SHORTCUT_NAME5.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME5" "$WINEPREFIX/drive_c/GOG Games/Avernum Series/Avernum 5/Avernum_5_Instructions.pdf"
POL_Shortcut "Avernum 6.exe" "$SHORTCUT_NAME6" "$SHORTCUT_NAME6.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME6" "$WINEPREFIX/drive_c/GOG Games/Avernum Series/Avernum 6/Avernum 6 Instructions.pdf"
POL_Shortcut "Avernum 6 DX.exe" "$SHORTCUT_NAME6 (DirectX)" "$SHORTCUT_NAME6.png" "" "Game;RolePlaying;"
POL_Shortcut_Document "$SHORTCUT_NAME6 (DirectX)" "$WINEPREFIX/drive_c/GOG Games/Avernum Series/Avernum 6/Avernum 6 Instructions.pdf"
POL_SetupWindow_Close
exit 0