Population Caps

Hey I was wondering if anyone knew how to change the max population for ships. For example: Changing the amount of Capital Ships a person can build.
11,610 views 23 replies
Reply #1 Top
Yes, there are quite a few mods out, and I gave another guy a quick tutorial. Give me a moment and I'll dig it up for you.
Reply #2 Top
Right, this was an email, so if it looks a bit funny, forgive me.

Ok. The files you need to change are in the 'GameInfo' folder.
They are named like so:
RESEARCHSUBJECT_MAXCAPITALSHIPSTECH0
RESEARCHSUBJECT_MAXCAPITALSHIPSTECH1
RESEARCHSUBJECT_MAXCAPITALSHIPSTECH2... up to level 7, they're for the TEC Empire, the Vasari are PHASE, and the Advent are PSI.

Open number 0 for each race and change this line:

researchModifier
modifierType "CapitalShipMaxSlots"
baseValue 1.000000 <--
perLevelValue 1.000000

to something like 5.000000, or however many capital ship slots you want to begin with. This would give you a starting pop of 5.



Now, in all the other files like the ones labelled above, change this line:

researchModifier
modifierType "CapitalShipMaxSlots"
baseValue 0.000000
perLevelValue 1.000000 <--

to something like 5.000000, or whatever you want. This will increase the pop cap when you research that level in the Logistics tab.

So, basically, if you want to start with 100 pop cap for capital ships, change the first files, the ones ending in 0, to 100.000000.

Hope that all makes sense, good luck.


Edit: Here is how to change the fleet supply:

You need to alter another set of files. Like the others but labeled like so:

RESEARCHSUBJECT_MAXSHIPSLOTSTECH0.entity
RESEARCHSUBJECT_MAXSHIPSLOTSTECH1.entity
RESEARCHSUBJECT_MAXSHIPSLOTSTECH2.entity... etc... up to 7

TECH, PHASE, PSI, as before.

Now, open each one and look for:
researchModifier
modifierType "ShipMaxSlots"
baseValue 100.000000
perLevelValue 150.000000 <-- Fleet Supply
researchModifier
modifierType "IncomePercLost"
baseValue 0.000000
perLevelValue 0.093750 <-- Upkeep Percentage

Just change them in each file, say add 50 to every level's Supply, and take 5% off every Upkeep.


Edit2: Oh, and you need to change the Gameplay.constants file, 3rd line down, it has the maximum ships allowed all together, increase that too.
Reply #3 Top
Thanks, is there any way to change the population cap for frigates and such?
Reply #4 Top
MaxShipSlots research takes care of the global fleet point limits, which is what frigates/cruisers use. 'Tis in Uzii's edit :)
Reply #5 Top
Man how you guys could want more population is beyond me. As it is now a cap ship can't even survive 10 seconds with even half the pop cap used. Beyond max would be "Boom! Boom! Boom! Boom! Boom! Dang I just lost 15000 credits..."
Reply #6 Top
I was hoping to reduce the amount of light frigates that one could build because it seeems that thats all the AI uses for some reason.
Reply #7 Top
Ah well there's no way to do that presently since the number you can build depends only on fleet points.
Reply #8 Top

I wonder if you can prevent frigates from being built by erasing them from a file somewhere.
Reply #9 Top
That part's easy. Each player entity file (playertech, playerpsi, playerphase) has their build list right on top. All you have to do is remove FRIGATE(TECH/PSI/PHASE)LIGHT from the build list :P
Reply #10 Top
Is it possible to increase the number of ships for one race and leave the others at there normal rate
Reply #11 Top
Is it possible to increase the number of ships for one race and leave the others at there normal rate
End of quote


RESEARCHSUBJECT_MAXSHIPSLOTSTECH0.entity
RESEARCHSUBJECT_MAXSHIPSLOTSTECH1.entity
RESEARCHSUBJECT_MAXSHIPSLOTSTECH2.entity... etc... up to 7

TECH, PHASE, PSI, as before.
End of quote
Reply #13 Top
This forum is going down the drain... we need a basic tutorial guide as a Sticky. With links to these types of changes, so the basic modders and personal modders can see/find them easier.
Reply #14 Top
Or it would help if folks dug around just a little :P

I'll try to write something up over the weekend if nobody beats me to it, going to be busy tonight.. you've actually been doing stuff I haven't, so maybe I'll write a bit about adding races, research, abilities, etc and send it over to you so you can fill in the fleet cap stuff, planet stuff, whatever else? :P
Reply #15 Top
Mmm...

Tutorials are not my cup of tea. I'll do it if someone asks specifically, but they are time consuming, and I find them very boring. I'll give you a hand (if you need it, you seem very competent in modding, although I haven't seen you release anything yet, got a secret project in the works?), but I'd prefer to use my limited time fixing/updating my mod.
Reply #16 Top
I'll try to write something up over the weekend if nobody beats me to it, going to be busy tonight.. you've actually been doing stuff I haven't, so maybe I'll write a bit about adding races, research, abilities, etc and send it over to you so you can fill in the fleet cap stuff, planet stuff, whatever else?
End of quote
Please. and remember to include how to change the appearance of stuff, I still don't know how to give fighters longer exhaust trails :(
Reply #17 Top
although I haven't seen you release anything yet, got a secret project in the works?
End of quote


I'm a code monkey on the Star Trek mod team, so you won't actually see me release anything personally, most likely :)
Reply #18 Top
I'm a code monkey on the Star Trek mod team, so you won't actually see me release anything personally, most likely
End of quote


Ah, at least your skills aren't going to waste ;)

Reply #19 Top
I have been working on a mod for a short time. Nothing elaborate or glorious. Just a few changes here and there. What I would like to know is there a way to increase the hull strength of the capital ships. I found the other things I wanted to change (just for experiment) but I can find that!
Reply #20 Top
By hull strength do you mean hp or armor? Either way, it's in the individual capital ship entity files :)
Reply #21 Top
hit points and armor, Thanks for the info big guy!
Reply #22 Top
can anyone tell me what text editor to use or what kind of tool to use for modding this game. kinda have ideas to put in to this game...
Reply #23 Top
Notepad, which everyone should have, or Notepad++ which is free to download on the internet, use google.