SkidderMC / FDPClient

Minecraft 1.8.9 forge hacked client forked from LiquidBounce
https://fdpinfo.github.io/
GNU General Public License v3.0
371 stars 173 forks source link

[Bug] Problem about HUD #866

Closed HarcicYang closed 11 months ago

HarcicYang commented 1 year ago

Describe the bug HUD settings cannot save or load correctly. For example: There's the HUD settings I using:

[
  {
    "Type": "Scoreboard",
    "X": 5.0,
    "Y": 0.0,
    "Scale": 1.0,
    "HorizontalFacing": "Right",
    "VerticalFacing": "Middle",
    "Text-R": 255,
    "Text-G": 255,
    "Text-B": 255,
    "Background-R": 0,
    "Background-G": 0,
    "Background-B": 0,
    "Background-Alpha": 0,
    "Rect": false,
    "Rect-Color": "Custom",
    "Rect-R": 0,
    "Rect-G": 111,
    "Rect-B": 255,
    "Rect-Alpha": 255,
    "RainbowBar": false,
    "ShadowText": false,
    "ServerIp": "ClientName",
    "NoPoints": true,
    "Font": {
      "fontName": "Minecraft Font",
      "fontSize": -1
    },
    "Shadow": false,
    "Shadow-Strength": 0.0,
    "Shadow-Color": "Background",
    "Shadow-Red": 0,
    "Shadow-Green": 111,
    "Shadow-Blue": 255,
    "Blur": 0.0
  },
  {
    "Type": "Armor",
    "X": -8.0,
    "Y": 57.0,
    "Scale": 1.0,
    "HorizontalFacing": "Middle",
    "VerticalFacing": "Down",
    "Mode": "Exhibition",
    "Alignment": "Horizontal",
    "Blur": 0.0
  },
  {
    "Type": "Notifications",
    "X": 0.0,
    "Y": 0.0,
    "Scale": 1.0,
    "HorizontalFacing": "Right",
    "VerticalFacing": "Down",
    "BackGroundAlpha": 170,
    "TitleShadow": false,
    "Motionblur": false,
    "ContentShadow": true,
    "WhiteTextColor": true,
    "CustomModeColored": true,
    "Mode": "FDP",
    "Blur": 12.0
  },
  {
    "Type": "Targets",
    "X": -74.0,
    "Y": -25.0,
    "Scale": 1.0,
    "HorizontalFacing": "Middle",
    "VerticalFacing": "Middle",
    "Style Options:": true,
    "Mode": "Astolfo",
    "RiseMode": "Rise6",
    "Chill-FontSpeed": 0.5,
    "Font": {
      "fontName": "Roboto Medium",
      "fontSize": 40
    },
    "Shadow": false,
    "Shadow-Strength": 1.0,
    "Shadow-Color": "Background",
    "Shadow-Red": 0,
    "Shadow-Green": 111,
    "Shadow-Blue": 255,
    "AnimSpeed": 10,
    "HpAnimType": "SINE",
    "HpAnimOrder": "FAST_AT_START",
    "SwitchMode": "Slide",
    "SwitchAnimType": "SINE",
    "SwitchAnimOrder": "FAST_AT_START",
    "SwitchAnimSpeed": 20,
    "No-Animation": false,
    "Global-AnimSpeed": 3.0,
    "ArrisRounded": true,
    "Color": "Health",
    "Red": 252,
    "Green": 96,
    "Blue": 66,
    "Saturation": 1.0,
    "Brightness": 1.0,
    "Background-Red": 0,
    "Background-Green": 0,
    "Background-Blue": 0,
    "Background-Alpha": 160,
    "RainbowSpeed": 1,
    "FadeAnim": false,
    "Fade-Speed": 1.0,
    "Seconds": 2,
    "RiseHurt": true,
    "RiseAlpha": 130,
    "Rise-Count": 5,
    "Rise-Size": 1.0,
    "Rise-Alpha": 0.7,
    "Rise-Distance": 1.0,
    "Rise-MoveTime": 20,
    "Rise-FadeTime": 20,
    "GradientLoop": 4,
    "GradientDistance": 50,
    "GradientRoundedBar": true,
    "Rice-Particle": true,
    "Rice-ParticleSpin": true,
    "GenerateAmount": 10,
    "Circle-Particles": "Solid",
    "Rect-Particles": "Outline",
    "Triangle-Particles": "Outline",
    "Rice-ParticleSpeed": 0.05,
    "Rice-ParticleFade": true,
    "ParticleFadingSpeed": 0.05,
    "Rice-ParticleRange": 50.0,
    "MinParticleSize": 0.5,
    "MaxParticleSize": 2.5,
    "Blur": 0.0
  },
  {
    "Type": "Arraylist",
    "X": 1.0,
    "Y": 2.0,
    "Scale": 1.0,
    "HorizontalFacing": "Right",
    "VerticalFacing": "Up",
    "Color Options:": true,
    "Text-Color": "Rainbow",
    "Text-R": 0,
    "Text-G": 111,
    "Text-B": 255,
    "RainbowSpeed": 1,
    "CRainbow-Seconds": 2,
    "CRainbow-Distance": 2,
    "Tag Options:": true,
    "TagsStyle": "Space",
    "Tag-Color": "Custom",
    "Tag-R": 195,
    "Tag-G": 195,
    "Tag-B": 195,
    "Text Options:": true,
    "Font": {
      "fontName": "TenacityBold35",
      "fontSize": 35
    },
    "TextAlpha": 255,
    "Saturation": 0.9,
    "Brightness": 1.0,
    "ShadowText": true,
    "SplitName": true,
    "SlideInAnimation": true,
    "NoRenderModules": true,
    "Case": "Normal",
    "Space": 0.0,
    "TextHeight": 11.0,
    "TextY": 1.0,
    "Rect Options:": true,
    "Rect": "Left",
    "Rect-Color": "Rainbow",
    "Rect-R": 255,
    "Rect-G": 255,
    "Rect-B": 255,
    "Rect-Alpha": 255,
    "BackGround Options:": true,
    "Background-Color": "Custom",
    "Background-R": 0,
    "Background-G": 0,
    "Background-B": 0,
    "Background-Alpha": 133,
    "Background-Expand": 2,
    "Shadow Options:": true,
    "Shadow-Shader": true,
    "Shadow-NoCut": false,
    "Shadow-Strength": 16,
    "Shadow-Color": "Background",
    "Shadow-Red": 0,
    "Shadow-Green": 111,
    "Shadow-Blue": 255,
    "Blur": 0.0
  }
]

It should be like: image But in fact: image And it would reset some of HUD settings to default in hud.json but some wouldn't.

To Reproduce

  1. Join a game
  2. Change HUD settings with HUD Designer
  3. Restart the game

System Information

Other Installed Mods If you have any other mods installed, please list them here along with their version number.

DavidDavid1337 commented 1 year ago

got the same issue

C00LC0D35 commented 1 year ago

zywl gay issue