Influence driven war for Fall Further?

Psychic_Llamas

Wizard in the Making
Joined
Nov 25, 2005
Messages
6,366
Location
Western Australia
i was talking to Xienwolf about the RevolutionDCM Mod in another thread, more specifically i was talking about the influence driven war mechanic they have. I need the Influence driven war mechanic merged with Fall Further so i can use it as a new base for the Warhammer Mod. Xienwolf assured methat such an addition to FF would be fairly painless and suggested i try find a way to incorporate it into FF so that it will be of use to the greatre community.

A little bit of thought later and ive come up with these few ideas:

Chislev: The chislev are a very war oriented civ right? well why not make them a little more inclined to fight, or more accurately, reap a bit more benefit from wars. if you were to make the Influence driven war mecahnic tied to the Chislev civ i think it could be a flavourful and fun addition.


Dural: The Dural are often seen as the weakest of the civs in FF. this is because they are strongly builder oriented. The Dural do however have strong tactictians and see war as another form of 'Art'. If you tied Influence driven war to the Dural it would represent their armies ability to gain ground and hold it, irregardless of who is actually occupying the territory. i think it further combines the strong cultural feel the civ has with war and could help make them a bit sronger and flavourful.


A new game option: Influence driven war is a fun mechanic. you gain culture after every battle and can even gain blobs of culture outside your borders. this helps with distant wars. i can really see influence driven war being an often used game option. making it a game option also means people that dont like it dont have to use it. this is personally my preference :p


