Вы находитесь здесь

Форум

Star Wars : Empire At War

Mais

Автор Replies
Berillions Friday 24 July 2009 at 21:38
Berillions

Voilà le script :
#!/bin/bash
# Date: (2009-10-10 00-00)
# Distribution used to test: Frugalware Current
# Wine version used: 1.1.30 
# Author: Berillions
# Graphic Card : GeForce GTX275
# Drivers : 185.18.36

#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
Title="Star Wars Empire at War"
Prefix="SWEAW"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique?"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera\\nterminée sous peine de devoir recommencer l'installation."
LNG_FILEPATCH="Selectionner le patch à installer"
LNG_INST="Patch pour $Title installé avec succès"
else
LNG_MEM="How much memory do your graphic card have got?."
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_FILEPATCH="Select patch file"
LNGINST="Patch for $Title has been installed successfully"
fi

patch_EmpireAtWar()
{
POL_SetupWindow_browse "$LNG_FILEPATCH" "$Title" ""
wine "$APP_ANSWER"
POL_SetupWindow_message "$LNG_INST" "$Title"
}

cd $REPERTOIRE/tmp
rm *.jpg
wget http://images3.wikia.nocookie.net/starwars/images/b/b3/Eaw_keyart.jpg --output-document="$REPERTOIRE/tmp/Eaw_keyart.jpg"
convert "$REPERTOIRE/tmp/Eaw_keyart.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"

POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
 
#Presentation
POL_SetupWindow_presentation "$Title" "Lucas Art" "http://www.lucasarts.com/games/swempireatwar/indexFlash.html" "Berillions" "$Prefix"
 
POL_SetupWindow_menu "$LNG_INSTALL" "Actions" "Install $Title~Patch game" "~"
 
if [ "$APP_ANSWER" == "Patch game" ]; then
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
patch_EmpireAtWar
POL_SetupWindow_Close
exit
fi 

#Installation de Wine
#POL_SetupWindow_install_wine "1.1.30"

select_prefixe "$REPERTOIRE/wineprefix/$Prefix"
POL_SetupWindow_prefixcreate
 
cd "$REPERTOIRE/ressources"
export POL_TITLE="$Prefix"
tricks d3dx9
 
#Taille de la mémoire graphique
POL_SetupWindow_textbox "$LNG_MEM" "$Title"
VMS="$APP_ANSWER"
 
#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
 
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe" 

#taking icon from the game
convert "$CDROM/Install/MediaCenter-Small.png" -geometry 32X32 "$REPERTOIRE/icones/32/$Title"

wine $CDROM/setup.exe
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
 
POL_SetupWindow_make_shortcut "$Prefix" "Program Files/LucasArts/Star Wars Empire at War/GameData" "sweaw.exe" "" "$Title"

Set_WineVersion_Assign "1.1.30" "$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

Edited by Berillions


Berillions Monday 27 July 2009 at 19:14
Berillions

Script de l'extension :

#!/bin/bash
# Date: (2009-10-10 00-02)
# Distribution used to test: Frugalware Current
# Wine version used: 1.1.30 
# Author: Berillions
# Graphic Card : GeForce GTX275
# Drivers : 185.18.36

#Vérifier que PlayOnLinux est bien exécuté avant
[ "$PLAYONLINUX" = "" ] && exit 0 
 
#Charger les librairies
source "$PLAYONLINUX/lib/sources"
 
Title="Star Wars Empire at War : Forces of Corruption"
Prefix="SWEAW"
 
if [ "$POL_LANG" == "fr" ]; then
LNG_MEM="La taille de votre mémoire graphique?"
LNG_WAIT_END="Appuyez sur \\"Suivant\\" UNIQUEMENT quand l'installation du jeu sera\\nterminée sous peine de devoir recommencer l'installation."
LNG_FILEPATCH="Selectionner le patch à installer"
LNG_INST="Patch pour $Title installé avec succès"
LNG_GAME="Vous devez installer Star Wars Empire at War pour installer cette extension"
else
LNG_MEM="How much memory do your graphic card have got?."
LNG_WAIT_END="Click on \\"Next\\" ONLY when the game installation
is finished or you will have to redo the installation."
LNG_FILEPATCH="Select patch file"
LNGINST="Patch for $Title has been installed successfully"
LNG_GAME="You must install Star Wars Empire at War to install this extension"
fi

