How do I add the ability bonus of miniaturization?

I duplicated all the correct info into abilitybonus file but it still doesnt work. It's bonus # 29 and of course a unit % modifier. I don't know if there is something else I need to edit in whether it be the correct name/cost/modifier for each option 0 thro 1,2,3 or if that doesn't matter and I need to change something in another xml file.
8,849 views 21 replies
Reply #1 Top
I'm not 100% sure, but I think the miniaturization bonus is an integer, not percent.
Reply #2 Top
So what are you editing ?? Raceconfig.xml to adjust your current custom race ? It's in there.. If you're doing an event look for a similar event.. I think there is one for miniaturization. There's the bonus # (what to add to ) and and modifier (how much to add or subtract if this is neg. )

I haven't gotten into editing events since GC1 but started to think about adding some back for laughs.
Reply #3 Top
AbilityBonuses.xml
br
Ability Name="Miniaturization">
AbilityIndex>29
AvailableOptions>1
Option0Text>SexyBeast
Option0Bonus>10
Option0Cost>1
Option1Text>SexierBeast
Option1Bonus>20
Option1Cost>2
BonusUnits>%
/Ability>
changing miniaturization in RaceConfig.xml does nothing which is odd to me
I was able to modify numbers of other ability bonuses sucessfully, but not able to add a totally new bonus in.
Edit: had to remove the outside < >
Reply #4 Top
AbilityBonuses.xml


changing miniaturization in RaceConfig.xml does nothing which is odd to me
I was able to modify numbers of other ability bonuses sucessfully, but not able to add a totally new bonus in.
Reply #5 Top
changing miniaturization in RaceConfig.xml does nothing which is odd to me


Of course it doesn't, go to customrace.config inside one of your My Document file, ( should be MyGames/GalCiv2?) and open it up with notepad, Now, edit to your heart desire. Only applies to the race you played lastly though.
Reply #6 Top

Actually played around with miniturization the other day and found the following:


It's indeed a percentage modifier. It's however not linear. A +100% miniturization bonus doesn't give you twice the number of modules on it. It gives you twice the space, yes, but the modules also become larger with higher miniturization bonuses.


You can fit more and more, true, but +100% gives you a 72 point medium starship with an engine that is size 13, a +10000% bonus gives you a ship with 3838 points and a 196 sized engine (or something like that, you get the point).


At normal miniturization you can fit about 5 engines on a medium ship, at +10000% you can fit 19 or so. So the bonus has to be insanely high to make a difference. A +500% bonus only gives you a couple more engines.

Reply #7 Top

changing miniaturization in RaceConfig.xml does nothing which is odd to me
I was able to modify numbers of other ability bonuses sucessfully, but not able to add a totally new bonus in.


You need to change the number in


AvailableOptions>1

to the new number of options

Reply #8 Top
Umhal, what is the work around for the limitation you mentioned? What is the highest you can boost it?
Reply #9 Top

Sorry, was completely knocked out in a fever *grins*. I only did a few runs, but these are the numbers:


Bonus - Medium ship size - Engine size - Nr of engines.


No bonus - 38 - 6 - 6,3
100% - 76 - 8 - 9,5
500% - 228 - 16 - 14,3
1000% - 418 - 25 - 16,7
5000% - 1938 - 101 - 19,2
10000% - 3838 - 196 - 19,6


So it seems that efficiency wears off around 3 times the available space.

Reply #10 Top
Right. I am just wondering if there is a way to override the scaling limitation so that you can have many many more parts on a ship.
Reply #12 Top
Along these lines, is there away to alter the total number of points you can put towards the ability bonuses? I've tried just changing

CustomizationPoints>10
where I change the 10 into a different number, but it doesn't seem to have an impact at all.
Reply #13 Top

Sorry, was completely knocked out in a fever *grins*. I only did a few runs, but these are the numbers:

Bonus - Medium ship size - Engine size - Nr of engines.

No bonus - 38 - 6 - 6,3
100% - 76 - 8 - 9,5
500% - 228 - 16 - 14,3
1000% - 418 - 25 - 16,7
5000% - 1938 - 101 - 19,2
10000% - 3838 - 196 - 19,6

So it seems that efficiency wears off around 3 times the available space.

(Quote by Umhal)

I find it suggestive that engine size = 0.019*MiniaturizationBonus + 6, where 6 is the original size. Now, where 0.019 came from, I dunno ... *unless* it is simply Ship_Size/2000? If this is the, case, it appears that the limit on huge miniaturization bonuses is to prevent more than 20 of any item from appearing on a ship. This is prolly linked to the # of hardpoints in the standard hulls. If you could try this using a smaller component (sensors?), you might see a different scale-up.
Reply #14 Top
To stop size scaling, edit "GC2Types.xml" and remove all mention of the {SizeMod} tag. If you look in there, the constructor. troop, and colony modules don't have that tag, and you can check at 1000% miniturization if you want, but those never scale up.

I suspect that the actual size of a module = {size} + {sizemod}% of hullspace. However, I haven't checked it too carefully, so the formula is probably off...
Reply #15 Top
Okay, so how do you actually get the miniaturization bonus to take in AbilityBonuses.xml?

I've already added it and it doesn't show up in-game.
Reply #16 Top
Is abilityindex 29 the right number for miniaturization? does it make a difference what the index is?
Reply #17 Top
Actually I just tested and removed loyalty from the list in abilitybonuses.xml, but it's still there ingame on the list of abilities. There was nothing in the box to select your choice though. This leads me to believe that there is either another file that needs to be modded to add/remove abilities from the list or that we can not mod the list itself, just the data for the abilities.
Reply #18 Top
Thanks Kalin! Worked like a charm.
Reply #19 Top
need to change something in another xml file.


I found a way to get it to work due to this post here: https://forums.galciv2.com/?ForumID=162&AID=108847
In English.str search [TABLEALIAS AbilityOptions] and add your entry there using the others as a template.

Logistics could probably be added also.
Reply #20 Top
It's easier to modify races abilities themselves with RaceConfig.XML or CurrentCustomRace.RaceConfig or if you saved your race use that RaceConfig file.

But hey good luck.
Reply #21 Top
You may want the option in a mod. Sure you can add it in the RaceConfig.xml, you can also change it to give yourself 1000's in each ability plus whatever techs you feel like.