Jump to content
View in the app

A better way to browse. Learn more.

Obsidian Forum Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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 by saltynoodles

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 by Noqn

  • Author

That did the trick, thank you!!

  • 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.

  • Author

Got it! Thanks again!

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.