Jump to content

MCM Script help


Halstrom

Recommended Posts

I'm getting an error in MCM when I try to open this menu in game, I probably got brackets in wrong place or something, I don't speak json, just merged 2 scripts to get this:

{
  "modName": "SynthPlayer", 
  "displayName": "Synth Player", 
  "minMcmVersion": 2, 
  "pluginRequirements": ["SynthPlayer.esp"],
  "content":
	[
		{
			"text": "Mode to simulate robotic functions and needs of the player being a Synth ",
			"type": "text"
		},
		{
			"type": "spacer",
			"numLines": 1     
		},
		{
			"text": "Hotkeys",
			"type": "section"
		},
		{
          "id": "TurboOverClockHotkey",
          "text": "Toggle TurboOverClock",
          "type": "hotkey",
          "help": "Hotkey for Turbo Overclock Mode (not used yet)."
        },
		{
			"text": "Why do I need this and what does it do?",
			"type": "text"
		},
		{
			"text": "This boosts a Synths Abilities until combat ends or Power becomes less than 50% or CoreTemperature goes above 50.",
			"type": "text"
		}
	],
	"pages":
	[
		{
		"pageDisplayName": "Settings",
		"content":
			[
				{
					"text": "General",
					"type": "section"
				},
				{
					"text": "Buff Percentage (not used yet)",
					"type": "slider",
					"help": "Alter the buff effect of the mod",
					"valueOptions":
					{
						"min": 50.0,
						"max": 200.0,
						"step": 5.0,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|10440EF"
					}
				},
				{
					"text": "SpareSlider1",
					"type": "slider",
					"help": "SpareSlider1",
					"valueOptions":
					{
						"min": 1.5,
						"max": 3,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|100440EF"
					}
				}
			]
		},
		{
			pageDisplayName Customize HUD,
			content
			[
				{
					text Simple HUD mod for Attributes ,
					type text
				},
				{
					text CoreTemp,
					type section
				},
				{
					text CoreTemp X Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B7B
					}
				},
				{
					text CoreTemp Y Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B7C
					}
				},
				{
					text CoreTemp Scale,
					type slider,
					help 0 Hides the widget,
					valueOptions
					{
						min 0.1,
						max 2,
						step 0.1,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B7A
					}
				},
				{
					text Power,
					type section
				},
				{
					text Power X Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B7E
					}
				},
				{
					text Power Y Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B7F
					}
				},
				{
					text Power Scale,
					type slider,
					help 0 Hides the widget,
					valueOptions
					{
						min 0.1,
						max 2,
						step 0.1,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B7D
					}	
				},	
				{
					text LubriCool,
					type section
				},
				{
					text LubriCool X Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B81
					}
				},
				{
					text LubriCool Y Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B82
					}
				},
				{
					text LubriCool Scale,
					type slider,
					help 0 Hides the widget,
					valueOptions
					{
						min 0.1,
						max 2,
						step 0.1,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B80
					}
				},
				{
					text Integrity,
					type section
				},
				{
					text Integrity X Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B84
					}
				},
				{
					text Integrity Y Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B85
					}
				},
				{
					text Integrity Scale,
					type slider,
					help 0 Hides the widget,
					valueOptions
					{
						min 0.1,
						max 2,
						step 0.1,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B83
					}
				},
				{
					text TotalStatus,
					type section
				},
				{
					text TotalStatus X Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B87
					}
				},
				{
					text TotalStatus Y Position,
					type slider,
					help ,
					valueOptions
					{
						min 0,
						max 1000,
						step 10,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B88
					}
				},
				{
					text TotalStatus Scale,
					type slider,
					help 0 Hides the widget,
					valueOptions
					{
						min 0,
						max 2,
						step 0.1,
						sourceType GlobalValue,
						sourceForm SynthPlayerHUD.esp1050B86
					}
				}
			]
		}
	]
}

 

Link to comment

You are missing a fuck-ton of " and : in your code.  Look at the first few entries at the top, then look at everything you added in the rest.  Notice all the quotes and colons?  Those are NECESSARY!

 

JSON is a literal-interpretation code structure.  That means syntax has to be exact, and it will not try to guess at your meaning.

Link to comment

There are a tons of errors in the JSON.

