Modding maximum allegience

Hi,

I'm trying to add the ability to increase maximum allegience by 5% to the Culture center. Also I wish to modify the Allure of the Unity to reduce HW distance Allegience penalty by 50%/100%.  This is for a mod.  I have not been able to find anything that sets planets allegeince or modifies it. All I see is "cultureSpreadRate." Can anyone help?

13,402 views 19 replies
Reply #1 Top

Well, sadly I don't think either is possible. The only thing that effects the max alligence is the allure of the unity research, which as a research entity file, its effect is probably not applicable to culture centers. And I'm also pretty sure the distance penalty is hardcoded, though I wish you luck with your efforts.

 

Anyways, the allure of the unity works with the following lines, so I'd guess any sucsess would come from here.

 

MaxNumResearchLevels 2
priority 1.000000
researchBoolModifiers 0
researchFloatModifiers 1
researchModifier
    modifierType "AllegianceFromCultureMaxPerc"
    baseValue 0.000000
    perLevelValue 0.050000

Reply #2 Top

Distance penalty is found in the Gameplay.Constants file (Look at line 44), but I don't know if it could be changed in game through research or otherwise.

 

:fox:

Reply #3 Top

Thnx I'll try to see how far I can go witht his.

Reply #4 Top

Well, you can play around with max allegiance through research since the Advent do it. However, that won't work with an ability since the two modifiers are not compatible :(

Reply #5 Top

Yeah this is rather disapointing.  I am leanning towards adding the modifier to culture research.  And seeing if I can require certain number of culture centers to research it as a prerequisite.  Kinda rips my economic model a new one.

Reply #6 Top

And seeing if I can require certain number of culture centers to research it as a prerequisite.

Sadly, this is not possible either :(

Reply #7 Top

I did just remember, however, that the Advent Starbase in Entrenchment does have an upgrade that increases allegiance. This isn't research, but I don't know how flexible it is as a modifier.. I can try to take a look to see how it works when I get a chance. Maybe in the expansion you could stick it into an ability :P

Reply #8 Top

Relevant info from that file:

    upgradePropertyCount 1
    upgradeProperty
        propertyType "MaxAllegianceBonus"
        value 0.300000
    upgradeBoolPropertyCount 0

 

:fox:

Reply #9 Top

Ok, so not as an ability. And upgrades are probably unique to starbase entities, or do normal buildings have an upgrade section now with 0 listed?

Reply #10 Top

Doesn't look like it.

 

:fox:

Reply #11 Top

Well, there goes idea. Unless you give the broadcast center the starbase entity type and give it the upgrade :P That would look weird, though!

Reply #12 Top

Yeah, I was trying to figure out how to do somthing like a sector capital building... kinda like the capital but with less of a max...

ie, a building which would increase allegiance for that world, and the worlds around it....

But it does not look like the engine is flexible enough at present...

Reply #13 Top

You guy's lost me at Hi,

Reply #14 Top

Just wasted several hours trying to do the same exact thing ... if anyone finds a way to solve this everyone else on this thread will love you. : )

Reply #15 Top

why not change the gameinfo file where it states the max alligence in relations to the number of planets to your homeworld...

Reply #16 Top

:)  As Mooster and KitKun said above, the alliegiance variable can be modified in the gameplay.constants file. Which would change of course all adjacent worlds as well, since they are the same approximate distance. As for culture, i believe it can be changed in the ship and culture center entities. Since the culture center is a researched building its value might be, i think i remember seeing it there, in the research entity that allows access to it.   :)

Sorry if i stated what Mooster and Kitkun already said, just thought i would second it.  :)

-Teal

 

Reply #17 Top

Modding culture/max allegiance based on distance from planet isn't what we're trying to do ... we're trying to make a civilian structure that increases the max allegiance of the planet in that well.

Reply #18 Top

ok, the culture center will only increase to your max alligence of the planet based on planet's distance

Reply #19 Top

Right - it can't actually change max allegiance, just increase the allegiance of the planet up to the max. There doesn't seem to be a way to actually raise max allegiance. If only starbase abilities were more flexible. : /