tterrag1098 / Blur

Modifies the background behind Minecraft GUIs to have a blur effect
MIT License
41 stars 49 forks source link

Gradient settings keep getting replaced with the default #56

Open HipHopHuman opened 4 years ago

HipHopHuman commented 4 years ago

MC Version: 1.15.2 Forge version: forge-31.2.36

Issue Description: Custom settings for the gradient in blur-client.toml are not being respected. Any value entered (with the exception of 00000000) is replaced with the default value 75000000. I have done everything I can to ensure I am specifying ARGB values correctly - validating with this tool, choosing from a select ARGB example from a color site, specifying hex (FF, E5, etc) as well as digit values (99, 255), different variations of capitlization and a prepended #. None of it works. Am I doing this wrong?

Latest.log ```vim [03:48:08] [main/INFO]: ModLauncher running: args [--username, , --version, forge-31.2.36, --gameDir, D:\Games\Minecraft\Instances\Varnished, --assetsDir, D:\Games\Minecraft\Install\assets, --assetIndex, 1.15, --uuid, bf55fc7a903a4b2cbc4219fdd8e615fa, --accessToken, ????????, --userType, mojang, --versionType, release, --width, 1920, --height, 1080, --launchTarget, fmlclient, --fml.forgeVersion, 31.2.36, --fml.mcVersion, 1.15.2, --fml.forgeGroup, net.minecraftforge, --fml.mcpVersion, 20200515.085601] [03:48:08] [main/INFO]: ModLauncher 5.1.2+70+master.2845bb9 starting: java version 1.8.0_51 by Oracle Corporation [03:48:08] [main/INFO]: Added Lets Encrypt root certificates as additional trust [03:48:09] [main/INFO]: SpongePowered MIXIN Subsystem Version=0.8 Source=file:/D:/Games/Minecraft/Instances/Varnished/mods/MixinBootstrap-1.0.3.jar Service=ModLauncher Env=CLIENT [03:48:10] [main/INFO]: Successfully loaded Mixin Connector [arekkuusu.betterhurttimer.common.core.Connector] [03:48:10] [main/INFO]: Successfully loaded Mixin Connector [com.performant.coremod.mixin.Connector] [03:48:10] [main/INFO]: Successfully loaded Mixin Connector [me.jellysquid.mods.phosphor.mixin.PhosphorMixinConnector] [03:48:10] [main/INFO]: Launching target 'fmlclient' with arguments [--version, forge-31.2.36, --gameDir, D:\Games\Minecraft\Instances\Varnished, --assetsDir, D:\Games\Minecraft\Install\assets, --uuid, bf55fc7a903a4b2cbc4219fdd8e615fa, --username, , --assetIndex, 1.15, --accessToken, ????????, --userType, mojang, --versionType, release, --width, 1920, --height, 1080] [03:48:10] [main/INFO]: Performant configs loaded [03:48:11] [main/INFO]: Not enabling mixin forcom.performant.coremod.mixin.world.ServerWorldMixin as config disables it. [03:48:13] [Render thread/INFO]: Setting user: [03:48:22] [Render thread/INFO]: Backend library: LWJGL version 3.2.2 build 10 [03:48:23] [Render thread/WARN]: Cryptography is restricted in this Java installation [03:48:23] [Render thread/WARN]: Please complain to Mojang for shipping a 5 year old Java version [03:48:23] [Render thread/INFO]: Cryptography restriction removed successfully [03:48:24] [modloading-worker-7/INFO]: Mod worldgenerationprofiler is signed with a valid certificate. [03:48:24] [modloading-worker-15/INFO]: Mod uteamcore is signed with a valid certificate. [03:48:24] [modloading-worker-2/INFO]: Forge mod loading, version 31.2.36, for MC 1.15.2 with MCP 20200515.085601 [03:48:24] [modloading-worker-2/INFO]: MinecraftForge v31.2.36 Initialized [03:48:25] [Render thread/INFO]: Registering 10 global loot modifier serializers. [03:48:26] [Render thread/INFO]: Registering 2 recipe serializers. [03:48:26] [Render thread/INFO]: Registering 6 ingredient serializers. [03:48:27] [Render thread/INFO]: Narrator library for x64 successfully loaded [03:48:27] [Render thread/INFO]: Reloading ResourceManager: Blur dummy resource pack, Default, Mod Resources [03:48:27] [Server-Worker-6/WARN]: Configuration file D:\Games\Minecraft\Instances\Varnished\config\blur-client.toml is not correct. Correcting [03:48:27] [Server-Worker-6/WARN]: Incorrect key gradientStartColor was corrected from d5000000 to 75000000 [03:48:27] [Server-Worker-6/WARN]: Incorrect key gradientEndColor was corrected from d5000000 to 75000000 [03:48:27] [Server-Worker-6/WARN]: Configuration file D:\Games\Minecraft\Instances\Varnished\config\betterhurttimer-common.toml is not correct. Correcting [03:48:27] [modloading-worker-1/INFO]: Shields up! [03:48:27] [modloading-worker-8/INFO]: Registering 2 command argument types. [03:48:27] [modloading-worker-8/INFO]: Registering 13 loot condition types. [03:48:27] [modloading-worker-5/INFO]: Performant loaded, lag begone! [03:48:28] [Forge Version Check/INFO]: [controlling] Starting version check at https://updates.blamejared.com/get?n=controlling&gv=1.15.2 [03:48:28] [modloading-worker-6/INFO]: Found preferred client: STABLE [03:48:28] [modloading-worker-6/INFO]: Discord client found and connected. [03:48:28] [Forge Version Check/INFO]: [controlling] Found status: BETA Current: 6.1.5.6 Target: 6.1.5.6 [03:48:28] [Forge Version Check/INFO]: [bettersprinting] Starting version check at https://raw.githubusercontent.com/chylex/Better-Sprinting/master/UpdateInfo.json [03:48:29] [Forge Version Check/INFO]: [bettersprinting] Found status: UP_TO_DATE Current: 3.1.0 Target: null [03:48:29] [Forge Version Check/INFO]: [reauth] Starting version check at https://raw.githubusercontent.com/TechnicianLP/ReAuth/master/update.json [03:48:29] [Forge Version Check/INFO]: [reauth] Found status: UP_TO_DATE Current: 3.8.1 Target: null [03:48:29] [Forge Version Check/INFO]: [bookshelf] Starting version check at https://updates.blamejared.com/get?n=bookshelf&gv=1.15.2 [03:48:29] [Forge Version Check/INFO]: [bookshelf] Found status: BETA Current: 5.6.40 Target: 5.6.40 [03:48:29] [Forge Version Check/INFO]: [uteamcore] Starting version check at https://api.u-team.info/update/uteamcore.json [03:48:30] [Forge Version Check/INFO]: [uteamcore] Found status: UP_TO_DATE Current: 3.0.2.169 Target: null [03:48:30] [Forge Version Check/INFO]: [forge] Starting version check at https://files.minecraftforge.net/maven/net/minecraftforge/forge/promotions_slim.json [03:48:31] [Render thread/WARN]: Missing sound for event: futuremc:weeping_vines_break [03:48:31] [Render thread/WARN]: Missing sound for event: futuremc:weeping_vines_step [03:48:31] [Render thread/WARN]: Missing sound for event: futuremc:weeping_vines_place [03:48:31] [Render thread/WARN]: Missing sound for event: futuremc:weeping_vines_hit [03:48:31] [Render thread/WARN]: Missing sound for event: futuremc:weeping_vines_fall [03:48:31] [Forge Version Check/INFO]: [forge] Found status: AHEAD Current: 31.2.36 Target: null [03:48:31] [Forge Version Check/INFO]: [worldgenerationprofiler] Starting version check at https://api.u-team.info/update/worldgenerationprofiler.json [03:48:31] [Render thread/INFO]: OpenAL initialized. [03:48:31] [Render thread/INFO]: Sound engine started [03:48:31] [Forge Version Check/INFO]: [worldgenerationprofiler] Found status: UP_TO_DATE Current: 1.4.0.8 Target: null [03:48:31] [Render thread/INFO]: Created: 1024x512x4 minecraft:textures/atlas/blocks.png-atlas [03:48:31] [Render thread/INFO]: Created: 128x128x4 minecraft:textures/atlas/signs.png-atlas [03:48:31] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/banner_patterns.png-atlas [03:48:31] [Render thread/INFO]: Created: 512x512x4 minecraft:textures/atlas/shield_patterns.png-atlas [03:48:31] [Render thread/INFO]: Created: 256x256x4 minecraft:textures/atlas/chest.png-atlas [03:48:31] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/beds.png-atlas [03:48:31] [Render thread/INFO]: Created: 512x256x4 minecraft:textures/atlas/shulker_boxes.png-atlas [03:48:31] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/particles.png-atlas [03:48:31] [Render thread/INFO]: Created: 256x256x0 minecraft:textures/atlas/paintings.png-atlas [03:48:31] [Render thread/INFO]: Created: 128x128x0 minecraft:textures/atlas/mob_effects.png-atlas ```
TYPyz commented 3 years ago

Same here

tterrag1098 commented 3 years ago

This is due to a bug in my parsing, a workaround is to use a value with an alpha less than 7F.