You are here
The forum
Civilization IV
Author | Replies |
Jump to the page: 1 - 2 - 3 | |
franfran | Monday 29 June 2009 at 23:32 |
franfran
|
Bonjour,
Le patch pour la version 1.74 étant nécessaire pour faire tourner le jeu, je propose d'inclure ça : #Patch v.1.74 POL_SetupWindow_download "Downloading patch 1.74... " "Civilization 4" "http://www.firaxis.com/downloads/Patch/Civ4Patch1.74_Final.exe" POL_SetupWindow_wait_next_signal "Installing patch 1.74 for Civilization 4...please wait patiently..." "Civilization 4" wine "$REPERTOIRE/tmp/Civ4/Civ4Patch1.74_Final.exe" POL_SetupWindow_detect_exit POL_SetupWindow_reboot exit Juste avec POL, impossible de lancer le jeu (et je n'arrive pas à trouver pourquoi…même avec la dernière version de wine et ) Il fait une erreur à la fin de l'installation du patch. J'ai donc installé la version 1.24 de Wine depuis le dépôt pour Ubuntu (et donc pas via POL). Le jeu tourne sans problème, même en 64 bits. Qu'en penser… ? Je redonne le script, si quelqu'un peut l'améliorer : #!/bin/bash if [ "$PLAYONLINUX" = "" ] then exit 0 fi source "$PLAYONLINUX/lib/sources" POL_SetupWindow_Init POL_SetupWindow_presentation "Civilization 4" "2K Games" "http://www.2kgames.com/civ4/home.htm" "DemonHypnos" "Civilization 4" select_prefix "$REPERTOIRE/wineprefix/Civilization 4/" POL_SetupWindow_prefixcreate POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" mkdir $REPERTOIRE/tmp/Civ4 cd $REPERTOIRE/tmp/Civ4 POL_SetupWindow_download "Downloading necessary dlls..." "Civilization 4" "http://m3fe.com/files/d3dx9_26.zip" POL_SetupWindow_download "Downloading necessary dlls..." "Civilization 4" "http://www.dllbank.com/zip/m/msxml3r.dll.zip" POL_SetupWindow_download "Downloading necessary dlls..." "Civilization 4" "http://www.m3fe.com/files/d3dx9_31.zip" POL_SetupWindow_download "Downloading necessary dlls..." "Civilization 4" "http://www.m3fe.com/files/d3dx9_32.zip" POL_SetupWindow_download "Downloading necessary dlls..." "Civilization 4" "http://www.m3fe.com/files/d3dx9_33.zip" POL_SetupWindow_download "Downloading necessary dlls..." "Civilization 4" "http://www.m3fe.com/files/d3dx9_34.zip" POL_SetupWindow_download "Downloading necessary dlls..." "Civilization 4" "http://www.dllbank.com/zip/m/msxml3.dll.zip" unzip d3dx9_31.zip unzip d3dx9_32.zip unzip d3dx9_33.zip unzip d3dx9_34.zip unzip d3dx9_26.zip unzip msxml3r.dll.zip unzip msxml3.dll.zip POL_SetupWindow_wait_next_signal "Installing Civilization 4...please wait patiently..." "Civilization 4" wine "$CDROM/setup.exe" #POL_SetupWindow_detect_exit POL_SetupWindow_reboot cp "$REPERTOIRE/tmp/Civ4/d3dx9_26.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/d3dx9_31.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/d3dx9_32.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/d3dx9_33.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/d3dx9_34.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/msxml3r.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/msxml3.dll" "$WINEPREFIX/drive_c/windows/system32" #DLL Overrides echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]" > $REPERTOIRE/tmp/Civ4/dlloverrides.reg echo "\\"msxml3r\\"=\\"native\\"" >> $REPERTOIRE/tmp/Civ4/dlloverrides.reg echo "\\"msxml3\\"=\\"native\\"" >> $REPERTOIRE/tmp/Civ4/dlloverrides.reg regedit $REPERTOIRE/tmp/Civ4/dlloverrides.reg POL_SetupWindow_reboot #Patch v.1.74 POL_SetupWindow_download "Downloading patch 1.74... " "Civilization 4" "http://www.firaxis.com/downloads/Patch/Civ4Patch1.74_Final.exe" POL_SetupWindow_wait_next_signal "Installing patch 1.74 for Civilization 4...please wait patiently..." "Civilization 4" wine "$REPERTOIRE/tmp/Civ4/Civ4Patch1.74_Final.exe" POL_SetupWindow_detect_exit POL_SetupWindow_reboot POL_SetupWindow_make_shortcut "Civilization 4" "Program Files/Firaxis Games/Sid Meier's Civilization 4/" "Civilization4.exe" "" "Civilization 4" POL_SetupWindow_Close exit exit Merci |
franfran | Thursday 20 August 2009 at 0:05 |
franfran
|
Bonjour
Je me suis ré-occupé de ce script. J'ai lu la doc, et je voudrais en profiter pour signaler que la doc française ne donne pas de liens vers la liste des "commandes playonlinux", seule la doc anglaise la donne. Il faudrait rajouter un lien ! J'ai donc pu améliorer le script : #!/bin/bash if [ "$PLAYONLINUX" = "" ]; then exit 0 fi #Load & Check dependencies source "$PLAYONLINUX/lib/sources" cfg_check #Translation : if ["$POL_LANG" == "fr"]; then DLL="Téléchargement des dll nécessaires…" Install="Installation de Civilization 4…\\nVeuillez patienter…" DLpatch="Téléchargement du patch version 1.74" PatchInstall="Installation du patch version 1.74 pour Civilization 4…\\nVeuillez patienter… " patchquestion="Avez-vous déjà le patch pour la version 1.74 (60,3 Mio)sur votre disque dur ?\\nSi non, le patch sera téléchargé automatiquement." browsepatch="Veuillez donner le chemin d'accès vers le patch. (fichier .exe)" else if [ "$POL_LANG" == "de" ]; then DLL="Nachladung den gebrauchten dlln…" Install="Civilization 4 wird installiert…\\nBitte warten…" DLpatch="achladung der patch version 1.74…" PatchInstall="Patch version 1.74 wird instaliert…\\nBitte warten…" patchquestion="Haben Sie schon den Patch version 1.74 auf Ihrem Dateintrager ?\\nWenn nicht, wird der patch automatisch installiert." browsepatch="Bitte geben Sie den Link des Patchs." else DLL="Downloading required dlls…" Install="Installing Civilization 4…\\nplease wait…" DLpatch="Downloading patch 1.74…" PatchInstall="Installing patch 1.74 for Civilization 4…\\n please wait…" patchquestion="Do you already have the patch to version 1.74 on your hard drive ?\\nIf you answer no, the patch will be automatically downloaded." browsepatch="Please select the path to the patch file." fi fi POL_SetupWindow_Init "$SITE/setups/Civilization 4/top.png" "$SITE/setups/Civilization 4/left.png" #FIXME : mettre des icones (cf page 1 du pdf) "The left.jpg picture must be about 150x356px and the top.jpg picture must be about 60x60px" POL_SetupWindow_presentation "Civilization 4" "2K Games" "http://www.2kgames.com/civ4/home.htm" "DemonHypnos" "Civilization 4" #Choix de la version de wine à utiliser : FIXME (checker si c'est la bonne version) POL_SetupWindow_install_wine "1.1.26" Use_WineVersion "1.1.26" select_prefix "$REPERTOIRE/wineprefix/Civilization 4/" POL_SetupWindow_prefixcreate POL_SetupWindow_cdrom POL_SetupWindow_check_cdrom "setup.exe" mkdir $REPERTOIRE/tmp/Civ4 cd $REPERTOIRE/tmp/Civ4 POL_SetupWindow_download "$DLL" "Civilization 4" "http://m3fe.com/files/d3dx9_26.zip" POL_SetupWindow_download "$DLL" "Civilization 4" "http://www.dllbank.com/zip/m/msxml3r.dll.zip" POL_SetupWindow_download "$DLL" "Civilization 4" "http://www.m3fe.com/files/d3dx9_31.zip" POL_SetupWindow_download "$DLL" "Civilization 4" "http://www.m3fe.com/files/d3dx9_32.zip" POL_SetupWindow_download "$DLL" "Civilization 4" "http://www.m3fe.com/files/d3dx9_33.zip" POL_SetupWindow_download "$DLL" "Civilization 4" "http://www.m3fe.com/files/d3dx9_34.zip" POL_SetupWindow_download "$DLL" "Civilization 4" "http://www.dllbank.com/zip/m/msxml3.dll.zip" unzip d3dx9_31.zip unzip d3dx9_32.zip unzip d3dx9_33.zip unzip d3dx9_34.zip unzip d3dx9_26.zip unzip msxml3r.dll.zip unzip msxml3.dll.zip POL_SetupWindow_wait_next_signal "$Install" "Civilization 4" wine "$CDROM/setup.exe" POL_SetupWindow_detect_exit POL_SetupWindow_reboot cp "$REPERTOIRE/tmp/Civ4/d3dx9_26.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/d3dx9_31.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/d3dx9_32.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/d3dx9_33.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/d3dx9_34.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/msxml3r.dll" "$WINEPREFIX/drive_c/windows/system32" cp "$REPERTOIRE/tmp/Civ4/msxml3.dll" "$WINEPREFIX/drive_c/windows/system32" #DLL Overrides echo "[HKEY_CURRENT_USER\\\\Software\\\\Wine\\\\DllOverrides]" > $REPERTOIRE/tmp/Civ4/dlloverrides.reg echo "\\"msxml3r\\"=\\"native\\"" >> $REPERTOIRE/tmp/Civ4/dlloverrides.reg echo "\\"msxml3\\"=\\"native\\"" >> $REPERTOIRE/tmp/Civ4/dlloverrides.reg regedit $REPERTOIRE/tmp/Civ4/dlloverrides.reg POL_SetupWindow_reboot #Patch v.1.74 POL_SetupWindow_question "$patchquestion" "Civilization 4" if [ "$APP_ANSWER" == "TRUE" ]; then cd $HOME POL_SetupWindow_browse "$browsepatch" "Civilization 4" "" cp $APP_ANSWER $REPERTOIRE/tmp/Civ4/Civ4Patch1.74_Final.exe else cd $REPERTOIRE/tmp/Civ4 POL_SetupWindow_download "$DLpatch" "Civilization 4" "http://www.firaxis.com/downloads/Patch/Civ4Patch1.74_Final.exe" fi POL_SetupWindow_wait_next_signal "$PatchInstall" "Civilization 4" wine "$REPERTOIRE/tmp/Civ4/Civ4Patch1.74_Final.exe" POL_SetupWindow_detect_exit POL_SetupWindow_reboot #Création du raccourci : POL_SetupWindow_make_shortcut "Civilization 4" "Program Files/Firaxis Games/Sid Meier's Civilization 4/" "Civilization4.exe" "$SITE/setups/Civilization 4/icon.xpm" "Civilization 4" #FIXME : s'occupuer de l'icone #Version de Wine à utiliser Set_WineVersion_Assign "1.1.26" "Civilization 4" POL_SetupWindow_Close #Vider le dossier temporaire : clean_tmp #FIXME : utiliser alsa ? => pas besoin je pense. exit exit Pour les icones, je les ai en png. Je pris l'icone depuis /Assets/res. J'ai le droit ? Pour les deux icones du début de script, je propose ça : http://www.civ4.com/pic/Civilization4.jpg et l'icone (pour la petite). Il y a t-il des questions de copyrigths à propos de ces images ? J'ai testé le patch, et je rencontre 3 gros problèmes : Bien que la variable POL_LANG vale fr chez moi, les messages sont en anglais. De plus, le premier detect_exit ne fonctionne pas (et n'a d'ailleur jamais fonctionné), c'est à dire que le script fait le reboot alors que le "wine setup.exe" est en train de tourner. Cela n'affecte pas l'install… mais bon… c'est un problème à résoudre, peut-être par une question du type : "Install finie ?" Enfin, Il y a une erreur affichée à la fin de l'install du patch, mais elle ne pose pas de pb, à priori. J'ai essayé de rajouter ce script dans la rubrique "les scripts", et il m'a été répondu qu'un script avec ce nom existe déjà. Merci Franfran |
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 dmcayonlinux.com