My helmet always reappears after I talk to an NPC. Is there a way to fix that? It's annoying that I have to toggle my helmet on and off every time I talk to someone.
In the JSON, make sure that "hide" subcategory "duringDialogue" is set to -1. Sometimes it will bug out even if you have it set to "hide" in that condition and force it to reappear.
You may also want to toggle "atHome" as -1 as well, because this can cause the same issue.
Because several people asked in the comments whether the config must contain both "weapons" and "armors" definitions (and i wanted to know myself), i checked the source on github:
Spoiler:
Show
The settings evaluation is done via function call LoadSettingsFromJSON_Impl LoadSettingsFromJSON_Impl(json, "armors"); LoadSettingsFromJSON_Impl(json, "weapons");
in this function there is a safety/sanity check: void Settings::LoadSettingsFromJSON_Impl(const nlohmann::json& a_json, const std::string& a_type) { if (!a_json.contains(a_type) || a_json[a_type].empty() || !a_json[a_type].is_array()) { return; } [...] }
i.e., if the category doesn't exist, or is empty, or doesn't describe an array; then nothing is evaluated.
tldr; it is safe for the config to only contain "armors", or only "weapons", or both
@powerofthree: i saw that you seem to do the slot safety checks (slot > 61, etc.) only in case of armors category, not for weapons; is this an oversight? Also, serialized toggle state files for every save is really annoying and should probably be disabled lol
is there a way to hide my backpack while not hiding any of my other gear? secondly, is there a way to make my cloak disappear when i enter an interior?
279 comments
{
"armors": [
{
"hotKey": {
"key": 208,
"type": 0
},
"hide": {
"whenEquipped": -1,
"atHome": -1,
"duringDialogue": -1
},
"unhide": {
"duringCombat": -1,
"onWeaponDraw": -1
},
"slots": [
30,
31,
41,
43
]
}
],
"weapons": [
{
"hotKey": {
"key": 200,
"type": -1
},
"hide": {
"whenEquipped": -1,
"atHome": -1,
"duringDialogue": -1
},
"unhide": {
"duringCombat": -1,
"onWeaponDraw": -1
},
"slots": [
38,
41
]
}
]
}
You may also want to toggle "atHome" as -1 as well, because this can cause the same issue.
LoadSettingsFromJSON_Impl(json, "armors");
LoadSettingsFromJSON_Impl(json, "weapons");
in this function there is a safety/sanity check:
void Settings::LoadSettingsFromJSON_Impl(const nlohmann::json& a_json, const std::string& a_type)
{
if (!a_json.contains(a_type) || a_json[a_type].empty() || !a_json[a_type].is_array()) {
return;
}
[...]
}
i.e., if the category doesn't exist, or is empty, or doesn't describe an array; then nothing is evaluated.
tldr; it is safe for the config to only contain "armors", or only "weapons", or both
@powerofthree: i saw that you seem to do the slot safety checks (slot > 61, etc.) only in case of armors category, not for weapons; is this an oversight? Also, serialized toggle state files for every save is really annoying and should probably be disabled lol
It worked for me the last time I played on an older version.
secondly, is there a way to make my cloak disappear when i enter an interior?
https://www.nexusmods.com/skyrimspecialedition/mods/70196