-
-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Request: Web map #53
Comments
Thanks for your work on BlockMap! A feature like this is definitively planned, but it may take some time. There already is some form of server support in BlockMap, even though it's a bit WIP and less documented. You seem to have implemented a few features that are already covered by BlockMap, so I'm very interested in your opinion.
When rendering a world in BlockMap, it already generates a lot of information about the world—including player names and positions—, saved into a compressed json file next to the images.
How often would you like to update the map? Due to BlockMap only rendering regions modified since the last time, simply calling it in a systemd timer (or cron job) a few times an hour should not have a noticable impact on performance. |
I didn't notice the new server render feature. I tried to use it but every dimension is failing for me on 1.16.1, I'll open a separate issue for that. Really I'd like a dynmap-like map that is easy to drop into a server. Here's my take so far:
These features may sound outside of scope for you as just a map tile generator, but it's all the things I have to worry about as a server operator who can't and won't use dynmap for performance or incompatibility reasons. |
The tile renderer is the |
A leaflet powered web map would be nice.
I already made one, see https://lambdacraft.dev/craft/map/
The source https://github.com/LambdaCraft/LambdaMap
It's in react but can be statically compiled to deliverable html and js. The player positions are handled by a REST api in a fabric mod. The output of blockmap is passed through pngquant for small file delivery.
It would be nice however to have all this bundled into one server fabric mod, with updating player positions, refreshing tiles, etc.
Personally I would prefer if the server mod was lightweight as to not take up too much CPU in a client/server-worker model but perhaps if it hooked into the server instance to find the average TPS/MSPT and only do rendering when there is compute time available that would be great.
The text was updated successfully, but these errors were encountered: