• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

hawkensson

Recruit
15 Badges
Aug 18, 2023
4
2
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Crusader Kings II: Sword of Islam
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Conclave
  • Crusader Kings II: Reapers Due
  • Crusader Kings II: Holy Fury
  • Crusader Kings III
Hello!

I want to add a doctrine group called "practices" to the faith gui and faith creation gui. A few other mods have done this, and I based my mod on one of these mods. Initially I removed the extra doctrine categories for my mod, but now I would like to add one of them back. It worked fine for the window_faith.gui, however when I add the doctrine group to window_faith_creation.gui the game crashes as soon as I try to reform a faith. In the error log I get this message:

[22:22:39][E][pdx_assert.cpp:619]: Assertion failed: This data is likely not a container


These are the lines of code tried to add to the faith creation gui:

vbox = {
layoutpolicy_horizontal = expanding
spacing = 10
text_label_left = {
layoutpolicy_horizontal = expanding
text = "FAITH_DOCTRINES_PRACTICES"
default_format = "#low"
}
fixedgridbox = {
name = "doctrines_grid_practices"
datamodel = "[FaithCreationWindow.GetGroupingHelper( 'practices' ).GetGrouping]"
flipdirection = yes
addcolumn = 270
addrow = 65
datamodel_wrap = 2
item = {
widget_doctrine_selection_item = {}
}
}
}

I add it between the vboxes for FAITH_DOCTRINES_IMPORTANT and FAITH_DOCTRINES_MARRIAGE.

I am attaching the error log and the gui file (converted to txt file so it can be posted here since files with .gui extensions were not able to be posted)

Does anyone know what could be the problem?
 

Attachments

  • error.log
    80,2 KB · Views: 0
  • window_faith_creation.txt
    36,8 KB · Views: 0
Last edited: