How do I insert a new god in /data/personality/dreams.json?


#1

So, we have this:

   "substitution_table": [
      {
         "namespace": "stonehearth",
         "keys": {
            "teacher": {
               "type": "parametrized_value",
               "entries": {
                  "stonehearth:kingdoms:ascendancy": "Cid",
                  "rayyas_children:kingdoms:rayyas_children": "Rayya",
                  "northern_alliance:kingdoms:northern_alliance": "Valin"
               }
            }
         }
      }
   ]

How do I add one god/guide to be used in my kingdom? Right now, without messing with it, it is displayed as (str[entity.teacher])
Trying to mixinto that file, made no difference, using this json:

{
	"substitution_table": [
		{
			"namespace": "swamp_goblins",
			"keys": {
				"teacher": {
					"type": "parametrized_value",
					"entries": {
						"swamp_goblins:kingdoms:firefly_clan": "Big G"
					}
				}
			}
		}
	]
}

I tried using the same namespace too (stonehearth) and it also failed


#2

Weird, with the "stonehearth" namespace I would think it should work, given line 1019 of population_faction.lua:

personality_component:add_substitution_by_parameter('teacher', self._sv.kingdom, 'stonehearth')

where it specifically uses that namespace for the "teacher" key. And the kingdom string/alias is correct?


#3

Uhm, I redid my file and it worked, was probably a typo then… Thanks!


#4

And now I know what files I’m mKing after I have breakfast…