The forum

[Script] Runes of Magic Philippines

DVD Installation for RoM-PH

Author Replies
laibcoms Tuesday 27 October 2009 at 6:34
laibcomsAnonymous

This is for Runes of Magic Philippines DVD installation.

It works fine, but there are post-installation settings like installing winetricks in the RoM-PH wineprefix so you can install vc2005sp1 which is required by Runes of Magic.

Secondly, this regedit is might be needed if the EULA/login screen fails to show up:
[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]
"UseGLSL"="disabled"

* I did not include the regedit in the script below because the setting above is on a case-to-case basis.

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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
# Date: (2009-10-23 10-34)
# Last revision: (2009-10-27 13-00)
# Distribution used to test: Ubuntu 9.10
# Wine version used: 1.1.32
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
  
cd $REPERTOIRE/tmp
rm *.jpg
wget http://i43.tinypic.com/af7n9s.jpg --output-document=left.jpg
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
  
  
POL_SetupWindow_presentation "Runes of Magic" "Runewaker Entertainment" "www.runesofmagic.com.ph" "gameshogun.ws based on Asimov's and siGGismallz's script." "RunesOfMagic"
  
select_prefixe "$REPERTOIRE/wineprefix/RunesOfMagic"
POL_SetupWindow_prefixcreate
  
if [ "$POL_LANG" != "fr" ]
then
LNG_CHOOSE="Please choose the correct method of installation"
LNG_CHOOSE_TITLE="What kind of installation ?"
LNG_DVD="Install with one DVD"
  
LNG_DVD_TITLE="Installation DVD required"
LNG_MOUNT_DVD="Please mount the DVD."
LNG_WAIT_TITLE="Please wait while preparing installation..."
LNG_WAIT="Copying necessary installation files"
LNG_INSTALL_GO="Do not click on OK since you are not SURE the game has been installed.\\nIf you click on OK whereas the installation is not finished yet, you will have to install this game again."
LNG_CONFIRM="Are you sure Runes of Magic has been completely installed ?\\n(exept updates)\\nIf you click OK here, the game will be configured."
LNG_CONFIG="Configuring your installation..."
LNG_CONFIG_TILTE="Please wait"
LNG_INSTALL_FINISHED="Installation complete !"
fi
  
install_dvd ()
    {
        POL_SetupWindow_cdrom
        POL_SetupWindow_message "$LNG_MOUNT_DVD" "$LNG_DVD_TITLE"
        POL_SetupWindow_check_cdrom "DataFiles.01.cab"
         
        TEMP="$HOME/.PlayOnLinux/tmp/rom"
        chmod 777 $TEMP -R
        rm $TEMP -R
        mkdir -p $TEMP
        cd $REPERTOIRE/wineprefix/RunesOfMagic
         
        select_prefixe "$(pwd)"
        cd $WINEPREFIX/dosdevices
        rm ./*
        ln -s ../drive_c c:
        ln -s / z:
        ln -s $TEMP d:
         
        cd $TEMP
         
        POL_SetupWindow_wait_next_signal "$LNG_WAIT" "$LNG_WAIT_TITLE"
        cp $CDROM/* $TEMP
        POL_SetupWindow_detect_exit
    }
  
  
  
POL_SetupWindow_menu "$LNG_CHOOSE" "$LNG_CHOOSE_TITLE" "$LNG_DVD" "~"
  
ANSWER="$APP_ANSWER"
  
if [ "$ANSWER" == "$LNG_DVD" ]
then
    install_dvd
fi
  
wine "$TEMP/rom_installer.exe"
POL_SetupWindow_message "$LNG_INSTALL_GO"
POL_SetupWindow_message "$LNG_CONFIRM"
  
  
POL_SetupWindow_wait_next_signal "$LNG_CONFIG" "$LNG_CONFIG_TILTE"
  
#cd $WINEPREFIX/drive_c/Program\\ Files/Runes\\ of\\ Magic/
cd "$WINEPREFIX/drive_c/$PROGRAMFILES/e-Games/Runes Of Magic"
  
Set_SoundDriver alsa
fonts_to_prefixe
  
chmod 777 $TEMP -R
rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:
  
POL_SetupWindow_make_shortcut "RunesOfMagic" "$PROGRAMFILES/e-Games/Runes Of Magic" "Runes of Magic.exe" "" "Runes of Magic Philippines" "" "-game -opengl"
POL_SetupWindow_reboot
  
POL_SetupWindow_detect_exit
  
POL_SetupWindow_message "$LNG_INSTALL_FINISHED"
  
POL_SetupWindow_Close
exit

Edited by laibcoms


NSLW Tuesday 27 October 2009 at 7:46
NSLW

1)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
TEMP="$HOME/.PlayOnLinux/tmp/rom"
        chmod 777 $TEMP -R
        rm $TEMP -R
        mkdir -p $TEMP
        cd $REPERTOIRE/wineprefix/RunesOfMagic
  
        select_prefixe "$(pwd)"
        cd $WINEPREFIX/dosdevices
        rm ./*
        ln -s ../drive_c c:
        ln -s / z:
        ln -s $TEMP d:
  
        cd $TEMP
Does all is needed? The same here
1
2
3
4
chmod 777 $TEMP -R
rm $TEMP -R
cd $WINEPREFIX/dosdevices
rm ./d:

2) Use select_prefix
instead
select_prefixe

3) quote paths

4) What does POL_SetupWindow_detect_exit gives here?
1
2
3
4
5
6
POL_SetupWindow_make_shortcut "RunesOfMagic" "$PROGRAMFILES/e-Games/Runes Of Magic" "Runes of Magic.exe" "" "Runes of Magic Philippines" "" "-game -opengl"
POL_SetupWindow_reboot
  
POL_SetupWindow_detect_exit
  
POL_SetupWindow_message "$LNG_INSTALL_FINISHED"

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@playonlinux.com