Adjusting files so that capital ships are mass produced

Hey all,

 

So Ive been doing some modding of course and some recent digging around the website and i cant really find the answer to my question. So far ive been able to expand the max supply and capship slots on my own. Ive also supplied the ai with plenty of resources to mass produce cappies from game start. Ive also limited their frigate production to kodiaks as scout role so they arnt near hitting the max supply yet as I have it around 3 k atm.  I understand how ship roles work and where to find them in the refs, how ever I cant seem to locate a reasonable line of code to adjust the ai so they spam cappies to meet my supply and capship slot. Maybe theres a reason why perhaps?

 

In addition the capitalship role code line seems to be dead, inactive or over ridden in another file as ive placed every ship role in there with no decent results. Where as I see the results with frigate roles as mentioned above. Thank you and I appreciate any feed back.

7,410 views 7 replies
Reply #1 Top

AI is totally hardcoded save some values you can toy around with in terms of priorities in gameplay.constants. What you ask isn't really possible. Feeding them money via hidden researches might encourage more ships being built, but that's about it, really.

 

In Ret the AI had insane free money but you still saw maybe 3-4 capitals at a time unless they turtled for an extreme length of period, but I never saw them even approach the default cap.

 

/e

Now that I think about it, I think you can get the AI to spawn units via abilities. I'm not really sure how all that works, though. I think it might involve more hidden research stuff. Maybe someone else knows...

Reply #2 Top

There is no way to force the AI to build more capital ships other than spawning them in via an ability. If you're looking for reference on how to do the latter, look up the Vasari Loyalist Phase Gate, since Dark Fleet unlocks an ability to warp in a capital ship. Set the ability up to require a level 0 research whose icon is in a UI place unreachable by human players (it can still be researched by AIs), make sure the autocast is set on by default, and you're pretty much set.

 
Reply #3 Top

Quoting Delnar_Ersike, reply 2
There is no way to force the AI to build more capital ships other than spawning them in via an ability.
End of Delnar_Ersike's quote

That is false. There are ways to get the AI to spam capital ships, to the point of them being the primary parts of fleets, via AI only research that instantly levels up capital ships to level 3. What would be needed is an off page research item that has the following, plus some other tidbits to ensure the AI researches the tech early enough:

researchModifier
    modifierType "ExperienceConstantGainRate"
    baseValue 0.000000
    perLevelValue #
researchModifier
    modifierType "ExperienceConstantGainLevelCap"
    baseValue 0.000000
    perLevelValue 3.000000

Where # is the XP needed for level 3.

Reply #4 Top

Do note, the AI does require most of the ship roles to be used.

 

Scout, siege, and Colony for sure must be used otherwise the AI will get hung up and stall.

Reply #5 Top

Quoting Lavo_2, reply 3


Quoting Delnar_Ersike, reply 2There is no way to force the AI to build more capital ships other than spawning them in via an ability.

That is false. There are ways to get the AI to spam capital ships, to the point of them being the primary parts of fleets, via AI only research that instantly levels up capital ships to level 3. What would be needed is an off page research item that has the following, plus some other tidbits to ensure the AI researches the tech early enough:

researchModifier
    modifierType "ExperienceConstantGainRate"
    baseValue 0.000000
    perLevelValue #
researchModifier
    modifierType "ExperienceConstantGainLevelCap"
    baseValue 0.000000
    perLevelValue 3.000000

Where # is the XP needed for level 3.
End of Lavo_2's quote

Just hope that the Advent AI doesn't research Mass Transcendence.  ;)

Reply #6 Top

Quoting Lavo_2, reply 3
researchModifier
    modifierType "ExperienceConstantGainRate"
    baseValue 0.000000
    perLevelValue #
researchModifier
    modifierType "ExperienceConstantGainLevelCap"
    baseValue 0.000000
    perLevelValue 3.000000

Where # is the XP needed for level 3.
End of Lavo_2's quote

It's too bad this doesn't work for the pirates....

*_*

Reply #7 Top

Quoting Lavo_2, reply 3
That is false. There are ways to get the AI to spam capital ships, to the point of them being the primary parts of fleets, via AI only research that instantly levels up capital ships to level 3. What would be needed is an off page research item that has the following, plus some other tidbits to ensure the AI researches the tech early enough:

researchModifier
    modifierType "ExperienceConstantGainRate"
    baseValue 0.000000
    perLevelValue #
researchModifier
    modifierType "ExperienceConstantGainLevelCap"
    baseValue 0.000000
    perLevelValue 3.000000

Where # is the XP needed for level 3.
End of Lavo_2's quote

... and here I was thinking I've covered everything AI related. Definitely going to look into this one.