Vous êtes ici > Les forums > Vos créations > Perfect World International sv ru pl es en

Les forums

Perfect World International

Nouveau  - Répondre
Auteur Posts
ang1fr Le Vendredi 20 Mai 2011 à 14:04 - [Citer]
Membre

Membre
Bonjour,

Voici le script pour installer Perfect World International.

La procédure est de télécharger le script sur votre ordinateur puis de lancer le script dans playonlinux.

Bonne journée.

#!/bin/bash
#Date : (20110-05-20)
# Last revision : (20110-05-20)
# Wine version used : 1.2.2
# Distribution used to test : Opensuse 11.4 64 bits
# Author : Ang1fr
 
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
TITLE="Perfect World"
TITLE1="Update Perfect World"
PREFIX="PerfectWorld"
WORKING_WINE_VERSION="1.2.2"
     
     
    POL_SetupWindow_Init
    POL_SetupWindow_presentation "$TITLE" "Perfect World Entertainment" "http://www.perfectworld.com" "Ang1fr" "$PREFIX"
    if [ "$POL_LANG" == "fr" ] ; then
    CHOOSE="Sélectionner le fichier client Perfect World. \n Veuillez patenter pendant l'installation. \n Cela peut être long (heures)"
    GAME_VMS=" Attendez la fin de l'installation avant de poursuivre.\n Quelle est la taille de votre mémoire vidéo ?"
    else #English messages
    CHOOSE="Select the client file Perfect World.\n Please wait during installation. \n May be long (hours)"
    GAME_VMS="Wait the end of installation to follow. \n How much video ram is ?"
    fi
    # Use current wine
    POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
    Set_WineVersion_Session "$WORKING_WINE_VERSION"

    select_prefixe "$HOME/.PlayOnLinux/wineprefix/$PREFIX/"
    POL_SetupWindow_prefixcreate

    #fetching PROGRAMFILES environmental variable
    PROGRAMFILES="Program Files"
    POL_LoadVar_PROGRAMFILES

    #Installing mandatory dependencies
    POL_Call POL_Install_VCRUN6

    #Installation
    POL_SetupWindow_browse "$CHOOSE" "$TITLE"
   
    SETUP_EXE="$APP_ANSWER"
    wine start /unix "$SETUP_EXE"

#asking about memory size of graphic card
    POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE"     "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256"
    VMS="$APP_ANSWER"
 
    cd "$PREFIX/drive_c/windows/temp/"
    echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > vms.reg
    echo "\"VideoMemorySize\"=\"$VMS\"" >> vms.reg
    regedit vms.reg

    #Setting mandatory wine modifications
    cd $REPERTOIRE/tmp/
    echo "[HKEY_CURRENT_USER\Software\Wine\DirectSound]" > $REPERTOIRE/tmp/directsound.reg
    echo "\"DefaultSampleRate\"=\"48000\"" >> $REPERTOIRE/tmp/directsound.reg
    regedit $REPERTOIRE/tmp/directsound.reg

    echo "[HKEY_CURRENT_USER/Software/Wine/Drivers]" > $REPERTOIRE/tmp/Drivers.reg
    echo "\"Audio\"=\"alsa\"" >> $REPERTOIRE/tmp/Drivers.reg
    regedit $REPERTOIRE/tmp/Drivers.reg


    echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > "$REPERTOIRE/tmp/Direct3D.reg"
    echo "\"DirectDrawRenderer\"=\"opengl\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
    echo "\"Nonpower2Mode \"=\"repack\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
    echo "\"OffscreenRenderingMode\"=\"fbo\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
    echo "\"PixelShaderMode\"=\"enabled\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
    echo "\"RenderTargetLockMode\"=\"auto\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
    echo "\"UseGLSL\"=\"disabled\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
    regedit "$REPERTOIRE/tmp/Direct3D.reg"

   
    POL_SetupWindow_auto_shortcut "$PREFIX" "Launcher.exe" "$TITLE" "" ""
    POL_SetupWindow_auto_shortcut "$PREFIX" "patcher.exe" "$TITLE1" "" ""
     
    Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
    Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE1"
 
    POL_SetupWindow_Close
    exit

Tutul Le Vendredi 20 Mai 2011 à 18:19 - [Citer]
Modérateur

Modérateur
Il semblerait qu'il y a quelque petite erreur

1- Set_WineVersion_Session "$WORKING_WINE_VERSION", ne semble pas exister en code POL

2- PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
pas vraiment obligatoire (sauf si tu as de très bonne raison de le mettre). cfr topic sur la création de script de Tinou...

3- POL_Call POL_Install_VCRUN6 POL ne semble pas connaître POL_Install_VCRUN6 donc vérifie ce que tu as écris.

