Stendhal : Jeu de Rôle Massivement Multi-Joueur En-Ligne

Stendhal : Jeu de Rôle Massivement Multi-Joueur En-Ligne.

Version 2.0

1/ Vérification de la version de Java.

➜  ~ java -version
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode)

2/ Répertoire de travail.

➜  ~ mkdir -p JEUX/STENDHAL
➜  ~ cd JEUX/STENDHAL 
➜  STENDHAL 

3/ Téléchargement du code source.

➜  STENDHAL wget https://github.com/arianne/stendhal/archive/VERSION_01_RELEASE_26.tar.gz

4/ Décompression de l’archive.

➜  STENDHAL tar xvfz VERSION_01_RELEASE_26.tar.gz 
➜  STENDHAL cd stendhal-VERSION_01_RELEASE_26 
➜  stendhal-VERSION_01_RELEASE_26 

5/ Compilation.

➜  stendhal-VERSION_01_RELEASE_26 ant clean 
➜  stendhal-VERSION_01_RELEASE_26 ant dist

6/ Vérification.

➜  stendhal-VERSION_01_RELEASE_26 ls -l build/lib 
total 41512
-rw-r--r-- 1 pi pi  1194857 Nov  7 21:14 stendhal-1.26.jar
-rw-r--r-- 1 pi pi 24089097 Nov  7 21:14 stendhal-data-1.26.jar
-rw-r--r-- 1 pi pi  4060388 Nov  7 21:13 stendhal-maps-1.26.jar
-rw-r--r-- 1 pi pi  5342715 Nov  7 21:15 stendhal-music-data-1.26.jar
-rwxr-xr-x 1 pi pi  2359310 Nov  7 21:13 stendhal-server-1.26.jar
-rw-r--r-- 1 pi pi  5122007 Nov  7 21:14 stendhal-sound-data-1.26.jar
-rwxr-xr-x 1 pi pi    52605 Nov  7 21:14 stendhal-starter-1.26.jar
-rw-r--r-- 1 pi pi   266655 Nov  7 21:13 stendhal-xmlconf-1.26.jar
➜  stendhal-VERSION_01_RELEASE_26
➜  stendhal-VERSION_01_RELEASE_26 ls -l build    
total 159876
...
-rw-r--r-- 1 pi pi 115415661 Nov  7 21:17 stendhal-1.26-src.tar.gz
-rw-r--r-- 1 pi pi  35884599 Nov  7 21:15 stendhal-1.26.zip
-rw-r--r-- 1 pi pi  12120250 Nov  7 21:14 stendhal-server-1.26.zip
-rw-r--r-- 1 pi pi    238456 Nov  7 21:15 stendhal-starter-1.26.zip
➜  stendhal-VERSION_01_RELEASE_26 cd ..

7/ Installation du connecteur MySQL.

– Téléchargement du connecteur :

➜  STENDHAL wget https://cdn.mysql.com//Downloads/Connector-J/mysql-connector-java-5.1.44.tar.gz

– Décompression de l’archive :

➜  STENDHAL tar xvfz mysql-connector-java-5.1.44.tar.gz

8/ Installation du serveur.

– Création de la base de données ‘marauroa‘ :

➜  STENDHAL sudo mysql -u root -p
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 37
Server version: 5.5.57-0+deb8u1 (Raspbian)
...
mysql> create database marauroa;
Query OK, 1 row affected (0.02 sec)

mysql> grant all on marauroa.* to 'root'@'localhost' identified by 'mot2passe';
Query OK, 0 rows affected (0.00 sec)

mysql> quit;
Bye
➜  STENDHAL 

– Création du répertoire ‘Serveur’ :

➜  STENDHAL mkdir Serveur 
➜  STENDHAL cd Serveur 
➜  Serveur 

– Copie de l’archive binaire du serveur :

➜  Serveur cp ../stendhal-VERSION_01_RELEASE_26/build/stendhal-server-1.26.zip .

– Décompression de l’archive :

➜  Serveur unzip stendhal-server-1.26.zip

– Création du fichier de configuration :

➜  Serveur java -cp stendhal-server-1.26.jar games.stendhal.server.core.engine.GenerateINI
Which database system do you want to use? "h2" is an integrated database that 
works out of the box, "mysql" requires a MySQL server. If in doubt, say "h2" [h2]: mysql
Write name of the database [marauroa]: 
Write name of the database host [localhost]: 
Write name of the database user: root
Write value of the database user password: mot2passe
...
server.ini has been generated.
➜  Serveur 

