Crossfire Extended

Crossfire Extended.

1) Installation des dépendances :

pi@framboise ~ $ sudo apt-get install python-dev libxt-dev libxaw7-dev libgtk2.0-dev libglib2.0-dev

2) Répertoire de travail :

pi@framboisepi ~ $ mkdir -p JEUX/CROSSFIRE
pi@framboisepi ~ $ cd JEUX/CROSSFIRE/
pi@framboisepi ~/JEUX/CROSSFIRE $

3) Téléchargement du code source :

pi@framboisepi ~/JEUX/CROSSFIRE $ wget http://downloads.sourceforge.net/project/crossfireextendedrelease/cfextendedsources.zip

4) Décompression de l’archive :

pi@framboisepi ~/JEUX/CROSSFIRE $ unzip cfextendedsources.zip
pi@framboisepi ~/JEUX/CROSSFIRE $ cd cfextended/cfextended/
pi@framboisepi ~/JEUX/CROSSFIRE/cfextended/cfextended $

5) Configuration de la compilation :

pi@framboisepi ~/JEUX/CROSSFIRE/cfextended/cfextended $ ./configure --prefix=/home/pi/Jeux/Crossfire/Serveur

6) Compilation du serveur :

pi@framboisepi ~/JEUX/CROSSFIRE/cfextended/cfextended $ make

Ouvrir :

common/utils.c

Supprimer la fonction :

sint64 random_roll64()

Ouvrir :

server/gods.c

Chercher :

            change_exp(pl, -random_roll64(0, loss, pl, PREFER_LOW), skill ? skill->skill : "none", SK_SUBTRACT_SKILL_EXP);

Remplacer par :

            change_exp(pl, -random_roll(0, loss, pl, PREFER_LOW), skill ? skill->skill : "none", SK_SUBTRACT_SKILL_EXP);

7) Installation du serveur :

pi@framboisepi ~/JEUX/CROSSFIRE/cfextended/cfextended $ make install

8) Copie des ressources :

pi@framboisepi ~/JEUX/CROSSFIRE/cfextended/cfextended $ cd ..
pi@framboisepi ~/JEUX/CROSSFIRE/cfextended $ mv maps/ /home/pi/Jeux/Crossfire/Serveur/share/crossfire/
pi@framboisepi ~/JEUX/CROSSFIRE/cfextended $ mv arch/ /home/pi/Jeux/Crossfire/Serveur/share/crossfire/

9) Lancement du serveur :

pi@framboisepi ~/JEUX/CROSSFIRE/cfextended $ cd ~/Jeux/Crossfire/Serveur/bin
pi@framboisepi ~/Jeux/Crossfire/Serveur/bin $ ./crossfire

Capture d’écran :
crossfire-serveur
10) Compilation de l’éditeur :

pi@framboisepi ~ $ cd ~/JEUX/CROSSFIRE/cfextended/cfextended/crossedit/
pi@framboisepi ~/JEUX/CROSSFIRE/cfextended/cfextended/crossedit $ make

11) Lancer l’éditeur :

pi@framboisepi ~/JEUX/CROSSFIRE/cfextended/cfextended/crossedit $ ./crossedit

– Capture d’écran :
crossedit
12) Configuration du client :

pi@framboisepi ~ $ cd ~/JEUX/CROSSFIRE/crossfire/client/
pi@framboisepi ~/JEUX/CROSSFIRE/crossfire/client $ ./configure --prefix=/home/pi/Jeux/Crossfire/Client

13) Compilation du client :

pi@framboisepi ~/JEUX/CROSSFIRE/crossfire/client $ make

– Erreur :

/usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: Aucun fichier ou dossier de ce type

Solution :

pi@framboisepi ~/JEUX/CROSSFIRE/crossfire/client $ sudo cp /usr/lib/arm-linux-gnueabihf/glib-2.0/include/glibconfig.h /usr/include/glib-2.0/
pi@framboisepi ~/JEUX/CROSSFIRE/crossfire/client $ sudo cp /usr/lib/arm-linux-gnueabihf/gtk-2.0/include/gdkconfig.h /usr/include/gtk-2.0/gdk/
pi@framboisepi ~/JEUX/CROSSFIRE/crossfire/client $ sudo cp /usr/lib/arm-linux-gnueabihf/gtk-2.0/include/gdkconfig.h /usr/include/gtk-2.0/

14) Installation :

pi@framboisepi ~/JEUX/CROSSFIRE/crossfire/client $ make install
pi@framboisepi ~/JEUX/CROSSFIRE/crossfire/client $ cd ~/Jeux/Crossfire/Client/bin/

15) Lancement du client :

pi@framboisepi ~/Jeux/Crossfire/Client/bin $ ./gcfclient2

Capture d’écran :
crossfire-client
16) Lien :
http://www.lgdb.org/game/crossfire-extended-release

Leave a Reply

You must be logged in to post a comment.