Open elboletaire opened 3 months ago
If you manually configure a marker in Bluemap's settings below the min-y value, does Bluemap.show it?
This plugin only tells Bluemap about new markers and then delegates the rendering back to Bluemap.
I'd have to check if Bluemap even makes that setting available in the API.
If you manually configure a marker in Bluemap's settings below the min-y value, does Bluemap.show it?
This plugin only tells Bluemap about new markers and then delegates the rendering back to Bluemap.
I guess so, but the markers are configured in a per map basis, so if I had to configure them I simply won't for that one.
I'd have to check if Bluemap even makes that setting available in the API.
That would make sense, and if it's not exposed, it maybe should be since, as said, markers are added per map.
If you can check the configuration of the map, simply avoid to add markers that are outside of the defined bounds, from the config file:
min-y: 126
(copy-pasted from my actual nether roof map definition)
I do now realize that, from the two nether renders I have, I only have markers on the roof one, but not on the other.
Here are the config files for each nether map:
grandline_the_nether.conf
grandline_the_nether_roof.conf
And the signs file, hoping something can be seen there:
signs.json
I'm back to my main dev computer after being on vacation and have been looking through the BlueMap API classes. Nothing obvious appears with respect to the min/max coordinates.
I've asked about this on the BlueMap discord server, however, to check my assumptions.
I'd like to understand your configuration a bit better in the meantime.
Do you have 2 separate nether map configurations? One for just the roof and one for the under roof?
Do you have 2 separate nether map configurations? One for just the roof and one for the under roof?
Yeah I do have two nether map configurations, was the only way I could think to have a proper render of the nether roof, while not occluding the "normal nether" render. You can access them here, in case it's useful:
https://minecraft.elboletaire.com/#grandline_the_nether_roof:32:0:-1:656:0:0:0:0:perspective https://minecraft.elboletaire.com/#grandline_the_nether:-48:0:-224:1500:0:0:0:0:perspective
Thanks! That is helpful,
It seems like the primary problem is that you want some markers to be visible on some maps, but not on others. Is that a valid summary?
If that is the case, I'll think about some other ways of making that available through the configuration.
It seems like the primary problem is that you want some markers to be visible on some maps, but not on others. Is that a valid summary?
Yes, I'd like to have only the markers of the visible bounds in my renders but, as I said yesterday, one of the renders is not loading any markers at all (the "normal nether" one).
If that is the case, I'll think about some other ways of making that available through the configuration.
If there's no other way, that may work. Maybe doing as bluemap, and having a config file for each map too? It could be quite redundant, but at the same time gives a lot of different configuration opportunities. You could be using multiverse and have totally different ways of adding markers to your maps.
edit: or better, a combo... continue using the BMSM-Core.json as the general file, and allow having config files per render.
@elboletaire, I asked in the BlueMap discord about whether the API offers the min/max settings and it doesn't. The author has tentative plans for updating the min/max config in the future to allow more flexibility and may include a method like isInsideRenderBounds(Vec3)
in the API. But this is not guaranteed.
I'm not keen on adding the functionality to read the BlueMap config, since that would inevitably break when the BlueMap config is changed.
I would prefer to leave the min/max calculation up to BlueMap.
Instead of focusing on the min/max configuration, what do you think of a separate feature request where the config will only put certain marker types on certain maps (e.g. [portal] only shows on nether_roof)?
Sounds like an alternative, considering the API does not support it.
BTW I can naswer rn but I won't be able for the next month (I'm about to take a plane. Just so you know in case you tag me again ;)
I have a map configured to render my nether roof, and I realized that the markers below the min-y configured height are also being imported to that map.
Hard to see in the picture but all four markers in the bottom are below the configured min-y of 126
Not really sure if this is an issue with your extension or with bluemap itself, let me know if I'm wrong and I'll open an issue upstream.