The Conqueror Trait (Valkrionn's idea): Adding influence driven war to the conqueror trait is pretty much perfect. it dosnt really need much explanation at all :D

I really hope Vehem seriously considers adding Influence driven war to Fall Further cause that means i can pillage it for my own nefarious gains :evil:
 
Prehaps it could be impemented as an game option, but the Dural gain extra culture when they win.
 
If this is going to be added to FF (which I think is a decent idea), I think it should be added as a basic mechanic, not a civ-specific feature.
 
I think the mechanic is a lot of fun, and realistic enough that it need not be restricted - give it to everyone. OTOH, modifiers based on trait/civ/civic/whatever would make it even more fun.
 
If you are talking about ...

http://forums.civfanatics.com/showthread.php?t=188007

I am very interested in this

Spoiler has the original post in it from the link provided.

Spoiler :
Influence Driven War v1.1
By: Moctezuma

Downloads

BTS v3.13 download (FIXED):
http://forums.civfanatics.com/attachment.php?attachmentid=171154&stc=1&d=1205266928

BTS v3.03 download:
http://forums.civfanatics.com/attachment.php?attachmentid=171155&stc=1&d=1205266928

Warlords v2.08 download:
http://forums.civfanatics.com/uploads/5028/Influence_Driven_War_11_208.zip

Civ 1.61 download:
http://forums.civfanatics.com/uploads/5028/Influence_Driven_War_11_161.zip

Unzip these files into the "Mods" folder.

Version history
Code:
1.0	 
First version
1.1 
compatible with Warlords v2.08
pillage influence
unit experience multiplier
fort capture multiplier
fixed divide by zero in neutral territory
added a new XML option: minimum city population to generate militia

Description of changes

In vanilla game the culture is generated only by cities using buildings/specialists, and it spreads from them to surrounding territory. Each square (plot, tile) in the game stores accumulated culture for each player individually.

This mod consists of three parts:


------------------------------
1. Combat influence
------------------------------


Military units affect surroundings via combat influence:
After each combat between two units: some amount of culture accumulated in each square of combat area is transferred from loser player/AI to winner player/AI. Combat area (i.e. influence radius) is: attacker plot, defended plot and near surrounding plots (see definition of influence radius bellow).
Note: This way I try to simulate effect of battle victory: some peoples have tendency to give up and flip to victorious side.

Rules:
  • It works for both field battle and city assault.
  • It works for both attacking and defending (also city defending).
  • If last defending unit in city dies: combat influence is increased greatly (an emergency militia may be "auto-drafted", check new resistance rules later).
  • If victorious unit has warlord: combat influence is increased.
  • If attacking unit withdraws: no culture transfer happens.
  • Calculated culture exchange cannot be higher than loser's remaining culture in plot. This means that no culture transfer happens in empty neutral territory: nobody is living there to be influenced. In third-party territory a culture transfer occurs only if some loser's culture is accumulated there.
  • It works also for attacking/defending barbarians in player or barbarian territory (this can be disabled via XML file).
  • Also water squares are affected by combat influence.
  • Naval combats use same influence rules as land combats. Note: if naval battle occurs near land, also land squares are affected (naval influence can be disabled via XML file).
  • No culture is exchanged during city bombardment (via catapults, ships, bombers, ICBM); during fighter interception; or if worker/settler is captured out of city.

If you like exact formulas, here it is:

The culture transfer from loser to winner for each plot within combat area is calculated this way:

Code:
  CultureTransferInPlot = BaseCombatInfluence *
   sqrt (LosersCultureInPlot * GameSpeedMultiplier) * 
   UnitExperienceMultiplier * NoDefenderMultiplier
   WarlordMultiplier * PlotDistanceMultiplier

where:

BaseCombatInfluence :
Default: 4.0
This ratio is good way how you can increase/decrease overall effects of IDW (via GlobalDefinesAlt.xml).

LosersCultureInPlot:
currently accumulated culture in given plot for player which had lost combat.
Note: Result culture transfer cannot be higher that this value.

GameSpeedMultiplier:
quick: 66%, normal: 100%, epic: 150%, marathon: 300%

NoDefenderMultiplier:
if last fort defender dies: +100% (configurable in XML)
if last city defender dies: +150% (configurable in XML)

WarlordMultiplier:
if winner unit has attached warlord: +30%, (only in Warlords version, configurable in XML).

UnitExperienceMultiplier:
experience of victorious unit increases influence.
Default value: +3% per experience point.

PlotDistanceMultiplier:
defines combat area - highest influence is in plots where attacker and defender stays prior to combat, max distance of effect of is similar to 2 square radius of city.

Exact formula is:
Code:
PlotDistanceMultiplier = 
 1 + DistanceFactor
   - DistanceFactor * plot_distance(curr_plot, attacker_plot) 
   - DistanceFactor * plot_distance(curr_plot, defender_plot)
Default value of DistanceFactor is 0.2 (20%).
Influence radius and distance multipliers can be modified via XML.

Examples of influence radius:

Distance multipliers used in case of adjacent plot combat:
Code:
                20%  40%  40% 20% 
            20% 60%  80%  80% 60% 20%
            20% 60% 100% 100% 60% 20%
            20% 60%  80%  80% 60% 20%
                20%  40%  40% 20%
Distance multipliers used in case of diagonal combat:
Code:
                20%  20%  20%
            20% 40%  60%  60% 40%
            20% 60% 100%  80% 60% 20%
            20% 60%  80% 100% 60% 20%
                40%  60%  60% 40% 20%
                     20%  20% 20%

-----------------------------------
2. Active city resistance
-----------------------------------


If last defending unit in the city dies and city resistance is sufficient then one militia unit emerges in city, otherwise it is captured just like in vanilla.
Resistance is sufficient if defender's culture in central plot >= attacker's culture in central plot (culture ratios in central city plot you can check also in the city screen).
Note: This new rule tries to simulate active people resistance in highly cultured cities.
Code:
  resistance = (defender_culture_ratio - attacker_culture_ratio) / 2
Militia unit is "auto-drafted":
  • Best available regular unit type is selected using same rules as for standard drafting: i.e. warrior, axeman, maceman, musketman, rifleman,...
  • Auto-drafted unit begins with 25% health (configurable in XML). This represents very low training level of quickly gathered militia.
  • Draft anger is 50% of standard draft anger: high danger means low anger. (configurable in XML)
  • City population is reduced by 1 (it doesn’t depend on unit type).
  • Auto-draft is not limited like standard draft: new militia unit is "auto-drafted" when previous one dies and resistance is still sufficient.
  • When city population is reduced to 1, the city is captured even if resistance is still sufficient.
  • There is no technology requirement for auto-draft: this is not real conscription: imagine peoples that are just trying in defend their homes.
  • It takes some time to accumulate sufficient culture: if city is attacked early no militia emerges.


------------------------------
3. Pillage influence
------------------------------


When enemy unit pillages tile improvement, some amount of accumulated culture is transferred from improvement owner to unit owner. Only single square is affected.

Note: This rule was added to provide incentive for defender to defend own territory and not only stay inside cities. It reflects situation where farmers, miners or villagers escape due to farm, mine or village is burned down by invader.

This rule is optional and can be disabled via XML

Rules:
  • It works only in enemy territory (no influence in friendly or neutral territory)
  • No influence form route pillage (roads, railroads)
  • Works also for sea improvements (e.g. fishing boats)
  • For improvements like towns, each downgrade influences a given square

Code:
CultureTransferInPlot = BasePillageInfluence *
   sqrt (LosersCultureInPlot * GameSpeedMultiplier)

where:

BaseCombatInfluence:
default value: 2.0
It can be easily modified via GlobalDefinesAlt.xml.

LosersCultureInPlot:
currently accumulated culture in given plot for owner of pillaged improvement.
Note: Result culture transfer cannot be higher that this value.

GameSpeedMultiplier:
quick: 66%, normal: 100%, epic: 150%, marathon: 300%



Gameplay

Player is informed about effects of IDW this way:

  • After each battle a number with influence % (i.e. exchanged culture ratio) is shown in the game log. It is calculated in defended plot only, but whole combat area is influenced. Reason that I'm using defended plot here is because it is in most cases the most important one (e.g. central city square).
    [*]Green color means culture increase for you
    [*]Red color means culture decrease for you​
  • When last city defender dies and militia unit is "auto-drafted" a remaining resistance % is shown in the game log.



Result of changes on gameplay:

1. More dynamic borders during wars:

In vanilla game a culture plays significant role only in the beginning. In later stages the borders are almost fixed: big changes happen only if cities are captured.

With new rules you can fight for territory between cities and not only for cities itself. I think that this "frontline" effect really improves gameplay. You can "win" quite large area with several resources even without conquering single enemy city! Possible tactics if you don’t have sufficient power to conquer cities could be stay/pillage/heal near your borders and influence squares by killing approaching enemies.


2. Surprise or backstabbing attacks are less effective:

Attacked city can for short time defend itself even if last defender dies if resistance is sufficient: this increases reaction time for defending player if he has many units in the opposite side of empire.

However you cannot count on auto-drafted units. These are meant only to slow-down attack in case when everything else fails. In most cases a militia units can defend high cultured city only 1-2 turns until real defender units arrive because:
  • Militia unit begins with very low health, so if it is attacked in same turn, it almost certainly dies.
  • City resistance decreases very quickly because victory influence is much higher when last city defender dies (see NoCityDefenderMultiplier).
  • Each auto-drafted unit increases unhappiness in the city.
Note: I cannot make militia units more effective, because then player can abuse it: e.g. move out all defenders from city and later counterattack damaged attackers.


3. High cultured cities are harder to conquer (more militia formed) but easier to hold after capture because city's central square has quite good amount of conqueror’s culture immediately after capture.

This means:

  • No problem with cultural flipping of captured city back to original owner:
    In vanilla is this problem is fixed by disabling startup option: "City flipping after conquest". This is no longer needed in this mod.
  • Much smaller problem with cultural flipping of captured city to neighbor civ, which can be in peace with conqueror.
    Naturally, if just conquered city has been in big cultural pressure prior to capture it will be in pressure also after it, because culture is transferred only from city's previous owner.
Note: culture buildings in newly captured city are still very important because city still begins with zero culture (only plots are influenced by combat).


4. No problems with stealing of conquered city:

This happens often in multiplayer with simultaneous turns but sometimes it occurs also in single-player: Two players are doing joint attack on same enemy city; first player destroys all defenders; second one just waits until last defender remains there and then attacks.

With new rules the city capture is fairer: culture in central city square is increased after each victory for each attacking player separately. If no defender unit is left then attacker, whose culture in central square is higher than owners culture, captures the city.


5. In battles quality counts more than quantity:

With new rules the conquest is easier with smaller stack of high strength units than with bigger stack of low strength units: Veteran unit makes more influence (see UnitExperienceMultiplier) and better victory/loss ratio means more culture transferred to attacker.

Some examples:
  • Suicide catapults are little less effective: due to losses, defender's culture increases more often.
  • Blitz units like tanks are very effective: due to multiple culture exchanges per turn. This really speeds up the conquest of very highly cultured cities in later stages of game, which can be really slow otherwise.
  • Warlord units are more effective than normal units (see WarlordMultiplier).

Remark to AI:
I made no changes here so far. In my test games I haven't seen any AI problems caused by new rules AI should be even more dangerous now because it loves pilaging.


Notes to Modmakers

Package contains also changed SDK sources. Modmakers are free to use my code, as long as my name and the description above is supplied with it.
In the C++ files modified sections are enclosed by: "BEGIN InfluenceDrivenWar" and "END InfluenceDrivenWar",


Thanks to:
  • Newbert (pillage influence idea)
  • Dom Pedro II (fort capture influence idea)
and other CFC members for comments and suggestions for this mod:
 
Yeah, this is pretty sexy. Wouldn't want it just for commander, sometimes I play leaders that aren't Xiven! :D It could be really interesting to see borders a few hundred turns in with this.
 
If you put it in only a few Civs of a game it would not work well at all. This kind of mechanic you need to be able to "fight back" through the same mechanic, and not through classic Culture, otherwise it is neigh impossible to culturally penetrate a capital BFC.

It works very nice with some people having a stronger offensive push (or weaker defensive loss) due to traits of player or units/buildings though.
 
Yea, if this is implemented, it should be available to everyone, on the basic level. Maybe option, maybe permanent add on, poll could decide xD
 
Prolly option, but it would end up like Broader Alignments for me - something I never turn off.
 
I think it should be avalible to everyone, but some civs (like conquorer civs and the Dural) get bonuses. This would mean that on adverage, they gain more culture on victory, and lose less on losses... I don't know how hard it would be to give extra bonuses, but thats beside the point...
 
Sephi has already merged it into his mod. That along with the massive AI boosts makes it sadly hard for me to play FF lately :(

However, this quote from Kael makes me think that any work done to integrate IDW into FF would be pointless:
I consistently get CtD's a few turns in. Thats probably more to do with compatibility issues between 0.41e and Wild Mana than anything wrong in Wild Mana. Im going to release "e" without Wild Mana and then patch "f" will probably be only a Wild Mana merge.

Might be getting the best of both worlds soon..
 
But FF is divulged from FFH's codebase now, so they'd still have to merge the changes...
 
Top Bottom