Installation du serveur « Mana World » ».
1) Installation des dépendances de base :
[~] ➔ sudo apt-get install build-essential flex bison python make realpath git-core gcc-4.7 g++-4.7
2) Répertoire de travail :
[~] ➔ mkdir -p JEUX/MANAWORLD/Serveur [~] ➔ cd JEUX/MANAWORLD/Serveur/
3) Téléchargement du code source :
[~/JEUX/MANAWORLD/Serveur] ➔ git clone https://github.com/themanaworld/tmwa.git [~/JEUX/MANAWORLD/Serveur] ➔ git clone https://github.com/themanaworld/tmwa-server-data.git [~/JEUX/MANAWORLD/Serveur] ➔ git clone https://github.com/themanaworld/tmwa-client-data.git [~/JEUX/MANAWORLD/Serveur] ➔ git clone https://github.com/themanaworld/tmw-tools.git [~/JEUX/MANAWORLD/Serveur] ➔ git clone https://github.com/themanaworld/tmw-music.git
4) Configuration de la compilation :
[~/JEUX/MANAWORLD/Serveur] ➔ cd tmwa [~/JEUX/MANAWORLD/Serveur/tmwa (master)] ➔ git submodule update --init [~/JEUX/MANAWORLD/Serveur/tmwa (master)] ➔ ./configure CXX=g++-4.7
5) Compilation :
[~/JEUX/MANAWORLD/Serveur/tmwa (master)] ➔ make CXX=g++-4.7
– Erreur :
g++ -std=c++0x -I . -DGENERATING_DEPENDENCIES -O2 -g -fstack-protector -fno-strict-aliasing -fvisibility=hidden -MG -MM \ -MT 'net/ip := ' \ -MF obj/net/ip.d src/net/ip.cpp In file included from src/net/fwd.hpp:22:0, from src/net/ip.hpp:22, from src/net/ip.cpp:1: src/net/../sanity.hpp:46:4: error: #error "Unsupported platform, we use x86 / amd64 only"
Ouvrir :
src/net/../sanity.hpp
Chercher :
# error "Unsupported platform, we use x86 / amd64 only
Remplacer par :
//# error "Unsupported platform, we use x86 / amd64 only
6) Installation :
[~/JEUX/MANAWORLD/Serveur/tmwa (master)⚡] ➔ sudo make install [~/JEUX/MANAWORLD/Serveur/tmwa (master)⚡] ➔ sudo /sbin/ldconfig
7) Configuration :
[~/JEUX/MANAWORLD/Serveur/tmwa (master)⚡] ➔ cd ../tmwa-server-data/ [~/JEUX/MANAWORLD/Serveur/tmwa-server-data (master)] ➔ make conf [~/JEUX/MANAWORLD/Serveur/tmwa-server-data (master)] ➔ rm client-data/ -rf [~/JEUX/MANAWORLD/Serveur/tmwa-server-data (master)⚡] ➔ rm tools/ -rf [~/JEUX/MANAWORLD/Serveur/tmwa-server-data (master)⚡] ➔ ln -s ../tmwa-client-data/ client-data [~/JEUX/MANAWORLD/Serveur/tmwa-server-data (master)⚡] ➔ ln -s ../tmw-music music [~/JEUX/MANAWORLD/Serveur/tmwa-server-data (master)⚡] ➔ ln -s ../tmw-tools/ tools
8) Lancement du serveur :
[~/JEUX/MANAWORLD/Serveur/tmwa-server-data (master)⚡] ➔ ./run-all .. Maps Loaded: 130 NPCs Loaded: 9140 [Warps:785 Shops:31 Scripts:840 Mobs:7484] npc: OnInit Event done. (47 npc) The map-server is ready (Server is listening on the port 5122). Attempt to connect to char-server... Connected to char-server (connection #4). chrif: OnCharIfInit event done. (0 events) chrif: OnInterIfInit event done. (0 events) From login-server: receiving of 0 GM accounts information. Map-Server 0 connected: 130 maps, from IP 127.0.0.1 port 5122. Map-server 0 loading complete.
9) Administration :
Dans un autre terminal :
– Création d’un joueur/administrateur :
[~/JEUX/MANAWORLD/Serveur/tmwa-server-data (master)⚡] ➔ cd login/ [~/JEUX/MANAWORLD/Serveur/tmwa-server-data/login (master)⚡] ➔ tmwa-admin ... Ladmin-> add framboisier M mot2passe Account [nekrofage] is successfully created [id: 2000000]. ... Ladmin-> gm framboisier 99 Account [nekrofage][id: 2000000] GM level successfully changed. ...
10) Lien :
https://wiki.themanaworld.org/index.php/Setting_up_tmwAthena_on_Linux