Keedo420
Knight at Arms

OK, I was having an error in my mod where when the player clicked on the 8th faction's name, it crashed the game because it was looking for a pic_onager to display for the faction's pic. I found the source of the error in module_meshes, as shown here:
Now, it is clear to me that the first 5 pics are used for the first 5 kingdoms though I cannot find references to those pics anywhere in the module system files. Empire Of The Sands is the eight kingdom in my mod and was using pic_onager, which is the third pic after the 5th one in the code above. If the player clicks on Kingdom Of Morte and Megumi Dynasty (the 6th and 7th kingdoms) in the factions screen, they'll see that those are using the medium_button and medium_button_down pics. So anyway, I removed pic_onager, pic_mangonel, and pic_trebuchet (which I can find no references to anywhere else in the module system files and were never used in my mod...the medium button pics are, however, referenced in module_presentations but not in relation to the factions), and now Empire Of The Sands displays no pic at all. But at least it doesn't crash anymore. I cannot figure out where in the module system the game decides which pic to display for each kingdom in the factions screen though. I have searched through module_game_menus, module_scripts, module_factions, and module_presentations, and can find no references at all to any of those first 5 pics. So I guess that is my question here. How exactly do I change what pic is displayed in the factions screen for each kingdom?("pic_arms_swadian", 0, "pic_arms_swadian", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("pic_arms_vaegir", 0, "pic_arms_vaegir", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("pic_arms_khergit", 0, "pic_arms_khergit", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("pic_arms_nord", 0, "pic_arms_nord", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("pic_arms_rhodok", 0, "pic_arms_rhodok", 0, 0, 0, 0, 0, 0, 1, 1, 1),
#formation kit start-----------------------------------------------
("medium_button", render_order_plus_1, "medium_button", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("medium_button_down", render_order_plus_1, "medium_button_down", 0, 0, 0, 0, 0, 0, 1, 1, 1),
("pic_onager", 0, "pic_onager", 0, 0, 0, 0, 0, 0, 0.5, 0.5, 0.5),
("pic_mangonel", 0, "pic_mangonel", 0, 0, 0, 0, 0, 0, 0.5, 0.5, 0.5),
("pic_trebuchet", 0, "pic_trebuchet", 0, 0, 0, 0, 0, 0, 0.5, 0.5, 0.5),
#formation kit end-----------------------------------------------