2019-02-05 18:33:10 +03:00
|
|
|
|
|
|
|
# Mapserver mod
|
|
|
|
|
|
|
|
If the `mapserver-mod` is installed and configured
|
|
|
|
you get more realtime-data from within your minetest-world:
|
|
|
|
|
|
|
|
* Current players with their positions
|
|
|
|
* Current time and max lag
|
|
|
|
|
|
|
|
You can use the `mapserver-mod` either passive or active:
|
2019-02-08 12:39:18 +03:00
|
|
|
* *Passive* Makes some additional markers available (POI, Labels, etc)
|
2019-02-05 18:33:10 +03:00
|
|
|
* *Active* Communicates with the mapserver and sends realtime data (players, lag, time)
|
|
|
|
|
|
|
|
## Installing and configuring the bridge-mod
|
|
|
|
|
2019-02-08 23:39:16 +03:00
|
|
|
The mod itself is available in the git [repo](../mapserver_mod)
|
2019-02-08 23:39:52 +03:00
|
|
|
or as a zip package in the [releases](../../../releases)
|
2019-02-05 18:33:10 +03:00
|
|
|
|
2019-04-02 17:29:30 +03:00
|
|
|
If you want to enable craftable mapobjects (poi, labels, trainblocks, etc) you
|
|
|
|
can enable the setting in your `minetest.conf` (defaults to false)
|
|
|
|
|
|
|
|
```
|
|
|
|
mapserver.enable_crafting = true
|
|
|
|
```
|
|
|
|
|
2019-02-08 12:39:18 +03:00
|
|
|
## Passive mode
|
|
|
|
|
|
|
|
You don't have to set up anything, passive mode is the default.
|
|
|
|
There are some additional map objects you can use in this mode:
|
|
|
|
|
|
|
|
* **POI** Point of interest
|
|
|
|
* **Label** A street or city label
|
|
|
|
* **Border** A border for cities or regions
|
|
|
|
* **Train** To display train lines on the map, with stations and line-info
|
|
|
|
|
2019-02-05 18:33:10 +03:00
|
|
|
## Active mode
|
|
|
|
|
|
|
|
The mod communicates via http with the mapserver.
|
|
|
|
You need to configure the *url* and the *secretkey* in your `minetest.conf`
|
|
|
|
|
|
|
|
* Install the mapserver mod in your minetest instance
|
|
|
|
* Copy the `secretkey` from your `mapserver.json` (this is an autogenerated key)
|
|
|
|
* Enable http for the `mapserver` mod in your `minetest.conf`
|
|
|
|
* Configure your `minetest.conf` with the settings: `mapserver.url` and `mapserver.key`
|
|
|
|
|
|
|
|
Example config:
|
|
|
|
```
|
|
|
|
secure.http_mods = mapserver
|
|
|
|
mapserver.url = http://127.0.0.1:8080
|
|
|
|
mapserver.key = ZJoSpysiKGlYexof
|
|
|
|
```
|
2019-03-22 15:23:19 +03:00
|
|
|
|
|
|
|
### Hiding players from the map
|
|
|
|
|
|
|
|
If (for any reason) you want to hide players on the map, you can `/grant` them the following priv:
|
|
|
|
```
|
|
|
|
mapserver_hide_player
|
|
|
|
```
|
|
|
|
|
|
|
|
The player-position and data will not be sent to the mapserver
|