I fixed some, but not all.

	{
  "modName": "SynthPlayer", 
  "displayName": "Synth Player", 
  "minMcmVersion": 2, 
  "pluginRequirements": ["SynthPlayer.esp"],
  "content":
    [
        {
            "text": "Mode to simulate robotic functions and needs of the player being a Synth ",
            "type": "text"
        },
        {
            "type": "spacer",
            "numLines": 1     
        },
        {
            "text": "Hotkeys",
            "type": "section"
        },
        {
          "id": "TurboOverClockHotkey",
          "text": "Toggle TurboOverClock",
          "type": "hotkey",
          "help": "Hotkey for Turbo Overclock Mode (not used yet)."
        },
        {
            "text": "Why do I need this and what does it do?",
            "type": "text"
        },
        {
            "text": "This boosts a Synths Abilities until combat ends or Power becomes less than 50% or CoreTemperature goes above 50.",
            "type": "text"
        }
    ],
    "pages":
    [
        {
        "pageDisplayName": "Settings",
        "content":
            [
                {
                    "text": "General",
                    "type": "section"
                },
                {
                    "text": "Buff Percentage (not used yet)",
                    "type": "slider",
                    "help": "Alter the buff effect of the mod",
                    "valueOptions":
                    {
                        "min": 50.0,
                        "max": 200.0,
                        "step": 5.0,
                        "sourceType": "GlobalValue",
                        "sourceForm": "SynthPlayer.esp|10440EF"
                    }
                },
                {
                    "text": "SpareSlider1",
                    "type": "slider",
                    "help": "SpareSlider1",
                    "valueOptions":
                    {
                        "min": 1.5,
                        "max": 3,
                        "step": 0.1,
                        "sourceType": "GlobalValue",
                        "sourceForm": "SynthPlayer.esp|100440EF"
                    }
                }
            ]
        },
        {
            "pageDisplayName": "Customize HUD",
            "content":
            [
                {
                    "text": "Simple HUD mod for Four-Play Attributes",
                    "type": "text"
                },
                {
                    "text":"coreTemp",
                    "type":"section"
                },
                {
                    "text":"CoreTemp X Position",
                    "type":"slider",
                    "help": "",
                    "valueOptions":
                    {
                        "min":0,
                        "max":1000,
                        "step":10,
                        "sourceType":"GlobalValue",
                        "sourceForm":"SynthPlayerHUD.esp1050B7B"
                    }
                },
                {
                    text CoreTemp Y Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B7C
                    }
                },
                {
                    text CoreTemp Scale,
                    type slider,
                    help 0 Hides the widget,
                    valueOptions
                    {
                        min 0.1,
                        max 2,
                        step 0.1,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B7A
                    }
                },
                {
                    text Power,
                    type section
                },
                {
                    text Power X Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B7E
                    }
                },
                {
                    text Power Y Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B7F
                    }
                },
                {
                    text Power Scale,
                    type slider,
                    help 0 Hides the widget,
                    valueOptions
                    {
                        min 0.1,
                        max 2,
                        step 0.1,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B7D
                    }    
                },    
                {
                    text LubriCool,
                    type section
                },
                {
                    text LubriCool X Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B81
                    }
                },
                {
                    text LubriCool Y Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B82
                    }
                },
                {
                    text LubriCool Scale,
                    type slider,
                    help 0 Hides the widget,
                    valueOptions
                    {
                        min 0.1,
                        max 2,
                        step 0.1,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B80
                    }
                },
                {
                    text Integrity,
                    type section
                },
                {
                    text Integrity X Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B84
                    }
                },
                {
                    text Integrity Y Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B85
                    }
                },
                {
                    text Integrity Scale,
                    type slider,
                    help 0 Hides the widget,
                    valueOptions
                    {
                        min 0.1,
                        max 2,
                        step 0.1,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B83
                    }
                },
                {
                    text TotalStatus,
                    type section
                },
                {
                    text TotalStatus X Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B87
                    }
                },
                {
                    text TotalStatus Y Position,
                    type slider,
                    help ,
                    valueOptions
                    {
                        min 0,
                        max 1000,
                        step 10,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B88
                    }
                },
                {
                    text TotalStatus Scale,
                    type slider,
                    help 0 Hides the widget,
                    valueOptions
                    {
                        min 0,
                        max 2,
                        step 0.1,
                        sourceType GlobalValue,
                        sourceForm SynthPlayerHUD.esp1050B86
                    }
                }
            ]
        }
    ]
}
	

 

Remember that all keys need to be in double quotes, and after each key you need a colon (:)

String values need to be in double quotes.

Link to comment
2 hours ago, davisev5225 said:

You are missing a fuck-ton of " and : in your code.  Look at the first few entries at the top, then look at everything you added in the rest.  Notice all the quotes and colons?  Those are NECESSARY!

 

