optifine icon indicating copy to clipboard operation
optifine copied to clipboard

Custom colors colormaps get randomized (optifine 1.20.6)

Open Emfire12345 opened this issue 1 year ago • 13 comments

Tested with OptiFine 1.20.6_HD_U_I9_pre1 Features in question are custom colors colormaps, tested with grid colormaps.

Issue is that the colormap doesnt choose the right color that it should, even worse is that this changes every time i restarted the game.

Test1: try1 Test2: try2

Emfire12345 avatar Jun 07 '24 12:06 Emfire12345

Can confirm, colormaps are currently incorrect. 2024-06-08_14 39 31

SeaOfPixels avatar Jun 08 '24 21:06 SeaOfPixels

Can also confirm : t1 t2

Also randomizes everytime I close the game.

SnobbyBlobby avatar Jun 09 '24 16:06 SnobbyBlobby

While it does randomize the colormaps, atleast on my end they dont seem to change every time I re-launch the game 2024-06-15_18 44 53 2024-06-15_18 40 55 2024-06-15_18 37 44 2024-06-15_18 33 23 2024-06-15_18 32 05 2024-06-15_18 31 20 jlkhjghsdgb

Pineapple71717 avatar Jun 15 '24 22:06 Pineapple71717

It's not that the colormaps are randomizing, it's that the gridmap IDs are incorrect. This happens all the time during OptiFine development when updating to new whole number versions.

SeaOfPixels avatar Jun 15 '24 23:06 SeaOfPixels

It's not that the colormaps are randomizing, it's that the gridmap IDs are incorrect. This happens all the time during OptiFine development when updating to new whole number versions.

In the last few version that happend because they added new biomes which offset the IDs, 1.21 didnt add a single new biome and the IDs are not shifted, they are shuffled all over the place, if the plains biome gets the wrong color you know something is messed up badly.

Emfire12345 avatar Jun 16 '24 04:06 Emfire12345

It's not that the colormaps are randomizing, it's that the gridmap IDs are incorrect. This happens all the time during OptiFine development when updating to new whole number versions.

In the last few version that happend because they added new biomes which offset the IDs, 1.21 didnt add a single new biome and the IDs are not shifted, they are shuffled all over the place, if the plains biome gets the wrong color you know something is messed up badly.

No, this has happened multiple times before in update transitions that had no new biomes or changes to the IDs.

SeaOfPixels avatar Jun 17 '24 06:06 SeaOfPixels

It would be nice if we could specify the columns using the Biome Namespace ID in the .properties file

SyndiShanX avatar Jul 01 '24 10:07 SyndiShanX

It would be nice if we could specify the columns using the Biome Namespace ID in the .properties file

I wish we could have 256x256 colormaps for each biome, were 1 pixel = 1 block, similar to how colormaps were applied pre beta 1.8, then you could literally paint the landscape

Emfire12345 avatar Jul 01 '24 12:07 Emfire12345

I think the current method would be fine if gridmaps didn't keep extending past the farthest vanilla ID (End Barrens) into the unused IDs. This currently breaks grid colormap compatibility with mods that use unused biome IDs for their modded biomes. The gridmaps should only apply the columns that are actually used by vanilla (currently that's ID 0 to 63, so ID 64 onward would ignore gridmaps).

SeaOfPixels avatar Jul 02 '24 20:07 SeaOfPixels

But mod compatibility is something we want

SyndiShanX avatar Jul 02 '24 21:07 SyndiShanX

The current method breaks when multiple sources (datapacks/mods) use the same biome IDs anyways, which is very likely to happen.

SeaOfPixels avatar Jul 03 '24 05:07 SeaOfPixels

Namespace IDs would fix that

SyndiShanX avatar Jul 03 '24 05:07 SyndiShanX

Ye just doing everything in a file would be best, however I think that's way less likely to happen since it'd be way more work for SP, so I tried suggesting something that I thought would be less taxing.

SeaOfPixels avatar Jul 03 '24 05:07 SeaOfPixels

Besides the randomising (which is weird), grass colormaps don't seem to work AT ALL for me. Only displaying the vanilla colours, while water and fog and all is still recoloured (randomly). Could be related to #7259 and/or #7699 ?

Baby-FarkMcGeezax avatar Aug 07 '24 12:08 Baby-FarkMcGeezax

Can confirm in OptiFine 1.21_HD_U_J1_pre6.

SeaOfPixels avatar Sep 02 '24 22:09 SeaOfPixels

Fixed, coming in next 1.21 preview

sp614x avatar Sep 04 '24 12:09 sp614x