Fix palette warnings by removing palette from base nodes#92
Open
Pivert wants to merge 1 commit into
Open
Conversation
Pull Request Test Coverage Report for Build 18448632162Details
💛 - Coveralls |
Collaborator
|
i tried this, the warnings disappear but the nodes can't be colored (for example oh, and i think i know why the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request: Fix Palette Warnings by Correcting Paramtype2 Compatibility
Disclaimer
The findings and the PR was issued by AI. Please review accordingly.
Issue Description
This PR addresses a significant issue causing over 1,800 warnings during server startup similar to:
Root Cause Analysis
The problem occurs in
nodes.luawhere colorable nodes are registered with:palette = "unifieddyes_palette_extended.png"(assigned at line 535)paramtype2 = "facedir"(default value from line 528)According to the Unified Dyes API, these combinations are incompatible. Valid paramtype2 values for palettes are:
"color"- for 89-color or 256-color nodes"colorwallmounted"- for 32-color nodes using "wallmounted" mode"colorfacedir"- for nodes using "split" 89-color palettesSolution Implemented
The fix removes the palette assignment from base nodes while preserving all coloring functionality:
ud_param2_colorablegroupparamtype2 = "color"Technical Changes
Impact
This change follows Unified Dyes best practices by separating the colorable indicator (ud_param2_colorable group) from the actual palette implementation, which should only exist on nodes with compatible paramtype2 values.