JSON is a literal-interpretation code structure.  That means syntax has to be exact, and it will not try to guess at your meaning.

Yeah see them now you point it out, no idea how I managed to delete all those, I didn't do it manually :tongue: 

Link to comment

Ok cleaned it up a lot got errors but unsure which brackets to remove, the added part to the script is from Line 72 down.

 

{
	"modName": "SynthPlayer", 
	"displayName": "Synth Player", 
	"minMcmVersion": 2, 
	"pluginRequirements": ["SynthPlayer.esp"],
	"content": [
		{
			"text": "Mode to simulate robotic functions and needs of the player being a Synth ",
			"type": "text"
		},
		{
			"type": "spacer",
			"numLines": 1     
		},
		{
			"text": "Hotkeys",
			"type": "section"
		},
		{
			"id": "TurboOverClockHotkey",
			"text": "Toggle TurboOverClock",
			"type": "hotkey",
			"help": "Hotkey for Turbo Overclock Mode (not used yet)."
		},
		{
			"text": "Why do I need this and what does it do?",
			"type": "text"
		},
		{
			"text": "This boosts a Synths Abilities until combat ends or Power becomes less than 50% or CoreTemperature goes above 50.",
			"type": "text"
		}
	],
	"pages": [
		{
			"pageDisplayName": "Settings",
			"content":	[
			{
				"text": "General",
				"type": "section"
			},
			{
				"text": "Buff Percentage (not used yet)",
				"type": "slider",
				"help": "Alter the buff effect of the mod",
				"valueOptions": {
					"min": 50.0,
					"max": 200.0,
					"step": 5.0,
					"sourceType": "GlobalValue",
					"sourceForm": "SynthPlayer.esp|010440EF"
				}
			},
			{
				"text": "SpareSlider1",
				"type": "slider",
				"help": "SpareSlider1",
				"valueOptions": {
					"min": 1.5,
					"max": 3,
					"step": 0.1,
					"sourceType": "GlobalValue",
					"sourceForm": "SynthPlayer.esp|100440EF"
				}
			}
			]

	
	
	
	
		{
		"pageDisplayName": "Customize HUD",
		"content": [
		{
			"text": "Simple HUD mod for SynthPlayer ",
			"type": "text"
		},
		{
			"type": "spacer",
			"numLines": 1     
		},
		{
			"text": "",
			"type": "section"
		},
		{
			"text": "Apply Settings",
			"type": "button",
			"help": "Applies x,y positions and scale to HUD",
			"action": {
				"type": "CallFunction",
				"form": "SynthPlayer.esp|01000F99",
				"function": "OnApply",
				"params": ["SynthPlayer_HUD"]
			}
		},
		{
			"text": "CoreTemp",
			"type": "section"
		},
		{
			"text": "CoreTemp X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7B"
			}
		},
		{
			"text": "CoreTemp Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7C"
			}
		},
		{
			"text": "CoreTemp Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0.1,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7A"
			}
		},
		{
			"text": "Power",
			"type": "section"
		},
		{
			"text": "Power X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7E"
			}
		},
		{
			"text": "Power Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7F"
			}
		},
		{
			"text": "Power Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0.1,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B7D"
			}
		},
		{
			"text": "LubriCool",
			"type": "section"
		},
		{
			"text": "LubriCool X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B81"
			}
		},
		{
			"text": "Self_Esteem Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B82"
			}
		},
		{
			"text": "LubriCool Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0.1,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B80"
			}
		},
		{
			"text": "Integrity",
			"type": "section"
		},
		{
			"text": "Integrity X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B84"
			}
		},
		{
			"text": "Integrity Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B85"
			}
		},
		{
			"text": "Integrity Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0.1,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B83"
			}
		},
		{
			"text": "TotalStatus",
			"type": "section"
		},
		{
			"text": "TotalStatus X Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B87"
			}
		},
		{
			"text": "TotalStatus Y Position",
			"type": "slider",
			"help": "",
			"valueOptions": {
				"min": 0,
				"max": 1000,
				"step": 10,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B88"
			}
		},
		{
			"text": "TotalStatus Scale",
			"type": "slider",
			"help": "0 Hides the widget",
			"valueOptions": {
				"min": 0,
				"max": 2,
				"step": 0.1,
				"sourceType": "GlobalValue",
				"sourceForm": "SynthPlayer.esp|01050B86"
			}
		},
		{
			"text": "",
			"type": "section"
		},
		{
			"text": "Uninstall mod",
			"type": "button",
			"help": "Removes the HUD widget and uninstalls the mod",
			"action": {
				"type": "CallFunction",
				"form": "SynthPlayer.esp|01000F99",
				"function": "OnUninstall",
				"params": ["SynthPlayer_HUD"]
				}
			}
		}

	}
  ]
}

 

