« Dynmap » : différence entre les versions

De Nefald Wiki
Aller à la navigation Aller à la recherche
Hiob (discussion | contributions)
mAucun résumé des modifications
Hiob (discussion | contributions)
mAucun résumé des modifications
Ligne 31 : Ligne 31 :
   
   
== Utiliser un serveur web externe ==
== Utiliser un serveur web externe ==
=== Nginx ===
=== Dynmap ===
<syntaxhighlight lang="xorg_conf">
;Avec proxy permetttant d'accéder à la map sur un sous-domaine <code>map.domain.tld</code>
server {
    listen localhost:80;
    server_name map.domain.tld;
 
    location / {
    index index.php index.html;
        proxy_pass http://localhost:8123;
    }
}
</syntaxhighlight>
 
=== Lighttpd ===
 
;Dans <code>configuration.txt</code> cherchez :
;Dans <code>configuration.txt</code> cherchez :
<syntaxhighlight lang="robots">
<syntaxhighlight lang="robots">
Ligne 72 : Ligne 57 :




To disable the internal updating mechanism and enable the json-file updating mechanism. This will write to the file standalone/dynmap_world.json in your web-path at an interval that is specified with writeinterval.
=== Nginx ===
 
<syntaxhighlight lang="xorg_conf">
Copy your files in plugins/dynmap/web to a directory of your webserver. Change configuration.txt so that it points with both tilespath and webpath to the paths where you placed the web-files. For *nix
;Avec proxy permetttant d'accéder à la map sur un sous-domaine <code>map.domain.tld</code>
 
server {
 
    listen localhost:80;
 
    server_name map.domain.tld;


    location / {
    index index.php index.html;
        proxy_pass http://localhost:8123;
    }
}
</syntaxhighlight>


=== Lighttpd ===
<syntaxhighlight lang="robots">
<syntaxhighlight lang="robots">
# The path where the tile-files are placed.
# The path where the tile-files are placed.

Version du 13 février 2016 à 22:51


Dynmap
Dynmap
Plugin
Catégorie Mapping [edit]
Développeur(s) mikeprimm, FrozenCow2
Bukkit dynmap
Compatibilité Factions, Dynmap-Factions
Nefald
Status installé [edit]
Grade requis Intendant
Article
Dernière révision 13/02/2016


Dynmap est le plugin qui nous permet d'obtenir une carte dynamique de l'ensemble de nos mondes.

Commandes et permissions

  • /dynmap quiet - retirer les alertes lors des rendus de map

Se connecter

Fichier:Dynmap login.jpg
La page de login/création de compte

Vous connecter sur la map vous permettra de visualiser des maps cachées (si vous êtes staff ou ménestrel), mais aussi de chatter en jeu directement depuis la map.


Créer son compte
  1. en jeu exécutez la commande /dynmap webregister
  2. Vous obtiendrez un registration code
  3. Rendez-vous sur la dynmap et cherchez le bouton de login en bas à droite (image ci-contre)
  4. Sur la page de création de compte, indiquez votre pseudonyme en jeu, un mot de passe (différent du registration code) et le registration code obtenu précédemment
  5. Votre compte est créé!


Il ne vous reste plus qu'à vous logguer en cliquant sur le bouton login et à renseignez votre pseudonyme et votre mot de passe


Utiliser un serveur web externe

Dynmap

Dans configuration.txt cherchez
  - class: org.dynmap.InternalClientUpdateComponent
    sendhealth: true
    allowwebchat: true
    webchat-interval: 5
  #- class: org.dynmap.JsonFileClientUpdateComponent
  #  writeinterval: 1
  #  sendhealth: true
  #  allowwebchat: false
et remplacez par
#- class: org.dynmap.InternalClientUpdateComponent
  #  sendhealth: true
  #  allowwebchat: true
  #  webchat-interval: 5
  - class: org.dynmap.JsonFileClientUpdateComponent
    writeinterval: 1
    sendhealth: true
    allowwebchat: false


Nginx

;Avec proxy permetttant d'accéder à la map sur un sous-domaine <code>map.domain.tld</code>
server {
    listen localhost:80;
    server_name map.domain.tld;

    location / {
    index index.php index.html;
        proxy_pass http://localhost:8123;
    }
}

Lighttpd

# The path where the tile-files are placed.
tilespath: /path/to/web/server/dynmap/web/tiles

# The path where the web-files are located.
webpath: /path/to/web/server/dynmap/web


  server.modules = ( "mod_access",
  "mod_rewrite",
  "mod_proxy",
  "mod_fastcgi"
  )
alias.url += ( "/dynmap/tiles/" => "/home/minecraft/minecraft_server/plugins/dynmap/web/tiles/" )

url.rewrite-once += ( 
        "^/dynmap/up/(.*)" => "/up/$1",
        "^/dynmap/standalone/(.*)" => "/standalone/$1"
)

$HTTP["url"] =~ "^/up/" {
        proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )
}
$HTTP["url"] =~ "^/standalone/" {
        proxy.server = ( "" => (( "host" => "127.0.0.1", "port" => 8123 )) )
}