I am receiving an error on a mod I have created, related to some new techs I have added to the Vasari players. I created two new late-game max supply techs to increase supply. To do this I moved a couple of the earlier techs into earlier positions in the supply row. Then the last two positions now hold my new techs. These techs show up and seem to be working fine. But I am encountering an error a few minutes into a new game that pops up stating 'Too many research subjects found in prerequisites chain'.
I added the new max_supply_6 and max_supply_7 research subjects I created to the player files, in the research section and then also added two new entries in the max supply section with the new research subjects as prerequisites. I have looked over my entries and syntax and can't seem to find anything that would be an error, unless there is something in the underlying code possibly blocking this setup.
I did this max supply update of adding two new research for all factions, but only the Vasari seem to be causing an issue. But they did also require some fiddling with locations of previous techs and have one additional max supply tech over the other factions as well... So maybe that is something. Does anyone have any idea what I could be doing wrong?
I have included some snippets of files and such below:
Example new research subject file (this is vasari_max_supply_6.research_subject, 7 is similar except for field_coord and costs, etc. I am reusing the images and tooltips from the last tech in the tier):
{
"version": 0,
"domain": "military",
"tier": 4,
"field": "military_revival",
"field_coord": [8, 0],
"research_time": 900.0,
"price":
{
"metal": 2500.0,
"crystal": 3000.0,
"credits": 0.0
},
"exotic_price": [
{
"exotic_type": "ultimate",
"count": 2
}],
"prerequisites": [
["vasari_max_supply_5"]
],
"name": "vasari_max_supply_6_research_subject_name",
"name_uppercase": "vasari_max_supply_6_research_subject_name_uppercase",
"description": "vasari_max_supply_6_research_subject_description",
"hud_icon": "vasari_max_supply_5_research_subject_hud_icon",
"tooltip_picture": "vasari_max_supply_5_research_subject_tooltip_picture"
}
Update to vasari player file:
"research_subjects": [
...
"vasari_max_supply_6",
"vasari_max_supply_7",
...
then in max supply section:
...
{
"max_supply": 2400,
"prerequisites": [
["vasari_max_supply_5"]
]
},
{
"max_supply": 3500,
"prerequisites": [
["vasari_max_supply_6"]
]
},
{
"max_supply": 6000,
"prerequisites": [
["vasari_max_supply_7"]
]
}]
},
...
I created files for localization and the research entity list as well. Those seem to be working as expected too.