1
0
forked from MTSR/mapserver
This commit is contained in:
NatureFreshMilk 2019-02-08 10:39:18 +01:00
parent 2880b90b76
commit 707ff46c67
4 changed files with 23 additions and 20 deletions

View File

@ -19,11 +19,9 @@ Default colors, see: [colors.txt](../server/static/colors.txt)
## Configuration json ## Configuration json
All config options reside in the `mapserver.json` file with the default values All config options reside in the `mapserver.json` file with the default values
Please stop the server if you make any changes there.
The mapserver will generate a fresh `mapserver.json` if there is none at startup. The mapserver will generate a fresh `mapserver.json` if there is none at startup.
### Example json ### Example mapserver.json
```json ```json
{ {
"port": 8080, "port": 8080,
@ -53,7 +51,7 @@ The mapserver will generate a fresh `mapserver.json` if there is none at startup
The port on which the server listens to The port on which the server listens to
#### webapi.secretkey #### webapi.secretkey
The generated secret for the [mod bridge](./install) The generated secret for the [mod bridge](./mod)
#### layers #### layers
The layers as a list The layers as a list

View File

@ -8,7 +8,7 @@ you get more realtime-data from within your minetest-world:
* Current time and max lag * Current time and max lag
You can use the `mapserver-mod` either passive or active: You can use the `mapserver-mod` either passive or active:
* *Passive* Makes some additional markers available (POI, etc) * *Passive* Makes some additional markers available (POI, Labels, etc)
* *Active* Communicates with the mapserver and sends realtime data (players, lag, time) * *Active* Communicates with the mapserver and sends realtime data (players, lag, time)
## Installing and configuring the bridge-mod ## Installing and configuring the bridge-mod
@ -16,6 +16,16 @@ You can use the `mapserver-mod` either passive or active:
The mod itself is available in the git [repo](./mapserver_mod) The mod itself is available in the git [repo](./mapserver_mod)
or as a zip package in the [releases](./releases) or as a zip package in the [releases](./releases)
## 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
## Active mode ## Active mode
The mod communicates via http with the mapserver. The mod communicates via http with the mapserver.

View File

@ -20,12 +20,12 @@ Realtime mapserver for [Minetest](https://minetest.net)
* Initial and incremental map rendering * Initial and incremental map rendering
* Realtime player and world stats * Realtime player and world stats
* Configurable layers (default: "Base" from y -16 to 160) * Configurable layers (default: "Base" from y -16 to 160)
* POI markers / mod integration
* LCD Displays as markers
## Planned Features ## Planned Features
* POI markers / mod integration
* Player infos (HP, breath, etc) * Player infos (HP, breath, etc)
* LCD Displays as markers
* Street names / Train stuff * Street names / Train stuff
* City borders * City borders
@ -33,11 +33,6 @@ Realtime mapserver for [Minetest](https://minetest.net)
* Sqlite3 (for map and mapobjects) * Sqlite3 (for map and mapobjects)
# Development state
* Working basic features (map rendering)
* Successor of http://github.com/thomasrudin-mt/minetest-tile-server
# Screenshots # Screenshots
## Web interface ## Web interface

View File

@ -126,14 +126,14 @@ func Setup(ctx *app.App) {
//digiterms //digiterms
digiterms := &DigitermsBlock{} digiterms := &DigitermsBlock{}
l.AddMapObject("'digiterms:lcd_monitor", digiterms) l.AddMapObject("digiterms:lcd_monitor", digiterms)
l.AddMapObject("'digiterms:cathodic_beige_monitor", digiterms) l.AddMapObject("digiterms:cathodic_beige_monitor", digiterms)
l.AddMapObject("'digiterms:cathodic_white_monitor", digiterms) l.AddMapObject("digiterms:cathodic_white_monitor", digiterms)
l.AddMapObject("'digiterms:cathodic_black_monitor", digiterms) l.AddMapObject("digiterms:cathodic_black_monitor", digiterms)
l.AddMapObject("'digiterms:scifi_glassscreen", digiterms) l.AddMapObject("digiterms:scifi_glassscreen", digiterms)
l.AddMapObject("'digiterms:scifi_widescreen", digiterms) l.AddMapObject("digiterms:scifi_widescreen", digiterms)
l.AddMapObject("'digiterms:scifi_tallscreen", digiterms) l.AddMapObject("digiterms:scifi_tallscreen", digiterms)
l.AddMapObject("'digiterms:scifi_keysmonitor", digiterms) l.AddMapObject("digiterms:scifi_keysmonitor", digiterms)
//missions //missions
l.AddMapObject("missions:mission", &MissionBlock{}) l.AddMapObject("missions:mission", &MissionBlock{})