Prerequisite for a Hull

I'm making major changes to the techtree in my mod, for one, I am adding a Colossus sized hull. Basically it's twice as big as Massive. I disliked how with the Massive hulls, at end game they only take 30 or so turns to churn out, but when you have 30 or so planets, you're basically making them 1 per turn. So I've added a new plantary improvement called Colossus Ship Yard. It's a super project, so you can only have 1. And I want Colossus Hulls to require it for a prerequisite. In other words, you can only build Colossus ships on that planet.

However, I can't figure out how to add that planetary improvement as a prerequisite for the Colossus Hull and be planet specific. So that you can't build it anywhere else.

Is this even possible?
5,658 views 6 replies
Reply #1 Top
That is not possible, sorry.
Reply #2 Top
Darn it! I'm going to have to figure out another way to do it then w/o giving every joe blow planet the ability to build a death star. What's the point in naming your ships when you have 200 ultra sized monsters and can replace them a few turns after they are destroyed.
Reply #3 Top
I imagine your best bet is to just make the Colossal hull prohibitively expensive to the point that you can only afford a few.
Reply #4 Top
Ya, the problem with that is that it becomes unbalanced to the point where you wouldn't bother. If a Colossus is so expensive that only your top 2 or 3 planets can make one in a reasonable time. Why not just make 5 massive ships instead in the same time frame. Unless I make Colossus ships 5 times as powerful to counter that, which was a bit bigger than I was aiming for. But I'll see how it goes. I can't see any other way to do it. Maybe the expansion will add a *PlanetaryImprovementRequirement* tag in the xml for GC2Types. That's all I need.
Reply #5 Top
What you do is make a planetary improvement with a HUGE Manufacturing bonus, something extreme like , I don't know, 10000 maybe, and of course make it a super project so each civ can only have one. Now that planet can build pretty much any ship you can build in one turn, the excess production will never be spent and it's "wasted"....UNLESS you also give with the tech that gives you this super project, your proposed Colossus hull which is expensive enough that it will use up all of this production. Values would need to be tweaked and tested, but I'm pretty sure you could come up with a design that fits your purpose, where your super project planet can build it in a reasonable time frame but any other planet trying to build this hull will take WAY too long to do so. Now your only problem is figuring out how to get the ai not to try anyways.

Reply #6 Top
The trouble is that there is no tag in the GC2Types.xml file that allows me to set a "planetary improvement prequisite". There is the tag for AltCostPreReq. But that only checks to see if you've built the structure ANYWHERE on any planet. Not that specific planet. There's nothing for me to tell a ship component that the planet building it must have a certain structure.