Link to comment

I *HIGHLY* recommend getting Notepad++ for stuff like this.  Its syntax highlighting and collapsible code blocks are INVALUABLE!

 

Bottom brackets were messed up.  Try this:

{
	"modName": "SynthPlayer", 
	"displayName": "Synth Player", 
	"minMcmVersion": 2, 
	"pluginRequirements": ["SynthPlayer.esp"],
	"content":
	[
		{
			"text": "Mode to simulate robotic functions and needs of the player being a Synth ",
			"type": "text"
		},
		{
			"type": "spacer",
			"numLines": 1     
		},
		{
			"text": "Hotkeys",
			"type": "section"
		},
		{
			"id": "TurboOverClockHotkey",
			"text": "Toggle TurboOverClock",
			"type": "hotkey",
			"help": "Hotkey for Turbo Overclock Mode (not used yet)."
		},
		{
			"text": "Why do I need this and what does it do?",
			"type": "text"
		},
		{
			"text": "This boosts a Synths Abilities until combat ends or Power becomes less than 50% or CoreTemperature goes above 50.",
			"type": "text"
		}
	],
	"pages":
	[
		{
			"pageDisplayName": "Settings",
			"content":
			[
				{
					"text": "General",
					"type": "section"
				},
				{
					"text": "Buff Percentage (not used yet)",
					"type": "slider",
					"help": "Alter the buff effect of the mod",
					"valueOptions":
					{
						"min": 50.0,
						"max": 200.0,
						"step": 5.0,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|010440EF"
					}
				},
				{
					"text": "SpareSlider1",
					"type": "slider",
					"help": "SpareSlider1",
					"valueOptions":
					{
						"min": 1.5,
						"max": 3,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|100440EF"
					}
				}
			]
		},
		{
			"pageDisplayName": "Customize HUD",
			"content":
			[
				{
					"text": "Simple HUD mod for SynthPlayer ",
					"type": "text"
				},
				{
					"type": "spacer",
					"numLines": 1     
				},
				{
					"text": "",
					"type": "section"
				},
				{
					"text": "Apply Settings",
					"type": "button",
					"help": "Applies x,y positions and scale to HUD",
					"action":
					{
						"type": "CallFunction",
						"form": "SynthPlayer.esp|01000F99",
						"function": "OnApply",
						"params": "SynthPlayer_HUD"
					}
				},
				{
					"text": "CoreTemp",
					"type": "section"
				},
				{
					"text": "CoreTemp X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7B"
					}
				},
				{
					"text": "CoreTemp Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7C"
					}
				},
				{
					"text": "CoreTemp Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0.1,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7A"
					}
				},
				{
					"text": "Power",
					"type": "section"
				},
				{
					"text": "Power X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7E"
					}
				},
				{
					"text": "Power Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7F"
					}
				},
				{
					"text": "Power Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0.1,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7D"
					}
				},
				{
					"text": "LubriCool",
					"type": "section"
				},
				{
					"text": "LubriCool X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B81"
					}
				},
				{
					"text": "Self_Esteem Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B82"
					}
				},
				{
					"text": "LubriCool Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0.1,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B80"
					}
				},
				{
					"text": "Integrity",
					"type": "section"
				},
				{
					"text": "Integrity X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B84"
					}
				},
				{
					"text": "Integrity Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B85"
					}
				},
				{
					"text": "Integrity Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0.1,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B83"
					}
				},
				{
					"text": "TotalStatus",
					"type": "section"
				},
				{
					"text": "TotalStatus X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B87"
					}
				},
				{
					"text": "TotalStatus Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B88"
					}
				},
				{
					"text": "TotalStatus Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B86"
					}
				},
				{
					"text": "",
					"type": "section"
				},
				{
					"text": "Uninstall mod",
					"type": "button",
					"help": "Removes the HUD widget and uninstalls the mod",
					"action":
					{
						"type": "CallFunction",
						"form": "SynthPlayer.esp|01000F99",
						"function": "OnUninstall",
						"params": ["SynthPlayer_HUD"]
					}
				}
			]
		}
	]
}

 

Link to comment
34 minutes ago, davisev5225 said:

I *HIGHLY* recommend getting Notepad++ for stuff like this.  Its syntax highlighting and collapsible code blocks are INVALUABLE!

 

