Forums

[Script]Swat 4

Auteur Réponses
CKDevelop Vendredi 11 Décembre 2009 à 16:58
CKDevelop

Bon voilà le jeu marche sans souci...enfin sauf la rotation 360° qui chie comme sur Rainbow Six Vegas.
Au passage je tiens à remercier Berrillions qui sans le savoir via ses scripts ma permis de comprendre en partie la syntaxe des scripts POL...

Icone du jeu:


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
#! /bin/bash
# Date: (2009-12-11 13-58)
# Distribution used to test: Ubuntu 9.10
# Wine version used: 1.1.34
# Author: CKDevelop
# Graphic Card : GeForce 8600 GT
# Drivers : 185.18.36
  
#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0
  
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
  
Title="Swat 4"
Prefix="Swat4"
  
if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique? (Ex : 512)"
LNG_INSTALL="Quelle version avez-vous?"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera
terminée sous peine de devoir recommencer l'installation."
LNG_GAME="Selectionnez le fichier d'installation"
else
LNG_MEM="How much memory do your graphic card have got? (Ex : 512)"
LNG_INSTALL="What version have you got?"
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_GAME="Select the installation file"
fi
  
cd "$REPERTOIRE/tmp"
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/7/71/SWAT_4_Coverart.png --output-document="$REPERTOIRE/tmp/$Prefix.png"
convert "$REPERTOIRE/tmp/$Prefix.png" -scale 150x356\\! "$REPERTOIRE/tmp/left.png"
  
POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.png"
  
#Presentation
POL_SetupWindow_presentation "$Title" "Vivendi Universal Games and Sierra Entertainment" "http://www.swat4.com" "CKDevelop" "$Prefix"
  
#Installation de Wine
POL_SetupWindow_install_wine "1.1.34"
Use_WineVersion "1.1.34"
  
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
  
#fetching PROGRAMFILES environmental variable
PROGRAMFILES=`wine cmd /c echo "%ProgramFiles%"`
PROGRAMFILES=${PROGRAMFILES:3}
  
#Taille de la mémoire graphique
POL_SetupWindow_menu_list "$LNG_MEM" "$Title" "32-64-128-256-384-512-768-896-1024-2048" "-" "256"
VMS="$APP_ANSWER"
  
if [ "$VMS" -lt "128" ]; then
    POL_SetupWindow_message_image "$LNG_VMS_ERROR" "$Title" "$PLAYONLINUX/themes/tango/warning.png"
fi
  
#Réglage DirectDrawRenderer
cd "$WINEPREFIX/drive_c/windows/temp"
echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\Direct3D]" > OGL.reg
echo "\\"VideoMemorySize\\"=\\"$VMS\\"" >> OGL.reg
regedit OGL.reg
  
#Configuration de Wine
Set_OS winxp
  
#Création Icone
cd "$REPERTOIRE/ressources"
convert "$CDROM/autorun.ico" -geometry 32X32 "swat4ico.png"
mv "$REPERTOIRE/ressources/swat4ico.png" "$REPERTOIRE/icones/32/$Title"
  
POL_SetupWindow_menu "$LNG_INSTALL" "Actions" "CD version~Downloaded version" "~"
  
if [ "$APP_ANSWER" == "CD version" ]; then
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe"
  
wine "$CDROM/setup.exe"
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
 
elif [ "$APP_ANSWER" == "Downloaded version" ]
then
POL_SetupWindow_browse "$LNG_GAME" "$Title" ""
wine "$APP_ANSWER"
  
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
fi
  
POL_SetupWindow_make_shortcut "$Prefix" "$PROGRAMFILES/Sierra/SWAT 4/Content/System" "Swat4.exe" "" "$Title"
  
Set_WineVersion_Assign "1.1.34" "$Title"
  
POL_SetupWindow_message_image "Please note that this game has a copy protection system
and sadly, it prevents Wine from running the game.
PlayOnLinux will not provide any help concerning any illegal
stuff." "Note about copy protection" "$PLAYONLINUX/themes/tango/warning.png"
  
POL_SetupWindow_Close
exit


voilà ++

Edité par CKDevelop

Vous êtes ici: Index > Vos créations > [Script]Swat 4

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