View difference between Paste ID: Fh8aDLje and Ehb5f027
SHOW: | | - or go back to the newest paste.
1
#!/bin/bash
2
#Date : (27-11-2012)
3
# Last revision : (27-11-2012)
4
# Wine version used : 1.5.18
5
# Distribution used to test : Lubuntu 12.10 32bit
6
# Author : Hyperfang8
7
# Script licence : Public Domain
8
# Program licence : Freeware/Shareware
9
# Depend : Play On Linux
10-
10+
11
[ "$PLAYONLINUX" = "" ] && exit 0
12
source "$PLAYONLINUX/lib/sources"
13-
13+
14
#System variables
15
#$(eval_gettext '')
16-
TITLE="Lord Of The Rings Online"
16+
TITLE="Lord Of The Rings Online PyLotRO patch"
17
PREFIX="lotro"
18
WINEVER="1.5.18"
19-
DOWNLOADURL="http://download.fileplanet.com/ftp1/062010/LOTRO_US_FP_V3B3_042011.zip"
19+
DOWNLOADURL="http://media.codeweavers.com/pub/other/pylotro/pylotro-setup-0.1.15a.exe"
20-
MDSUM="8ce4e04b8e04f3cec2be7a48107a224c"
20+
MDSUM="845d1004594c5f158c0ff400853cd809"
21-
SETUPNAME="LOTROSetup.exe"
21+
SETUPNAME="pylotro-setup-0.1.15a.exe"
22-
22+
23
POL_SetupWindow_Init
24
 
25
POL_SetupWindow_presentation "$TITLE" "Turbine" "http://lorebook.lotro.com/wiki/LOTRO_under_Linux_and_Mac_OS/X" "HyperFang8" "$PREFIX"
26-
26+
27
POL_System_SetArch "x86"
28
POL_System_TmpCreate "$PREFIX"
29-
POL_Wine_PrefixCreate "$WINEVER"
29+
30
 
31-
31+
32-
POL_Call POL_Install_vcrun2005
32+
33-
POL_Call POL_Install_dotnet11sp1
33+
34-
POL_Call POL_Install_dotnet20sp2
34+
35-
35+
        POL_SetupWindow_message "$(eval_gettext 'You can download it from here: http://crossover.codeweavers.com/redirect/pylotro')" "$TITLE"
36
    POL_SetupWindow_browse "$(eval_gettext 'Choose $TITLE setup offline setup file!')" "$TITLE"
37
    POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
38
    POL_Wine start /unix "$APP_ANSWER"
39
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
40-
	POL_SetupWindow_message "$(eval_gettext 'Make sure you downloaded offline setup, not online one! You can download it from here: http://www.fileplanet.com/213014/210000/fileinfo/The-Lord-of-the-Rings-Online-Client-%28Free-Game%29')" "$TITLE"
40+
41
    cd "$POL_System_TmpDir"
42
    POL_Download "$DOWNLOADURL" "$MDSUM"
43
    POL_SetupWindow_wait "$(eval_gettext '$TITLE is instaling.')" "$(eval_gettext '$TITLE instalation')"
44
    POL_Wine start /unix "$POL_System_TmpDir/$SETUPNAME"
45
fi
46
 
47
 
48-
	#or should i use p7zip ??
48+
49-
	unzip "LOTRO_US_FP_V3B3_042011.zip"
49+
50
mkdir "$WINEPREFIX/drive_c/users/$USER/Application Data/PyLotRO"
51
cat << EOF > "$WINEPREFIX/drive_c/users/$USER/Application Data/PyLotRO/LotROLinux.config"
52
<?xml version="1.0" ?><Settings><Default.Game>LOTRO</Default.Game><LOTRO><Wine.Application>Native</Wine.Application><Wine.Program>wine</Wine.Program><Wine.Debug>fixme-all</Wine.Debug><Wine.Prefix>$WINEPREFIX</Wine.Prefix><HiRes>False</HiRes><Game.Directory>C:/Program Files/Turbine/The Lord of the Rings Online</Game.Directory><PatchClient>patchclient.dll</PatchClient><Hide.Main.Window>False</Hide.Main.Window><Realm>Gilrain</Realm><Language>English</Language><Account>hyperfang8</Account></LOTRO></Settings>
53-
53+
EOF
54-
54+
POL_Shortcut "pylotro.exe" "$TITLE"
55
 
56
POL_SetupWindow_Close
57-
POL_Shortcut "TurbineLauncher.exe" "$TITLE"
57+