Realtime Mapserver/Tileserver

Post Reply
User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Realtime Mapserver/Tileserver

by BuckarooBanzay » Post

Minetest Relatime Tileserver:

Not maintained anymore, use the new one: viewtopic.php?f=14&t=21999

Serves a near-realtime map of your minetest world with live player-locations and stats.

Features:
  • Near-realtime Tile/Mapblock update (20 seconds default)
  • Tile-Caching
  • Displays players in Realtime (with some additional infos: breath, hp)
  • POI-Mod: adds POI Blocks to create Point-of-interests in-game which are displayed on the map
Planned features:
  • Additional Realtime stats
  • Additional MapBlock analytics (protection, node-count, etc)
Github/Docs: https://github.com/thomasrudin-mt/minetest-tile-server
Download: https://github.com/thomasrudin-mt/minet ... es/tag/1.0
Demo: https://pandorabox.io/map/#-1830.125/426.5/11

Testing is always welcome, but please create a backup before starting the application!
Last edited by BuckarooBanzay on Thu May 16, 2019 15:54, edited 5 times in total.
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: (Near)Realtime Tileserver

by rubenwardy » Post

You end up with grey boxes when zooming out, where there wasn't some before. You're probably not generating variable LOD tiles, so leaflet 404s
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: (Near)Realtime Tileserver

by BuckarooBanzay » Post

I had to google what LOD means :)
But the server generates tiles for each zoom level and re-uses the ones from the lower zoom levels for cross-stitching.
I think you browsed the webserver at the time i updated it (around 12:00 GMT) thus the 404/502s.
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
rubenwardy
Moderator
Posts: 6972
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: (Near)Realtime Tileserver

by rubenwardy » Post

Yeah, works now
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
v-rob
Developer
Posts: 970
Joined: Thu Mar 24, 2016 03:19
GitHub: v-rob
IRC: v-rob
Location: Right behind you.

Re: (Near)Realtime Tileserver

by v-rob » Post

So... Google Maps for a server? ;-) That sounds really cool!
Core Developer | My Best Mods: Bridger - Slats - Stained Glass

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: (Near)Realtime Tileserver

by BuckarooBanzay » Post

Yeah, now that you mention it a street-view mode would be nice :)

I saw the map on WesterosCraft:
http://mc.westeroscraft.com/#

If you click on the upper right on "map types" under "surface" you get a pseudo-3d view.
Something like that would be nice too... :)
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
LMD
Member
Posts: 1386
Joined: Sat Apr 08, 2017 08:16
GitHub: appgurueu
IRC: appguru[eu]
In-game: LMD
Location: Germany
Contact:

Re: (Near)Realtime Tileserver

by LMD » Post

Maybe add map prediction eg : if map hasnt loaded yet somewhere, estimate it using biome noise, LOTHs worldmaps could be an inspiration, look at KGMs GitHub page : github.com/KaiGerdMueller
Also, consider showing items and death places of players... mobs would be nice, too...
My stuff: Projects - Mods - Website

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: Realtime Tileserver

by BuckarooBanzay » Post

Release Version 1.0
  • Improved Performance (you still need to generate the tiles on first installation/view)
  • Added POI and Travelnet Markers on the Map
  • A lot of other refactoring
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: (Near)Realtime Tileserver

by BuckarooBanzay » Post

LMD wrote:Maybe add map prediction eg : if map hasnt loaded yet somewhere, estimate it using biome noise, LOTHs worldmaps could be an inspiration, look at KGMs GitHub page : github.com/KaiGerdMueller
Also, consider showing items and death places of players... mobs would be nice, too...
On the Map-prediction thing: i don't think i will implement this, seems very complex for a very small benefit (and: you have to duplicate the code in the minetest-engine and possibly subgame). Do you have some links on the other worldmaps? The github repo is not very active :(
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
Linuxdirk
Member
Posts: 3217
Joined: Wed Sep 17, 2014 11:21
In-game: Linuxdirk
Location: Germany
Contact:

Re: (Near)Realtime Tileserver

by Linuxdirk » Post

BuckarooBanzay wrote:If you click on the upper right on "map types" under "surface" you get a pseudo-3d view.
Something like that would be nice too... :)
Isometric view is an absolute must-have to me.

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: Realtime Mapserver/Tileserver