Bottom brackets were messed up.  Try this:


{
	"modName": "SynthPlayer", 
	"displayName": "Synth Player", 
	"minMcmVersion": 2, 
	"pluginRequirements": ["SynthPlayer.esp"],
	"content":
	[
		{
			"text": "Mode to simulate robotic functions and needs of the player being a Synth ",
			"type": "text"
		},
		{
			"type": "spacer",
			"numLines": 1     
		},
		{
			"text": "Hotkeys",
			"type": "section"
		},
		{
			"id": "TurboOverClockHotkey",
			"text": "Toggle TurboOverClock",
			"type": "hotkey",
			"help": "Hotkey for Turbo Overclock Mode (not used yet)."
		},
		{
			"text": "Why do I need this and what does it do?",
			"type": "text"
		},
		{
			"text": "This boosts a Synths Abilities until combat ends or Power becomes less than 50% or CoreTemperature goes above 50.",
			"type": "text"
		}
	],
	"pages":
	[
		{
			"pageDisplayName": "Settings",
			"content":
			[
				{
					"text": "General",
					"type": "section"
				},
				{
					"text": "Buff Percentage (not used yet)",
					"type": "slider",
					"help": "Alter the buff effect of the mod",
					"valueOptions":
					{
						"min": 50.0,
						"max": 200.0,
						"step": 5.0,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|010440EF"
					}
				},
				{
					"text": "SpareSlider1",
					"type": "slider",
					"help": "SpareSlider1",
					"valueOptions":
					{
						"min": 1.5,
						"max": 3,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|100440EF"
					}
				}
			]
		},
		{
			"pageDisplayName": "Customize HUD",
			"content":
			[
				{
					"text": "Simple HUD mod for SynthPlayer ",
					"type": "text"
				},
				{
					"type": "spacer",
					"numLines": 1     
				},
				{
					"text": "",
					"type": "section"
				},
				{
					"text": "Apply Settings",
					"type": "button",
					"help": "Applies x,y positions and scale to HUD",
					"action":
					{
						"type": "CallFunction",
						"form": "SynthPlayer.esp|01000F99",
						"function": "OnApply",
						"params": "SynthPlayer_HUD"
					}
				},
				{
					"text": "CoreTemp",
					"type": "section"
				},
				{
					"text": "CoreTemp X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7B"
					}
				},
				{
					"text": "CoreTemp Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7C"
					}
				},
				{
					"text": "CoreTemp Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0.1,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7A"
					}
				},
				{
					"text": "Power",
					"type": "section"
				},
				{
					"text": "Power X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7E"
					}
				},
				{
					"text": "Power Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7F"
					}
				},
				{
					"text": "Power Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0.1,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B7D"
					}
				},
				{
					"text": "LubriCool",
					"type": "section"
				},
				{
					"text": "LubriCool X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B81"
					}
				},
				{
					"text": "Self_Esteem Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B82"
					}
				},
				{
					"text": "LubriCool Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0.1,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B80"
					}
				},
				{
					"text": "Integrity",
					"type": "section"
				},
				{
					"text": "Integrity X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B84"
					}
				},
				{
					"text": "Integrity Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B85"
					}
				},
				{
					"text": "Integrity Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0.1,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B83"
					}
				},
				{
					"text": "TotalStatus",
					"type": "section"
				},
				{
					"text": "TotalStatus X Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B87"
					}
				},
				{
					"text": "TotalStatus Y Position",
					"type": "slider",
					"help": "",
					"valueOptions":
					{
						"min": 0,
						"max": 1000,
						"step": 10,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B88"
					}
				},
				{
					"text": "TotalStatus Scale",
					"type": "slider",
					"help": "0 Hides the widget",
					"valueOptions":
					{
						"min": 0,
						"max": 2,
						"step": 0.1,
						"sourceType": "GlobalValue",
						"sourceForm": "SynthPlayer.esp|01050B86"
					}
				},
				{
					"text": "",
					"type": "section"
				},
				{
					"text": "Uninstall mod",
					"type": "button",
					"help": "Removes the HUD widget and uninstalls the mod",
					"action":
					{
						"type": "CallFunction",
						"form": "SynthPlayer.esp|01000F99",
						"function": "OnUninstall",
						"params": ["SynthPlayer_HUD"]
					}
				}
			]
		}
	]
}

 


Thanks, I'll give that a go, I tried CPU's tool too, it helped some :)
I am using Notepad++, I just don't know how it works for json stuff and being 70% blind doesn't help me a lot :smile:

Link to comment

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use