September 6, 20205 yr I'm trying to swap the icons for these potions: Potion of Merciless Gaze <--> Potion of Major Healing Potion of Imperfect Arcane Reflection <--> Potion of Miraculous Healing I tried the code below, but the icons are still the same in game. What did I do wrong? { “GameDataObjects”: [ { "$type": "Game.GameData.ConsumableGameData, Assembly-CSharp", "DebugName": "L2_Potion_of_merciless_gaze", "ID": "d796f43f-3f8b-43de-b872-121aa0fa5976", "Components": [ { "$type": "Game.GameData.ItemComponent, Assembly-CSharp", "IconTextureSmall": "gui/icons/items/consumable/potion_of_deleterious_s.png", "IconTextureLarge": "gui/icons/items/consumable/potion_of_deleterious_l.png", }] } { "$type": "Game.GameData.ConsumableGameData, Assembly-CSharp", "DebugName": "L4_Potion_of_imperfect_arcane_reflection", "ID": "14460e14-899e-4655-aef1-42b1c0557df7", "Components": [ { "$type": "Game.GameData.ItemComponent, Assembly-CSharp", "IconTextureSmall": "gui/icons/items/consumable/potion_of_spirit_shield_s.png", "IconTextureLarge": "gui/icons/items/consumable/potion_of_spirit_shield_l.png", }] } { "$type": "Game.GameData.ConsumableGameData, Assembly-CSharp", "DebugName": "L7_Potion_of_major_healing", "ID": "b1e1dab0-9c6f-4cb4-8a01-139b490ed57f", "Components": [ { "$type": "Game.GameData.ItemComponent, Assembly-CSharp", "IconTextureSmall": "gui/icons/items/consumable/potion_of_major_recovery_s.png", "IconTextureLarge": "gui/icons/items/consumable/potion_of_major_recovery_l.png", }] } { "$type": "Game.GameData.ConsumableGameData, Assembly-CSharp", "DebugName": "L9_Potion_of_miraculous_healing", "ID": "6a2b7318-7dd0-48c2-ad49-315ddfa36d02", "Components": [ { "$type": "Game.GameData.ItemComponent, Assembly-CSharp", "IconTextureSmall": "gui/icons/items/consumable/potion_of_major_endurance_s.png", "IconTextureLarge": "gui/icons/items/consumable/potion_of_major_endurance_l.png", }] } ] } Edited September 6, 20205 yr by saltynoodles
September 6, 20205 yr You seem to be using the wrong quotation mark character in the first line, try changing from “GameDataObjects”: [ to "GameDataObjects": [ ____ "Components": [ { "$type": "Game.GameData.ItemComponent, Assembly-CSharp", "IconTextureSmall": "gui/icons/items/consumable/potion_of_deleterious_s.png", "IconTextureLarge": "gui/icons/items/consumable/potion_of_deleterious_l.png", }] I'm not certain how permissive Obsidian is at loading JSON, but it's good in general to leave out the trailing comma of the last line of an array or object. Like this: "Components": [ { "$type": "Game.GameData.ItemComponent, Assembly-CSharp", "IconTextureSmall": "gui/icons/items/consumable/potion_of_deleterious_s.png", "IconTextureLarge": "gui/icons/items/consumable/potion_of_deleterious_l.png" }] ____ { "$type": "Game.GameData.ConsumableGameData, Assembly-CSharp", "DebugName": "L4_Potion_of_imperfect_arcane_reflection", [...] } You'll also need commas after each GameDataObject end bracket (except the last one): { "$type": "Game.GameData.ConsumableGameData, Assembly-CSharp", "DebugName": "L4_Potion_of_imperfect_arcane_reflection", [...] }, Hope that does it! Edited September 6, 20205 yr by Noqn
September 8, 20205 yr Author Another question if anyone has time: Is there a file in which the game stores the words that cause a hover pop-up? (Like "Dyrwood") I see the actual hover pop-up entries in cyclopedia.stringtable.
Create an account or sign in to comment