by BuckarooBanzay » Post

I'm working currently on a way to show the train routes and stations on the map:
Image

It works with a new tileserver:train block in which you can configure the line, station and index number of a train/track point.

For a demo you can go to https://pandorabox.io/map/#-1902.375/438.5/11 and enable the Trainlines layer on the upper right.
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
Glorfindel
Member
Posts: 137
Joined: Tue Jul 07, 2015 20:05
GitHub: the1glorfindel
IRC: Glorfindel DoomWeaver
In-game: Glorfindel

Re: Realtime Mapserver/Tileserver

by Glorfindel » Post

Looks phenomenal!
Even though the specs recommend 2gb of ram, I am going to test this on my low end (1gb ram, 1cpu core) server, and see if perhaps it will work.
Is there any way I could disable parts of it so it uses less resources? i.e. no player positions show, map updates once per day perhaps?

Thanks

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: Realtime Mapserver/Tileserver

by BuckarooBanzay » Post

Glorfindel wrote:Looks phenomenal!
Even though the specs recommend 2gb of ram, I am going to test this on my low end (1gb ram, 1cpu core) server, and see if perhaps it will work.
Is there any way I could disable parts of it so it uses less resources? i.e. no player positions show, map updates once per day perhaps?

Thanks
Hi Glorfindel, its just a recommendation. After the initial map-run (takes hours or days depending on map-size) only incremental blocks get read and rendered. My current live-instance needs only about 1GB right now and is pretty lighweight on CPU (see https://pandorabox.io/grafana/d/0SpIc5t ... 5s&orgId=1)

btw: i replied to your issue on github: https://github.com/thomasrudin-mt/minet ... /issues/24
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
Glorfindel
Member
Posts: 137
Joined: Tue Jul 07, 2015 20:05
GitHub: the1glorfindel
IRC: Glorfindel DoomWeaver
In-game: Glorfindel

Re: Realtime Mapserver/Tileserver

by Glorfindel » Post

Ah, OK.
Awesome, thanks!

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: Realtime Mapserver/Tileserver

by BuckarooBanzay » Post

New shop-search-feature!

Search shops around you and see if your item is on stock..

Click on the upper right in the realtime-map on the magnifying glass icon https://pandorabox.io/map/#-1782.25/493.5/10
Image

And type then your wanted item in the box on top
Image

Happy shopping :)
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: Realtime Mapserver/Tileserver

by BuckarooBanzay » Post

For anyone interested: i started a rewrite of the tileserver in the go language:

New repo: https://github.com/thomasrudin-mt/mapserver
Notes: https://github.com/thomasrudin-mt/minet ... -449728647

I have some issues with the current code and the java-runtime itself (its a huge bloat in the end...)

My plan is to provide an executable everybody can drop into his/her minetest installation and just click-and-run.
The executable should also support multiple platforms (linux, windows, darwin) architectures and databases (sqlite, postgres)


Current roadmap (and highlights):
  • Runnable realtime mapserver with sqlite and postgres
  • mapserver-mod for poi integration
  • More stats (health, breath, stamina, chat?) available on the web-interface
  • Proper shop-search
  • Maybe even trainlines (we have that currently on the "old" tileserver) and realtime train-display
  • Street-names/labels
  • In the far future: 3d-rendering in the web-browser, something like google streetview (the data from the mapblocks is already available on that layer)
The current state of the new mapserver: its a runnable as a proof-of-concept

Pull-requests/contributions/discussions are always welcome :)
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

wziard
Member
Posts: 127
Joined: Mon Oct 29, 2018 19:12

Re: Realtime Mapserver/Tileserver

by wziard » Post

Nice. I couldn't get the java version to work at all, so to me this would be most welcome.

User avatar
BuckarooBanzay
Member
Posts: 435
Joined: Tue Apr 24, 2018 05:58
GitHub: BuckarooBanzay
IRC: BuckarooBanzai
In-game: BuckarooBanzai

Re: Realtime Mapserver/Tileserver

by BuckarooBanzay » Post

I'm abandoning this version of the mapserver in favor of the new one here: viewtopic.php?f=14&t=21999&p=341825

Features will be added there, expect feature parity in the next few weeks/months
¯\_(ツ)_/¯ Not active here anymore, contact me on the minetest discord, irc, lemmy or github (for programming issues)

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests