The forum

Worms 3D

Author Replies
massimiliano0790 Friday 26 November 2010 at 0:14
massimiliano0790Anonymous

Creato lo script per Worms 3D. Funzionante. Provare per credere

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
#!/bin/bash
# Wine version used : 1.2
# Distribution used to test : Debian Lenny
# Author : Maximo90
# Licence : Retail
  
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
  
TITLE="Worms 3D"
PREFIX="worms3d"
WORKINGWINEVERSION="1.2"
  
POL_SetupWindow_make_icon_for_shortcut()
{
convert "$HOME/.local/share/icons/$2" -geometry 32X32 "$REPERTOIRE/icones/32/$1"
}
  
#starting the script
wget http://www.clshack.it/wp-content/uploads/2009/08/worms3D.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpeg"
  
POL_SetupWindow_presentation "$TITLE" "Team 17" "http://www.worms3d.com/index.html?checkcookie" "Maximo90" "$PREFIX"
  
#asking for CDROM and checking if it's correct one
POL_SetupWindow_message "Please insert $TITLE media into your disk drive."
POL_SetupWindow_cdrom
cd "$CDROM"
CHECK=$(find . -iwholename ./setup.exe | cut -d'/' -f2)
POL_SetupWindow_check_cdrom "$CHECK"
  
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
  
#downloading specific Wine
POL_SetupWindow_install_wine "$WORKINGWINEVERSION"
Use_WineVersion "$WORKINGWINEVERSION"
  
#creating application's own prefix
POL_SetupWindow_prefixcreate
  
#fetching PROGRAMFILES environmental variable
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
  
#adding CD-ROM as drive D: to winecfg
cd "$WINEPREFIX/dosdevices"
ln -s "$CDROM" D:
  
cd "$WINEPREFIX/drive_c/windows/temp/"
echo "[HKEY_LOCAL_MACHINE\\\\Software\\\\Wine\\\\Drives]" > cdrom.reg
echo "\\"D:\\"=\\"cdrom\\"" >> cdrom.reg
regedit cdrom.reg
  
sleep 5
  
#starting installation
POL_SetupWindow_wait_next_signal "Installation in progress..." "$TITLE"
wine "$CDROM/$CHECK"
POL_SetupWindow_detect_exit
  
#making shortcut
POL_SetupWindow_make_shortcut "$PREFIX" "Team17/Worms 3D" "Launcher.exe" "" "$TITLE"
  
Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TITLE"
POL_SetupWindow_make_icon_for_shortcut "$TITLE"
  
POL_SetupWindow_message "$TITLE has been installed successfully." "$TITLE"
  
POL_SetupWindow_message_image "Please note that this game has a copy protection system\\nand sadly, it prevents Wine from running the game.\\n\\nPlayOnLinux will not provide any help concerning any illegal\\nstuff." "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"
  
POL_SetupWindow_Close
exit
Salvatos Friday 26 November 2010 at 0:38
SalvatosAnonymous

Thank you :) I'm sure it will be reviewed shortly.

Disclaimer: I'm a noob, not a dev; my advice is only a guess.
Attention : Je suis aussi noob que vous, prenez mes suggestions avec un grain de sel ;)
You are here: Index > Your creations. > Worms 3D

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