Logo Platform
logo amplifiers simplified

Modding the Affinity

Copied to clipboard!
11 years ago
Jun 5, 2014, 12:41:26 PM
I am working on a Mod for several months so far. I made a lot of smaller changes and now I would like to work on Race Affinities - especially the one of Cravers.

But I can not find the XML where it is in. Also I did not find anything in here.

Can anyone tell me where to find / how to edit the Affinities?
0Send private message
11 years ago
Jun 5, 2014, 11:04:31 PM
They are lumped into the factiontrait.xml, also see the galaxysettings.xml in the plugins folder. The affinity is used in galaxy generation.
0Send private message
11 years ago
Jun 10, 2014, 3:42:52 PM
Maybe I was not clear enough. I was thinking about the "locust"-thing and after how many turns a planet goes from +25% FIDS to 0% FIDS to -25% FIDS. Where can i find that?
0Send private message
0Send private message
11 years ago
Jun 11, 2014, 2:14:46 AM
I think what you're looking for is in the Simulation folder in the Registry.xml -- look for this:

[code]

1

0;40;60

PlanetQualityImproved;PlanetQualityDefault;PlanetQualityDepleted

[/code]



I believe the limits might be turns--from turn 0 to 39, the planet is improved; turns 40-59, planet is normal; turns 60+ planet is depleted.

I don't know for *sure* that this is what you're trying to edit, but it's my best guess at the moment. Of course, you could always just set the limits to 0;1;2 and see if it takes three turns to deplete a planet.



The LimitsCoef... *might* change the number of turns before it counts as a part of the limit? Sorry, this is guesswork. If you set the LimitsCoef to 2, it might double the turns it takes to reach the limit or half it. Or do something completely different. Something worth testing a bit. I'll fiddle with it a bit when I get some free time tonight.
0Send private message
11 years ago
Jun 11, 2014, 5:34:37 AM
Damn, you beat me to the punch. Tiaximus is dead on, changing that will adjust the duration of each "stage" of Locust affinity.
0Send private message
11 years ago
Jun 11, 2014, 7:02:03 AM
Thx Tiaximus,

editing the "Limits" changed the amount of turns for the stages improved - default - depleted.

Changing "LimitsCoef" has only effect on "normal" game speed, to change it for "slow" and "fast" you have to edit GameSpeed.xml.
0Send private message
11 years ago
Jun 11, 2014, 7:33:59 AM
No problem. I believe you can edit the stages as well, so you could potentially make the cravers (or whatever faction you're using them for) have more stages. They could change more than once: for example, +25%, +15%, +5%, Normal, -5%, -15%, -25%, -35%, -45%, -50%. Heck, you could make the stages fluctuate too: +25%, 0%, +25%, -25%, 0%, -25%, etc.



At least, I think you can. The third stage adds the Depleted quality to a planet, though changing it back to a prior stage should theoretically remove it.
0Send private message
11 years ago
Jun 11, 2014, 2:03:06 PM
to make them fluctuate is easy, just like



[CODE]

1

0;20;40;60;80;100

PlanetQualityImproved;PlanetQualityDefault;PlanetQualityDepleted;PlanetQualityImproved;PlanetQualityDefault;PlanetQualityDepleted

[/CODE]



It really like the idea to add something like "improved2" or "depleted2". But I do not know how to add other steps with 10% or -15%.

So far, I only know how to edit the turns for the three stages, but not bonus / malus given.
0Send private message
11 years ago
Jun 11, 2014, 2:35:30 PM
in PlanetDescriptor, starting at line 1321[code]











































[/code]

So it seems you could add as many stages as you want, with any value that you want.
0Send private message
?

Click here to login

Reply
Comment

Characters : 0
No results
0Send private message