Generating palette files
#5
So, I have managed to recreate the scripts for generating the BlockStates.cp/h files
Also, I created scripts for generating the following:
Palette_1_XX files
BlockItemConverter.cpp
Items.h
CustomStatistics.h
BlockTypes.h
All functions except those related to banners patterns and entities in NamespaceSerializer.cpp
Maps for converting particle names into protocol_ids

With all this, I have managed to add connection support for all versions up to 1.21.1 Currently only 1.21.1 has proper palettes as I had to disable old ones as they have to be regenerated for the new BlockState.cpp/h files.

However, when my script for generating Palette_1_XX files sees that the block states of some block have changed in between versions it simply skips that block. It looks like tigerw attempted to translate block states in cases like this, but I consider this a waste of time since it basically has to be done on a block-by-block basis.

You can find the scripts here: https://github.com/MightyFilipns/Cuberit.../tree/main
The repo where is implemented all this: https://github.com/MightyFilipns/cuberit...hunkFormat
Reply
Thanks given by:


Messages In This Thread
Generating palette files - by MightyFilipns - 10-09-2024, 08:36 PM
RE: Generating palette files - by NiLSPACE - 10-10-2024, 03:34 AM
RE: Generating palette files - by MightyFilipns - 10-10-2024, 08:27 AM
RE: Generating palette files - by NiLSPACE - 10-10-2024, 04:46 PM
RE: Generating palette files - by MightyFilipns - 10-21-2024, 03:35 AM



Users browsing this thread: 1 Guest(s)