AI won't build stations or ships, because of new upkeep maybe?

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

erdrik

Corporal
15 Badges
Feb 25, 2010
39
1
  • Sword of the Stars
  • Sword of the Stars II
  • Cities: Skylines
  • Cities: Skylines - After Dark
  • Stellaris
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Shadowrun: Dragonfall
  • Stellaris: Ancient Relics
  • Stellaris: Lithoids
Ive been working on a mod that adds a bit of food to the upkeeps of ships and stations, Implemented in 00_ship_sizes.
Example:
Code:
    resources =
    {
        category = station_researchers
        cost =
        {
            minerals = 100
        }
        upkeep =
        {
            energy = 1
            food = 0.125
        }
    }
#------------------------------------- vanilla below


Now the AI won't build any new outposts, starbases, research or mining stations, or ships.
I did some research and implemented additions to 00_common_categories:
Example:
Code:
    ai_use_parent_for_resources_upkeep =
    {
        energy
        food
        alloys
    }
#------------------------------------- vanilla below

and 00_food_budget:
Code:
food_upkeep_stations =
{
    resource = food
    type = upkeep
    category = stations

    potential =
    {
        is_lithoid_empire = no
    }

    fraction =
    {
        weight = 1
    }
}
[code]


But it didn't work. AI still won't build stations or ships. They only start building them again if I remove the food upkeep from [B]00_ship_sizes[/B]. Is there another file I need to edit or am I doing something wrong?
Any help would be much appreciated.