-
Notifications
You must be signed in to change notification settings - Fork 115
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
Open region file represented with []byte #130
Comments
Theoretically, yes. The current API, no. |
Sounds like a incremental backup system. I don't quite understand. But it seems that the unit you read and process should be a single Chunk, that is, 16*16 Blocks. When store them into the database, render the map and cache it. In this way, when requested by leaflet, you only need to simply return the generated image. |
It actually is an incremental backup system for chunks. You understood everything correctly, data "unit" is a Chunk. In order to optimize Chunk submitting to the system I thought about sending over whole region file and parsing and breaking it up on server to compensate on traffic usage. |
And this is the reason why you want to parse mca files on the fly.
But block changes area usually are limited to the size of Chunk, aren't they? Submit the hole Region could increase the IO pressure. Considering the first submitting, the http mess that you say could happen. You could packet chunks together in your own ways to avoid that mess. In this protocol, the coordinates of blocks are represented separately, so region cannot be used -- it can only store adjacent blocks. |
And parse regions on the fly will be support. I am working on it. |
Also speaking of chunks and loading, there is no support for uncompressed nbt int chunk load method. |
Commit 684d257 support parsing regions in memory. You may need to find an implement of The loading and parsing of Chunks are still semi-finished products. The reason as you can see, due to frequent changes between versions, it is not easy to maintain. It also related to #110. |
Hi, I am making http accept for regions and I want to parse it on the fly, is it possible?
The text was updated successfully, but these errors were encountered: