Forums

Diablo II - Lord of Destruction 1.12a

Auteur Réponses
gargamel Dimanche 1 Février 2009 à 17:00
gargamel

Bonjour à tous,

Un petit message pour vous soumettre ce script d'installation du patch 1.12a pour Diablo II LoD.

Ce patch permet entre autres choses de ne plus avoir besoin du CD pour jouer. Ce qui sommes toute est plutôt intéressant. Donc afin de permettre à tout un chacun de jouer à D2-LoD sans avoir le CD à chaque fois dans le mange-disque, voici un script, qui je l'espère rejoindra les autres dans le repo PlayOnLinux.

Voici le code du script :

Euh... En fait, du fait des petits caprices du forum (message trop long à son goût, caractères spéciaux '\ n' mal interprétés (la preuve j'ai du mettre un espace pour qu'il ne l'interprète pas !!!), ...) je suis dans l'incapacité de vous fournir le script dans de bonnes conditions.

Dès lors j'invite un des mainteneur du site à me contacter afin que je lui fournisse le script pour qu'il le mette à disposition de tous, sous une forme exploitable.

A tout de suite.


GarG
marieuh Dimanche 1 Février 2009 à 20:08
marieuh

salut, j'ai déplacé ton post dans la rubrique adéquate " vos créations" en français...

pour ce qui est du script, tu vas dans le menu "les scripts" à droite de ton écran et tu cliques sur "add a new script" et là, tu pourras soumettre ton script,

cheers,

If there is a problem, fill out complaint form and place it in an envelope addressed to the name of the hospital in which you were born....
gargamel Mercredi 4 Février 2009 à 22:17
gargamel

Bonsoir,

OK, pour la solution, et encore merci de t'être occupé de déplacer mon post. Je ne sais pas comment je me suis débrouillé, mais j'étais parti pour poster sur "vos créations" et à l'arrivée j'ai posté sur "Tests des scripts".

Bon en tous les cas, je vous envoie mon script.

Bonne soirée à tous. Encore merci à tous les collaborateurs de ce projet et à bientôt.

ciao


GarG
gargamel Samedi 7 Février 2009 à 14:23
gargamel

Dear all,

Today, while creating a "WarcraftIII-TFT-1.22a" PlayOnLinux script, I also fixed a little issue in the "DiabloIIexp-1.12a" PlayOnLinuxScript.

The D2exp script was not taking advantage of a previously downloaded patch, making it re-download the patch even, if it was present in the ~/.PlayOnLinux/tmp folder.

Here is the patch :

user@host$ diff -Nurp DiabloIIexp-1.12a~ DiabloIIexp-1.12a
--- DiabloIIexp-1.12a~ 2009-02-01 16:47:17.000000000 +0100
+++ DiabloIIexp-1.12a 2009-02-07 14:15:46.000000000 +0100
@@ -12,6 +12,9 @@ GAME_FULLNAME="Diablo II - Lord of Destr
GAME_VERSION="1.12a"
GAME_COPYRIGHT="© 2000 Blizzard Entertainment"
PATCH_URL="http://ftp.blizzard.com/pub/diablo2exp/patches/PC/LODPatch_112a.exe"
+PATCH_EXE=$(basename "${PATCH_URL}")
+PATCH_MD5="6d81757b6ad61a690f662e5d24d1e61f"
+PATCH_EXE_MD5="${PATCH_EXE}.md5"
PATCH_CHANGELOG="\
- Bug Fixes,
\
- Downloadable Installer Support,
\
@@ -107,25 +110,23 @@ done
mkdir -p ${REPERTOIRE}/tmp
cd ${REPERTOIRE}/tmp

-# Download the game patch
-POL_SetupWindow_download "${LNG_PATCH_DL}" "${GAME_FULLNAME}" "${PATCH_URL}"
-
-PATCH_EXE=$(basename "${PATCH_URL}")
-PATCH_MD5="${PATCH_EXE}.md5"
+# Download the game patch, if not done already.
+if [ ! -f "./${PATCH_EXE}" ] ; then
+ POL_SetupWindow_download "${LNG_PATCH_DL}" "${GAME_FULLNAME}" "${PATCH_URL}"
+fi

# Select wine prefix onto which the patch will be applied.
select_prefixe "${REPERTOIRE}/wineprefix/${GAME_PREFIX}/"

-# Inform the user of the next step to come.
-POL_SetupWindow_message "${LNG_PATCH_INSTALL}" "${GAME_FULLNAME}"
-
# Prepare the MD5 checksum of the downloaded patch.
-echo "6d81757b6ad61a690f662e5d24d1e61f ${PATCH_EXE}" > ${PATCH_MD5}
+echo "${PATCH_MD5} ${PATCH_EXE}" > ${PATCH_EXE_MD5}

# Check the the downloaded patch validity.
-md5sum -c ${PATCH_MD5}
+md5sum -c ${PATCH_EXE_MD5}

if [ "$?" = "0" ] ; then
+ # Inform the user of the next step to come.
+ POL_SetupWindow_message "${LNG_PATCH_INSTALL}" "${GAME_FULLNAME}"
# Apply the patch.
wine ${PATCH_EXE}
POL_SetupWindow_message "${LNG_PATCH_END}" "${GAME_FULLNAME}"
user@host$


Please add this fix to my previously committed "DiabloIIexp-1.12a" PlayOnLinux script.

Thanx a lot, and have a good game.


GarG