1) Installation des utilitaires de Quakeforge :
pi@raspberrypi ~ $ cd JEUX/HEXEN2
pi@raspberrypi ~/JEUX/HEXEN2 $ wget http://prdownloads.sourceforge.net/quake/quakeforge-0.7.2.tar.gz
pi@raspberrypi ~/JEUX/HEXEN2 $ tar xvfz quakeforge-0.7.2.tar.gz
pi@raspberrypi ~/JEUX/HEXEN2 $ cd quakeforge-0.7.2
pi@raspberrypi ~/JEUX/HEXEN2/quakeforge-0.7.2 $ ./configure && make && sudo make install
pi@raspberrypi ~/JEUX/HEXEN2/quakeforge-0.7.2 $ cd ../hexen2-1.5.6/data1/
2) Téléchargement du wad de Hexen2 :
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1 $ wget https://miniordi.hacktech.dev/jeux/hexen2/hexen2.wad
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1 $ cd maps/
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $
3) Extraire les textures de .wad :
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ mkdir textures
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ cd textures
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps/textures $ cp ../hexen2.wad .
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps/textures $ wad -x hexen2.wad
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps/textures $ ls *.pcx
+0air.pcx rtex015.pcx rtex175.pcx rtex319.pcx rtex412a.pcx
+0eye.pcx rtex018.pcx rtex176.pcx rtex320.pcx rtex412b.pcx
...
rtex013.pcx rtex173.pcx rtex317.pcx rtex411a.pcx
rtex014.pcx rtex174.pcx rtex318.pcx rtex411.pcx
4) Modifier le fichier de conversion des textures de Doom vers Hexen 2 : Ouvrir :
convdefs.txt
Chercher :
gothic_block/blocks18c_3
Remplacer par :
rtex225.pcx
Chercher :
gothic_floor/largeblockfloor4
Remplacer par :
rtex105.pcx
Fichier de conversion des textures : convdefs.txt 4) Convertir le niveau de Doom en niveau de Quake : Exemples de niveaux Doom .wad : https://miniordi.hacktech.dev/jeux/doom/didac01/ https://miniordi.hacktech.dev/jeux/doom/didac02/
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ mv monniveau.wad in.wad
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ ./glbsp in.wad
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ ./doom2brush
5) Inclure le fichier des textures .wad : Sous Vim. Ouvrir :
out.map
Chercher :
"classname" "worldspawn"
Ajouter après :
"wad" "/home/pi/JEUX/HEXEN2/hexen2-1.5.6/data1/hexen2.wad"
Faire :
:%s/(.*$/& -1
7) Compiler le niveau :
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ ./qbsp out.map
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ ./vis out
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ ./light out
8) Lancer le jeu :
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6/data1/maps $ cd ../..
pi@raspberrypi ~/JEUX/HEXEN2/hexen2-1.5.6 $ ./hexen2 -width 640 -height 480 +map out