patch_EmpireAtWar()
{
POL_SetupWindow_browse "$LNG_FILEPATCH" "$Title" ""
wine "$APP_ANSWER"
POL_SetupWindow_message "$LNG_INST" "$Title"
}

cd $REPERTOIRE/tmp
rm *.jpg
wget http://upload.wikimedia.org/wikipedia/en/b/be/Star_Wars_-_Empire_at_War_-_Forces_of_Corruption_Coverart.png --output-document="$REPERTOIRE/tmp/Eawfoc_keyart.jpg"
convert "$REPERTOIRE/tmp/Eawfoc_keyart.jpg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpg"

POL_SetupWindow_Init "" "$REPERTOIRE/tmp/left.jpg"
 
#Presentation
POL_SetupWindow_presentation "$Title" "Lucas Art" "http://www.lucasarts.com/games/swempireatwar/indexFlash.html" "Berillions" "$Prefix"
 
#Installation de Wine
POL_SetupWindow_install_wine "1.1.30"

if [ ! -d "$REPERTOIRE/wineprefix/$Prefix" ];
then
POL_SetupWindow_message "$LNG_GAME" "$Title"
POL_SetupWindow_Close
exit
fi

POL_SetupWindow_menu "$LNG_INSTALL" "Actions" "Install $Title~Patch game" "~"
 
if [ "$APP_ANSWER" == "Patch game" ]; then
select_prefix "$REPERTOIRE/wineprefix/$Prefix"
patch_EmpireAtWar
POL_SetupWindow_Close
exit
fi
 
select_prefixe "$REPERTOIRE/wineprefix/$Prefix"
 
#Configuration de Wine
Set_OS winxp
 
#Détection du cd-rom
POL_SetupWindow_cdrom
POL_SetupWindow_check_cdrom "setup.exe" 

#taking icon from the game
convert "$CDROM/Install/MediaCenter-Mid.png" -geometry 32X32 "$REPERTOIRE/icones/32/$Title"

wine $CDROM/setup.exe
POL_SetupWindow_message "$LNG_WAIT_END" "$Title"
 
POL_SetupWindow_make_shortcut "$Prefix" "Program Files/LucasArts/Star Wars Empire at War Forces of Corruption" "swfoc.exe" "" "$Title"

Set_WineVersion_Assign "1.1.30" "$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

Edited by Berillions


Berillions Saturday 10 October 2009 at 0:17
Berillions

Post mise à jour avec correction du script de SW Empire at War et ajout de son extension.

Star Wars EaW :
[img=http://img180.imageshack.us/img180/7273/sweaw.th.png]

Star Wars EaW FoC :

darktytanus Wednesday 24 December 2014 at 14:24
darktytanusAnonymous

Bonjour, comment faire pour mette ces scripts ? je suis novice, merci :) 

On doit en faire quoi ? Parce que Force of Corruption ne veut pas s'installer :/

darktytanus Wednesday 31 December 2014 at 12:31
darktytanusAnonymous

Quelqu'un pour répondre que dois-je faire avec ces scripts ? svp ... :( 

petch Wednesday 31 December 2014 at 20:15
petch

En premier lieu les réécrire ou au moins sérieusement les mettre à jour : ils ont plus de 5 ans, soit une éternité...

darktytanus Thursday 1 January 2015 at 8:26
darktytanusAnonymous

C'est gentil de vouloir m'aider mais je ne connais rien en informatique et je ne saurai les mettre à jour :/ 

Mais par exemple les scripts donnés en haut par Berillons, je fais quoi pour l'incorporé dans Play On Mac ? :) 

Ps : Lorsque je lance le launcher avec Play on Mac, je ne peux cliquer sur aucun bouton pourtant quand je passe dessus il y a bien la "sélection" mais par contre pas de clique possible :/ C'est assez frustrant .. le script pourrait aider ce problème ? 

Merci en tout cas :D

Edited by darktytanus

petch Thursday 1 January 2015 at 10:03
petch

Une façon d'utiliser des scripts qui ne viennent pas du dépôt, c'est de les copier-coller dans un fichier texte (texte pur, aucun formatage), puis dans PlayOnMac,

Outils > Exécuter un script local

darktytanus Thursday 1 January 2015 at 17:45
darktytanusAnonymous

Danke schön ! 

Вы находитесь здесь: Index > Vos créations > Star Wars : Empire At War

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