Custom pipeline configurations (defaults/types) not being updated correctly at all
ambrosia13 opened this issue ยท 5 comments
System Informatinon
- Minecraft Version: 1.17.1
- Canvas Version: Tested 2035 and 2082
- Operating System: Windows 10
- Graphics Card: RTX 3060
Other mods and versions installed
(taken from latest.log)
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]+1.17
- [email protected]
- [email protected]
- [email protected]
- [email protected]+1.17
- [email protected]+a02b44633d
- [email protected]+cbda931818
- [email protected]+cbda931818
- [email protected]+a02b446318
- [email protected]+5ab9934c18
- [email protected]+92519afa18
- [email protected]+cbda931818
- [email protected]+cbda931818
- [email protected]+be9da31018
- [email protected]+6cefd57718
- [email protected]+87cc6e4c18
- [email protected]+fc40aa9d18
- [email protected]+92519afa18
- [email protected]+cbda931818
- [email protected]+cbda931818
- [email protected]+b7ab612118
- [email protected]+cbda931818
- [email protected]+36b77c3e18
- [email protected]+kotlin.1.5.30
- [email protected]+a02b44633d
- [email protected]+a02b446318
- [email protected]+92519afa18
- [email protected]+a02b446318
- [email protected]+cbda931818
- [email protected]+a02b446318
- [email protected]+92519afa18
- [email protected]+cbda931818
- [email protected]+a02b446318
- [email protected]+a02b446318
- [email protected]+e2961fee18
- [email protected]+cbda931818
- [email protected]+cbda931818
- [email protected]+4658223018
- [email protected]+a02b446318
- [email protected]+4658223018
- [email protected]+4658223018
- [email protected]+ffb6d41e18
- [email protected]+a00e834b18
- [email protected]+cbda931818
- [email protected]+cbda931818
- [email protected]+5ab9934c18
- [email protected]+b06cb95b18
- [email protected]+a02b446318
- [email protected]+b7ab612118
- [email protected]+4658223018
- [email protected]
- [email protected]+1.17.1
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]+1.17
- [email protected]
- [email protected]+1.17
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]+1.17
- [email protected]+j1.2.0
- java@16
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]+1.17
- [email protected]
- [email protected]
- [email protected]
- [email protected]+1.17
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]
- [email protected]+1.17
- [email protected]+fabric.73f6d37
- [email protected]
How you triggered the behavior
- Create pipeline configuration
- In these particular instances, I set several options as booleans with default "true".
- In one scenario, I changed two options to default "false", but after several restarts and resource reloads, the default that the game tells me is "true".
- In another instance, I changed a config from boolean with default "true" to integer slider with a min of 0 and max of 4 and default of 3, however the default in game is still "true" and the option appears as a boolean.
- I have tested with both version 2035 and version 2082.
- Deleting the pipeline configuration file only results in the config options being put back to their "defaults".
- What happened in the second scenario:
Current:
auto_exposure: {
default: "3",
min: "0",
max: "4",
nameKey: "config.honey.name.auto_exposure",
descriptionKey: "config.honey.help.auto_exposure"
},
Previous:
auto_exposure: {
default: "true",
nameKey: "config.honey.name.auto_exposure",
descriptionKey: "config.honey.help.auto_exposure"
},
What you expected would happen
- I expected the options to be updated accordingly, at least after a resource reload.
What actually happened
- The options did not update and instead reflect their previous versions.
Logs and screenshots
latest.log
Interesting observation. It could be an issue with the wiki and Canvas itself. While I'm not super familiar with json5 I'm almost sure quotation mark will be interpreted as string (otherwise how would you encode an actual string that says "true"?) You're probably right that Canvas interprets string as a true boolean somehow. I'll look into it but still consider this particular issue resolved.
You're right, removing the quotation marks fixes it.
I guess I just got confused since the Pipeline Config Wiki had booleans in quotation marks. It appears Canvas reads everything as true when the booleans are in quotes?
Anyway, sorry for the trouble.
Update: this is not just an issue on my side. Other devices downloading the shader for the first time are also affected by this.
Workaround: I just remade the auto exposure option with a different name and it worked. I also changed the #ifdefs for the other options to #ifndefs because remaking the options was not fixing the problem.
Can't reproduce this. Config type and default changed just fine without resource reload. Unless I'm interpreting it wrong?
pipeline_config_Demo.mp4
Maybe it's because you put quotation mark around numbers and boolean values? I'm not sure how that works in the first place, maybe JSON5 is that lenient. But you shouldn't need to do that. Quotation marks are typically interpreted as textual strings.