Installation de Daimonin et de Crossfire

Installation de Daimonin et de Crossfire.

I/ Installation de Daimonin.

1/ Installation des paquets de développement.

pi@raspberrypi:~ $ sudo apt-get install flex autoconf automake libsdl-sound1.2-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-net1.2-dev libphysfs-dev libcurl4-openssl-dev

2/ Création du répertoire de travail.

pi@raspberrypi:~ $ mkdir -p GAME/DAIMONIN/
pi@raspberrypi:~ $ cd GAME/DAIMONIN/
pi@raspberrypi:~/GAME/DAIMONIN $ 

3/ Téléchargement du code source.

pi@raspberrypi:~/GAME/DAIMONIN $ wget https://sourceforge.net/code-snapshots/svn/d/da/daimonin/code/daimonin-code-r8759-trunk.zip

4/ Décompression de l’archive.

pi@raspberrypi:~/GAME/DAIMONIN $ unzip daimonin-code-r8759-trunk.zip 

5/ Renommage du répertoire du code source.

pi@raspberrypi:~/GAME/DAIMONIN $ mv daimonin-code-r8759-trunk daimonin
pi@raspberrypi:~/GAME/DAIMONIN $ cd daimonin/client/make/linux/
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/client/make/linux $ 

6/ Configuration de la compilation.

pi@raspberrypi:~/GAME/DAIMONIN/daimonin/client/make/linux $ autoconf 
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/client/make/linux $ ./bootstrap 
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/client/make/linux $ ./configure 
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/client/make/linux $ chmod 777 make_utils/install-sh

7/ Compilation.

pi@raspberrypi:~/GAME/DAIMONIN/daimonin/client/make/linux $ make

8/ Installation.

pi@raspberrypi:~/GAME/DAIMONIN/daimonin/client/make/linux $ make install
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/client/make/linux $ cd ../../../..
pi@raspberrypi:~/GAME/DAIMONIN $ 

9/ Téléchargement de ‘daimonin mapmaker’.

https://www.daimonin.org/downloads/sa/view/down/22/

10/ Décompression de l’archive.

pi@raspberrypi:~/GAME/DAIMONIN $ unzip daimonin_mapmaker.zip 

11/ Copie de l’éditor de niveau.

pi@raspberrypi:~/GAME/DAIMONIN $ cp daimonin_mapmaker/editor/ daimonin -r

12/ Lancement de l’éditeur de niveau.

pi@raspberrypi:~/GAME/DAIMONIN $ cd daimonin/editor/
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/editor $
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/editor $ java -jar DaimoninEditor.jar 

13/ Configuration des ressources.

- [Fichier][Options]
- Archétypes : /home/pi/GAME/DAIMONIN/daimonin/arch
- Carte : /home/pi/GAME/DAIMONIN/daimonin/maps
- Charger la configuration depuis : répertoire d'archétypes
- [Apply]
- [Ok]
- [Fichier][Quitter]

14/ Création des ressources.

pi@raspberrypi:~/GAME/DAIMONIN/daimonin/editor $ java -jar DaimoninEditor.jar 
- [Ressources]|[Rassembler archétypes]
- [Fichier][Quitter]

15/ Installation du serveur.

pi@raspberrypi:~/GAME/DAIMONIN/daimonin/editor $ cd ../server/make/linux/
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server/make/linux $ 
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server/make/linux $  autoconf
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server/make/linux $ ./configure
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server/make/linux $ make
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server/make/linux $ make install
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server/make/linux $ cd ../..
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server $ 

16/ Installation des ressources.

pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server $ rm lib/*
pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server $ cp -r ../arch/* ./lib/

17/ Lancement du serveur Daimonin.

pi@raspberrypi:~/GAME/DAIMONIN/daimonin/server $ ./daimonin_server

18/ Lancement du client Daimonin.

pi@raspberrypi:~ $ cd daimonin/
pi@raspberrypi:~/daimonin $ 
pi@raspberrypi:~/daimonin $ ./daimonin --local --server=0

II/ Installation de Crossfire.

1/ Installation des paquets de développement.

pi@raspberrypi:~ $ sudo apt-get install libgd-dev valac

2/ Création du répertoire de travail.

pi@raspberrypi:~ $ mkdir -p GAME/CROSSFIRE/
pi@raspberrypi:~ $ cd GAME/CROSSFIRE

3/ Téléchargement du code source.

pi@raspberrypi:~/GAME/CROSSFIRE $ wget https://sourceforge.net/projects/crossfire/files/crossfire-client/1.75.0/crossfire-client-1.75.0.tar.gz

4/ Décompression de l’archive du code source.

pi@raspberrypi:~/GAME/CROSSFIRE $ tar xvfz crossfire-client-1.75.0.tar.gz 
pi@raspberrypi:~/GAME/CROSSFIRE $ cd crossfire-client-1.75.0/
pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-client-1.75.0 $ 

5/ Configuration de la compilation.

pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-client-1.75.0 $ cmake .

6/ Compilation.

pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-client-1.75.0 $ make

7/ Installation.

pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-client-1.75.0 $ sudo make install
pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-client-1.75.0 $ cd ..

8/ Téléchargement de l’archive des ressources.

pi@raspberrypi:~/GAME/CROSSFIRE $ wget https://sourceforge.net/projects/crossfire/files/crossfire-arch/1.71.0/crossfire-1.71.0.arch.tar.bz2

9/ Décompression de l’archive.

pi@raspberrypi:~/GAME/CROSSFIRE $ tar xvfj crossfire-1.71.0.arch.tar.bz2 

10/ Téléchargement du code source du serveur.

pi@raspberrypi:~/GAME/CROSSFIRE $ wget https://sourceforge.net/projects/crossfire/files/crossfire-server/1.75.0/crossfire-1.75.0.tar.gz

11/ Décompression de l’archive.

pi@raspberrypi:~/GAME/CROSSFIRE $ tar xvfz crossfire-1.75.0.tar.gz 
pi@raspberrypi:~/GAME/CROSSFIRE $ cd crossfire-1.75.0/
pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-1.75.0 $ 

12/ Installation des ressources.

pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-1.75.0 $ cp -r ../arch/* lib/arch

13/ Configuration de la compilation.

pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-1.75.0 $ ./configure --enable-mapper --enable-cfrhg --enable-newspaper

14/ Compilation.

pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-1.75.0 $ make

15/ Installation.

pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-1.75.0 $ sudo make install

16/ Configuration de l’installation.

pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-1.75.0 $ sudo chown pi:pi /usr/GAME/crossfire/var/crossfire/ -R
pi@raspberrypi:~/GAME/CROSSFIRE/crossfire-1.75.0 $ cd ..
pi@raspberrypi:~/GAME/CROSSFIRE $

17/ Téléchargement des cartes.

pi@raspberrypi:~/GAME/CROSSFIRE $ wget https://sourceforge.net/projects/crossfire/files/crossfire-maps/1.75.0/crossfire-maps-1.75.0.tar.gz

18/ Décompression de l’archive de carte.

pi@raspberrypi:~/GAME/CROSSFIRE $ tar xvfz crossfire-maps-1.75.0.tar.gz 

19/ Installation des cartes.

pi@raspberrypi:~/GAME/CROSSFIRE $  sudo rm /usr/GAME/crossfire/var/crossfire/maps -rf
pi@raspberrypi:~/GAME/CROSSFIRE $ sudo ln -s /home/pi/GAME/CROSSFIRE/maps/ /usr/GAME/crossfire/var/crossfire/
pi@raspberrypi:~/GAME/CROSSFIRE $ sudo ln -s /home/pi/GAME/CROSSFIRE/maps /usr/GAME/crossfire/share/crossfire/
pi@raspberrypi:~/GAME/CROSSFIRE $ sudo ln -s /home/pi/GAME/CROSSFIRE/arch/ /usr/GAME/crossfire/share/crossfire/
pi@raspberrypi:/usr/GAME/crossfire/share/crossfire $ cd
pi@raspberrypi:~ $ 

20/ Lancement du serveur Crossfire.

pi@raspberrypi:~ $ /usr/GAME/crossfire/bin/crossfire-server

21/ Lancement du client Crossfire.

pi@raspberrypi:~ $ crossfire-client-gtk2 

22/ Installation de l’éditeur de carte.

– Téléchargement du code source :

pi@raspberrypi:~ $ cd GAME/CROSSFIRE/
pi@raspberrypi:~/GAME/CROSSFIRE $ 
pi@raspberrypi:~/GAME/CROSSFIRE $ git clone git://git.code.sf.net/p/gridarta/gridarta gridarta-gridarta
pi@raspberrypi:~/GAME/CROSSFIRE $ mv gridarta-gridarta/ gridarta
pi@raspberrypi:~/GAME/CROSSFIRE $ cd gridarta/
pi@raspberrypi:~/GAME/CROSSFIRE/gridarta $ 

– Compilation :

pi@raspberrypi:~/GAME/CROSSFIRE/gridarta $ ./gradlew 

– Lancement de l’éditeur :

pi@raspberrypi:~/GAME/CROSSFIRE/gridarta $ java -jar src/crossfire/build/libs/CrossfireEditor.jar