Et sinon, il y a des fautes de frappe (Veuillez patenter pendant l'installation). Et tu devrais plutôt faire comme ça :
CHOOSE="Sélectionner le fichier client Perfect World"
INSTALLATION="Veillez patienter pendant l'installation..." (-> à mettre après $CHOOSE)
GAME_VMS="Quelle est la taille de votre mémoire vidéo ?"
END="$TITLE à été installé avec succes !" (-> à mettre avans  POL_SetupWindow_Close )


Sinon ça me semble correcte !

Perfect World International existe-t-il déjà pour mac ou pas ?
Sinon on peut le tester sur POM...

The most important thing in live is happiness !


ang1fr Le Samedi 21 Mai 2011 à 18:14 - [Citer]
Membre

Membre
Bonjour,

Merci pour ta réponse, j'ai fait des modifications.

Pour POL_Call POL_Install_VCRUN6 il existe et POL télécharge vcrun6.
Pour Set_WineVersion_Session "$WORKING_WINE_VERSION", je l'ai copié sur un script validé donc cela doit être bon.

Le jeu fonctionne bien jusqu'à maintenant.

Voici le nouveau script :


#!/bin/bash
#Date : (20110-05-18)
# Last revision : (20110-05-18)
# Wine version used : 1.2.2
# Distribution used to test : Opensuse 11.4 64 bits
# Author : Ang1fr
 
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
TITLE="Perfect World Internationnal"
TITLE1="Update Perfect World Internationnal"
PREFIX="PerfectWorld"
WORKING_WINE_VERSION="1.2.2"
     
     
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Perfect World Entertainment" "http://www.perfectworld.com" "Ang1fr" "$PREFIX"

if [ "$POL_LANG" == "fr" ] ; then
CHOOSE="Sélectionner le fichier client Perfect World. \n Veuillez patienter pendant l'installation. \n Cela peut être long (heures)"
GAME_VMS=" Attendez la fin de l'installation avant de poursuivre.\n Quelle est la taille de votre mémoire vidéo ?"
END="$TITLE à été installé avec succès !"
else #English messages
CHOOSE="Select the client file Perfect World.\n Please wait during installation. \n May be long (hours)"
GAME_VMS="Wait the end of installation to follow. \n How much video ram is ?"
END="$Title installation is a succes ! "
fi
    
# Use current wine
POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
Use_WineVersion   "$WORKING_WINE_VERSION"

select_prefixe "$REPERTOIRE/wineprefix/$PREFIX/"

#Installing mandatory dependencies
POL_Call POL_Install_vcrun6

#Installation
POL_SetupWindow_browse "$CHOOSE" "$TITLE"
   
SETUP_EXE="$APP_ANSWER"
wine start /unix "$SETUP_EXE"

#asking about memory size of graphic card
POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE"     "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256"
VMS="$APP_ANSWER"
 
cd "$PREFIX/drive_c/windows/temp/"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > vms.reg
echo "\"VideoMemorySize\"=\"$VMS\"" >> vms.reg
regedit vms.reg

#Setting mandatory wine modifications
cd $REPERTOIRE/tmp/
echo "[HKEY_CURRENT_USER\Software\Wine\DirectSound]" > $REPERTOIRE/tmp/directsound.reg
echo "\"DefaultSampleRate\"=\"48000\"" >> $REPERTOIRE/tmp/directsound.reg
regedit $REPERTOIRE/tmp/directsound.reg

echo "[HKEY_CURRENT_USER/Software/Wine/Drivers]" > $REPERTOIRE/tmp/Drivers.reg
echo "\"Audio\"=\"alsa\"" >> $REPERTOIRE/tmp/Drivers.reg
regedit $REPERTOIRE/tmp/Drivers.reg


echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"DirectDrawRenderer\"=\"opengl\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"Nonpower2Mode \"=\"repack\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"OffscreenRenderingMode\"=\"fbo\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"PixelShaderMode\"=\"enabled\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"RenderTargetLockMode\"=\"auto\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"UseGLSL\"=\"disabled\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
regedit "$REPERTOIRE/tmp/Direct3D.reg"

   
POL_SetupWindow_auto_shortcut "$PREFIX" "Launcher.exe" "$TITLE" "" ""
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"

POL_SetupWindow_auto_shortcut "$PREFIX" "patcher.exe" "$TITLE1" "" ""
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE1"
 
POL_SetupWindow_message "$END"

POL_SetupWindow_Close
exit


Edité par Tutul

Tutul Le Samedi 21 Mai 2011 à 19:52 - [Citer]
Modérateur

Modérateur
J'ai juste retoucher select_prefix ($REPERTOIRE = $HOME/Playonlinux) et une faute d'ortho en anglais (pas d'accent sur succes)



PS : J'ai remplacé ta commande pour wine par Use_WineVersion qui me semble plus adéquate.

PS2 : écrit ton script dans dans le menu "logiciels supportés" du site de POL (met le dans la catégorie "Testing"). Tu peux également coché "compatible pour POM" (pense aussi a eux ).

Edité par Tutul


The most important thing in live is happiness !


Tutul Le Samedi 21 Mai 2011 à 22:42 - [Citer]
Modérateur

Modérateur
Ton script corrigé doit ressembler à cela (il faut mettre un message d'attende durant l'installation) :
#!/bin/bash
#Date : (2011-05-18)
# Last revision : (20110-05-21)
# Wine version used : 1.2.2
# Distribution used to test : Opensuse 11.4 64 bits
# Author : Ang1fr
 
[ "$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
 
TITLE="Perfect World Internationnal"
TITLE1="Update Perfect World Internationnal"
PREFIX="PerfectWorld"
WORKING_WINE_VERSION="1.2.2"
 
 
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Perfect World Entertainment" "http://www.perfectworld.com" "Ang1fr" "$PREFIX"
 
if [ "$POL_LANG" == "fr" ] ; then
CHOOSE="Sélectionner le fichier client Perfect World"
INSTALLATION="Veillez patienter pendant l'installation..."
GAME_VMS="Quelle est la taille de votre mémoire vidéo ?"
END="$TITLE à été installé avec succès !"
else #English messages
CHOOSE="Select the client file Perfect World."
INSTALLATION="Please wait during the installation..."
GAME_VMS="How much video ram is ?"
END="$Title installation is a succes ! "
fi
 
# Use current wine
POL_SetupWindow_install_wine "$WORKING_WINE_VERSION"
Use_WineVersion "$WORKING_WINE_VERSION"
 
select_prefixe "$REPERTOIRE/wineprefix/$PREFIX/"
 
#Installing mandatory dependencies
POL_Call POL_Install_vcrun6
 
#Installation
POL_SetupWindow_browse "$CHOOSE" "$TITLE"

SETUP_EXE="$APP_ANSWER"
wine start /unix "$SETUP_EXE"
POL_SetupWindow_message "$INSTALLATION" "$TITLE"
 
#asking about memory size of graphic card
POL_SetupWindow_menu_list "$GAME_VMS" "$TITLE" "128-256-320-384-512-640-768-896-1024-1792-2048" "-" "256"
VMS="$APP_ANSWER"
 
cd "$PREFIX/drive_c/windows/temp/"
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > vms.reg
echo "\"VideoMemorySize\"=\"$VMS\"" >> vms.reg
regedit vms.reg
 
#Setting mandatory wine modifications
cd $REPERTOIRE/tmp/
echo "[HKEY_CURRENT_USER\Software\Wine\DirectSound]" > $REPERTOIRE/tmp/directsound.reg
echo "\"DefaultSampleRate\"=\"48000\"" >> $REPERTOIRE/tmp/directsound.reg
regedit $REPERTOIRE/tmp/directsound.reg
 
echo "[HKEY_CURRENT_USER/Software/Wine/Drivers]" > $REPERTOIRE/tmp/Drivers.reg
echo "\"Audio\"=\"alsa\"" >> $REPERTOIRE/tmp/Drivers.reg
regedit $REPERTOIRE/tmp/Drivers.reg
 
 
echo "[HKEY_CURRENT_USER\\Software\\Wine\\Direct3D]" > "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"DirectDrawRenderer\"=\"opengl\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"Nonpower2Mode \"=\"repack\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"OffscreenRenderingMode\"=\"fbo\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"PixelShaderMode\"=\"enabled\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"RenderTargetLockMode\"=\"auto\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
echo "\"UseGLSL\"=\"disabled\"" >> "$REPERTOIRE/tmp/Direct3D.reg"
regedit "$REPERTOIRE/tmp/Direct3D.reg"
 
 
POL_SetupWindow_auto_shortcut "$PREFIX" "Launcher.exe" "$TITLE" "" ""
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE"
 
POL_SetupWindow_auto_shortcut "$PREFIX" "patcher.exe" "$TITLE1" "" ""
Set_WineVersion_Assign "$WORKING_WINE_VERSION" "$TITLE1"
 
POL_SetupWindow_message "$END"
 
POL_SetupWindow_Close
exit


The most important thing in live is happiness !


Tutul Le Samedi 21 Mai 2011 à 23:05 - [Citer]
Modérateur

Modérateur
J'ai les images pour ton script (si tu les acceptes) :
1- left (JPG de 150*356)


2- top (JPG de 64*64)


3- icone (PNG de 205*205 -> POM l'accepte comme ça en tt cas)


Si c'est bon pour toi, je demanderais qu'on les télécharge sur le site...
Dit nous vite si ça te convient (c'est ton script après tt )

Edité par Tutul


The most important thing in live is happiness !


ang1fr Le Dimanche 22 Mai 2011 à 12:20 - [Citer]
Membre

Membre
Bonjour,

J'ai fait les dernières modifications (orthographe) et je l'ai déposé dans testing. Néanmoins, je ne le vois pas donc je suppose qu'il y a une étape de validation.

En combien de temps, il passera dans jeu ?

Pour les images pas de problèmes ...

Merci pour tout.
Tutul Le Dimanche 22 Mai 2011 à 17:49 - [Citer]
Modérateur

Modérateur
Bon je vais demander de télécharger les images vu que c'est OK...
Il faut que tu modifie encore ton script pour inclure les images et l'icone (si tu peux encore le faire) !

1)
REMPLACE "POL_SetupWindow_Init" PAR
"rm "$REPERTOIRE/tmp/*.jpg"
POL_GetSetupImages "http://files.playonlinux.com/resources/setups/PWI/top.jpg" "http://files.playonlinux.com/resources/setups/PWI/left.jpg" "$TITLE"
POL_SetupWindow_InitWithImages
"

2)
REMPLACE "POL_SetupWindow_auto_shortcut "$PREFIX" "Launcher.exe" "$TITLE" "" """
PAR "POL_SetupWindow_auto_shortcut "$PREFIX" "Launcher.exe" "$TITLE" "PWI.png" """

NB: tu dois impérativement respecter le nom mit en rouge (les images seront charger sous se nom) !!!

PS: Oui il faut attendre que ton script soit valider...


EDIT = Les images vont se télécharger et si tu ne sait pas modifier ton script, dit le et quelqu'un le fera pour toi...



Edité par Tutul


The most important thing in live is happiness !


ang1fr Le Dimanche 22 Mai 2011 à 19:52 - [Citer]
Membre

Membre
C'est fait !
Tutul Le Lundi 23 Mai 2011 à 10:49 - [Citer]
Modérateur

Modérateur
Tu n'a plus qu'à attendre que les images soit télécharger et que t'on script soit validé

PS : tu as penser à cocher compatible POM ???

The most important thing in live is happiness !


ang1fr Le Lundi 23 Mai 2011 à 12:01 - [Citer]
Membre

Membre
Oui, j'ai coché compatible POM. Mais à propos, comment on sait si c'est compatible POM ou pas ?
Tutul Le Lundi 23 Mai 2011 à 17:01 - [Citer]
Modérateur

Modérateur
Trrrrès simple : on teste
En fait, pour la plupart des programmes, il y a pas de soucis (Attention au version de wine car elle ne se retrouve pas tt sur POM, elles sortent plus tard). MAIS pour les jeux, il faut tester ou demander à quelqu'un de tester (moi j'ai testé ton début de script qui est nickel) car il faut parfois des réglages spécifiques pour Linux et d'autres pour OSX. Dès que ton script sera disponible quelqu'un (voir peut-être moi ) va surement le tester sur POM et en faire des retours...
Sinon, on essaye de synchroniser POM et POL pour que les scripts puisse fonctionner sur les deux (sauf pour les réglages des OS évidement ), parce que avant c'était pas le cas (rien que pour les images d'installation). Si tu veux plus d'info, va voir les script (et pour les script compatible POL/POM va voir sur le site de POM) ou ici : http://www.playonlinux.com/en/page-19-PlayOnLinux_script_functions_reference.html !

Edité par Tutul


The most important thing in live is happiness !


ang1fr Le Jeudi 26 Mai 2011 à 15:33 - [Citer]
Membre

Membre
ok
Tutul Le Mercredi 8 Juin 2011 à 19:01 - [Citer]
Modérateur

Modérateur
Voilà pour toi, les images on été chargé...

PS : j'ai voulu tester mais s'est vrai que le téléchargement est trrrrrrès long

Edité par Tutul


The most important thing in live is happiness !


ang1fr Le Jeudi 9 Juin 2011 à 12:01 - [Citer]
Membre

Membre
Pour moi, le téléchargement a duré 1 heure et demi. Il le précise sur le site de perfect world international. Impossible de faire autremement, donc lancer le script et puis au téléchargement faire autrechose ...
kingzo Le Samedi 7 Janvier 2012 à 17:20 - [Citer]
Membre

Membre
Bonsoir, je suis nouveau dans l'utilisation de playonlinux, je voudrais savoir comment télécharger ce script pour faire fonctionner PWI sur mon ordinateur svp.
Merci et bonne soirée.
Il n'y a rien à voir ici