– Installation du connecteur :

➜  Serveur cp ../mysql-connector-java-5.1.44/mysql-connector-java-5.1.44-bin.jar mysql-connector.jar

– Changement de permission du lanceur du serveur :

➜  Serveur chmod +x runserver.sh 

– Lancement du serveur :

➜  Serveur ./runserver.sh       
Starting Marauroa https://arianne-project.org/engine/marauroa.html
Arianne's open source multiplayer online framework for game development
Marauroa is released under the GNU General Public License: LICENSE.txt

Configuring Log4J using marauroa/server/log4j.properties
...
INFO  [main      ] UpdateScript             (122 ) - Checking database structure and updating it if needed.
INFO  [main      ] UpdateScript             (122 ) - Completed database update.
WARN  [main      ] WordList                 (230 ) - suspicious plural: lilium -> liliums (lilias?)
...
INFO  [main      ] marauroad                (122 ) - marauroa 3.9.5 is up and running... (startup time: 86.6 s)
INFO  [marauroad ] Statistics               (122 ) - Total/Used memory: 122080/61092
WARN  [mmandQueue] StendhalRPZone           (1670) [RPServerManager: DumpZonesCommand []] - no match: malleus_plain
WARN  [mmandQueue] StendhalRPZone           (1670) [RPServerManager: DumpZonesCommand []] - no match: bone_pillar
WARN  [verManager] RPServerManager          (207 ) - Turn duration overflow by 380 ms:  0 0 0 674 674 674 674 677 679 679 680 680
INFO  [mmandQueue] UpdateSearchIndexCommand (45  ) [RPServerManager: games.stendhal.server.core.engine.dbcommand.UpdateSearchIndexCommand@ad0ca2] - Completed dumping of search index in 7230 milliseconds.
WARN  [verManager] RPServerManager          (207 ) - Turn duration overflow by 248 ms:  0 0 0 9 9 9 9 11 547 547 548 548

9/ Installation du client.

– Répertoire du client :

➜  ~ cd JEUX/STENDHAL 
➜  STENDHAL mkdir Client 
➜  STENDHAL cd Client 
➜  Client 

– Copie de l’archive du client :

➜  Client cp ../stendhal-VERSION_01_RELEASE_26/build/stendhal-1.26.zip .

– Décompression de l’archive :

➜  Client unzip stendhal-1.26.zip 

– Lancement du client :

➜  Client java -jar stendhal-starter.jar
Unsigned self built client.
Self build client, starting without update .jar-files
Creating custom class loader for: [file:/home/pi/JEUX/STENDHAL/Client/lib/log4j.jar, file:/home/pi/JEUX/STENDHAL/Client/lib/marauroa.jar, file:/home/pi/JEUX/STENDHAL/Client/lib/jorbis.jar, file:/home/pi/JEUX/STENDHAL/Client/lib/stendhal.jar, file:/home/pi/JEUX/STENDHAL/Client/lib/stendhal-data.jar, file:/home/pi/JEUX/STENDHAL/Client/lib/stendhal-sound-data.jar, file:/home/pi/JEUX/STENDHAL/Client/lib/stendhal-music-data.jar]
log4j:WARN No appenders could be found for logger (games.stendhal.client.stendhal).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Configuring Log4J using data/conf/log4j.properties
INFO  [main] stendhal.java                 ( 187) - Setting base at :/stendhal/
INFO  [main] stendhal.java                 ( 188) - Stendhal 1.26
INFO  [main] stendhal.java                 ( 189) - 
INFO  [main] stendhal.java                 ( 190) - Logging to directory: /home/pi/.config//stendhal/log/
INFO  [main] stendhal.java                 ( 197) - OS: Linux  4.9.35-v7+ arm
INFO  [main] stendhal.java                 ( 200) - Java-Runtime: Java(TM) SE Runtime Environment 1.8.0_65-b17 from /usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre
INFO  [main] stendhal.java                 ( 203) - Java-VM: Oracle Corporation Java HotSpot(TM) Client VM 25.65-b01

10/ Captures d’écran.

– Ecran d’accueil :

– Ecran de création de compte :

– Ecran de jeu :

11/ Liens.

https://stendhalgame.org/wiki/BuildStendhalOnUbuntu
https://miniordi.hacktech.dev/installation-de-stendhal/