MehVahdJukaar / polytone

Other
37 stars 3 forks source link

Colormaps based on biome ID which use a biome ID mapper with a "texture_size" property map colors incorrectly starting from biome 17 #69

Closed gaboscharff99 closed 1 month ago

gaboscharff99 commented 1 month ago

Version: v1.21-2.2.5

I have the following files under /assets/minecraft/polytone in my custom resource pack:

However, after extensive testing of this colormap, even with different images with the same dimensions but different colors, I've concluded that only the undefined biomes (which map to 0) and biomes mapped to any number between 1-16 actually take the correct colors from the colormap. Biomes numbered 17 and onwards do not, and instead take the color for the next biome defined in the mapper (so biome 17 takes the color for biome 18, 18 for 19, and so on). In this example, the savanna biome would take the color meant to be used for the savanna plateau, and the savanna plateau would take the color for windswept hills, while the windswept hills would take the one for windswept gravelly hills, and so on. After thoroughly checking the wiki and my own files for mistakes multiple times, I cannot think of any possibilty for why this happens other than a bug.

It should be noted that I have not tested this with images of different sizes, or without using the texture_size property. It should also be noted that the prebuilt grid colormap without a biome ID mapper works as intended, for some strange reason. Perhaps it doesn't use the texture_size property if no biome ID mapper is used?

MehVahdJukaar commented 1 month ago

can you send the pack you are using or that relevant part, texture included?

gaboscharff99 commented 1 month ago

Chaos Visuals.zip A lot of textures are missing since this is a pretty early WIP.

MehVahdJukaar commented 1 month ago

So i cant replicate. I tried changing the plains pixel to yellow as such and this is what I got image image

MehVahdJukaar commented 1 month ago

tested in 1.21 latest

gaboscharff99 commented 1 month ago

As I said, this only happens with biomes number 17 and onwards in the biome ID mapper. It wouldn't happen with the plains biome, because it's number 1.

MehVahdJukaar commented 1 month ago

i misted i thought you meant the other way around

gaboscharff99 commented 1 month ago

Sorry, misunderstanding. But please let me know about your findings.

MehVahdJukaar commented 1 month ago

was due to a rounding error. Should be fixed

gaboscharff99 commented 1 month ago

It's fixed now! Thanks for looking into it!