View Full Version : War Weariness


nokmirt
Jun 05, 2009, 03:01 AM
How can I make war weariness alot less for civs, is there a way to do it through xml? I don't mind some war weariness, but I want to reduce it. Any ideas? Thanks for help

WarKirby
Jun 05, 2009, 05:47 AM
I don't know if there's a way to do it for a single civ directly, but FFH works around this by assigning war Weariness modifiers to each civ's unique palace.

Here's the doviello entry, from Civ4BuildingInfos.xml

<BuildingInfo>
<BuildingClass>BUILDINGCLASS_PALACE</BuildingClass>
<Type>BUILDING_PALACE_DOVIELLO</Type>
<SpecialBuildingType>NONE</SpecialBuildingType>
<Description>TXT_KEY_BUILDING_PALACE_DOVIELLO</Description>
<Civilopedia>TXT_KEY_BUILDING_PALACE_PEDIA</Civilopedia>
<Strategy></Strategy>
<Help></Help>
<Advisor>ADVISOR_ECONOMY</Advisor>
<ArtDefineTag>ART_DEF_BUILDING_PALACE_DOVIELLO</ArtDefineTag>
<MovieDefineTag>NONE</MovieDefineTag>
<HolyCity>NONE</HolyCity>
<ReligionType>NONE</ReligionType>
<StateReligion>NONE</StateReligion>
<bStateReligion>0</bStateReligion>
<PrereqReligion>NONE</PrereqReligion>
<PrereqCorporation>NONE</PrereqCorporation>
<FoundsCorporation>NONE</FoundsCorporation>
<GlobalReligionCommerce>NONE</GlobalReligionCommerce>
<GlobalCorporationCommerce>NONE</GlobalCorporationCommerce>
<VictoryPrereq>NONE</VictoryPrereq>
<FreeStartEra>NONE</FreeStartEra>
<MaxStartEra>NONE</MaxStartEra>
<ObsoleteTech>NONE</ObsoleteTech>
<PrereqTech>NONE</PrereqTech>
<TechTypes>
</TechTypes>
<Bonus>NONE</Bonus>
<PrereqBonuses>
</PrereqBonuses>
<ProductionTraits>
</ProductionTraits>
<HappinessTraits>
</HappinessTraits>
<NoBonus>NONE</NoBonus>
<PowerBonus>NONE</PowerBonus>
<FreeBonus>BONUS_MANA_CHAOS</FreeBonus>
<iNumFreeBonuses>1</iNumFreeBonuses>
<FreeBuilding>NONE</FreeBuilding>
<FreePromotion>NONE</FreePromotion>
<CivicOption>NONE</CivicOption>
<GreatPeopleUnitClass>NONE</GreatPeopleUnitClass>
<iGreatPeopleRateChange>0</iGreatPeopleRateChange>
<iHurryAngerModifier>0</iHurryAngerModifier>
<bBorderObstacle>0</bBorderObstacle>
<bTeamShare>0</bTeamShare>
<bWater>0</bWater>
<bRiver>0</bRiver>
<bPower>0</bPower>
<bDirtyPower>0</bDirtyPower>
<bAreaCleanPower>0</bAreaCleanPower>
<DiploVoteType>NONE</DiploVoteType>
<bForceTeamVoteEligible>0</bForceTeamVoteEligible>
<bCapital>1</bCapital>
<bGovernmentCenter>1</bGovernmentCenter>
<bGoldenAge>0</bGoldenAge>
<bAllowsNukes>0</bAllowsNukes>
<bMapCentering>0</bMapCentering>
<bNoUnhappiness>0</bNoUnhappiness>
<bNoUnhealthyPopulation>0</bNoUnhealthyPopulation>
<bBuildingOnlyHealthy>0</bBuildingOnlyHealthy>
<bNeverCapture>1</bNeverCapture>
<bNukeImmune>1</bNukeImmune>
<bPrereqReligion>0</bPrereqReligion>
<bCenterInCity>0</bCenterInCity>
<iAIWeight>0</iAIWeight>
<iCost>160</iCost>
<iHurryCostModifier>50</iHurryCostModifier>
<iAdvancedStartCost>-1</iAdvancedStartCost>
<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
<iMinAreaSize>-1</iMinAreaSize>
<iConquestProb>0</iConquestProb>
<iCitiesPrereq>4</iCitiesPrereq>
<iTeamsPrereq>0</iTeamsPrereq>
<iLevelPrereq>0</iLevelPrereq>
<iMinLatitude>0</iMinLatitude>
<iMaxLatitude>90</iMaxLatitude>
<iGreatPeopleRateModifier>0</iGreatPeopleRateModifier>
<iGreatGeneralRateModifier>0</iGreatGeneralRateModifier>
<iDomesticGreatGeneralRateModifier>0</iDomesticGreatGeneralRateModifier>
<iGlobalGreatPeopleRateModifier>0</iGlobalGreatPeopleRateModifier>
<iAnarchyModifier>0</iAnarchyModifier>
<iGoldenAgeModifier>0</iGoldenAgeModifier>
<iGlobalHurryModifier>0</iGlobalHurryModifier>
<iExperience>0</iExperience>
<iGlobalExperience>0</iGlobalExperience>
<iFoodKept>0</iFoodKept>
<iAirlift>0</iAirlift>
<iAirModifier>0</iAirModifier>
<iAirUnitCapacity>0</iAirUnitCapacity>
<iNukeModifier>0</iNukeModifier>
<iNukeExplosionRand>0</iNukeExplosionRand>
<iFreeSpecialist>0</iFreeSpecialist>
<iAreaFreeSpecialist>0</iAreaFreeSpecialist>
<iGlobalFreeSpecialist>0</iGlobalFreeSpecialist>
<iMaintenanceModifier>0</iMaintenanceModifier>
<iWarWearinessModifier>0</iWarWearinessModifier>
<iGlobalWarWearinessModifier>-40</iGlobalWarWearinessModifier>
<iEnemyWarWearinessModifier>0</iEnemyWarWearinessModifier>
<iHealRateChange>0</iHealRateChange>
<iHealth>0</iHealth>
<iAreaHealth>0</iAreaHealth>
<iGlobalHealth>0</iGlobalHealth>
<iHappiness>1</iHappiness>
<iAreaHappiness>0</iAreaHappiness>
<iGlobalHappiness>0</iGlobalHappiness>
<iStateReligionHappiness>0</iStateReligionHappiness>
<iWorkerSpeedModifier>0</iWorkerSpeedModifier>
<iMilitaryProductionModifier>0</iMilitaryProductionModifier>
<iSpaceProductionModifier>0</iSpaceProductionModifier>
<iGlobalSpaceProductionModifier>0</iGlobalSpaceProductionModifier>
<iTradeRoutes>0</iTradeRoutes>
<iCoastalTradeRoutes>0</iCoastalTradeRoutes>
<iGlobalTradeRoutes>0</iGlobalTradeRoutes>
<iTradeRouteModifier>0</iTradeRouteModifier>
<iForeignTradeRouteModifier>0</iForeignTradeRouteModifier>
<iGlobalPopulationChange>0</iGlobalPopulationChange>
<iFreeTechs>0</iFreeTechs>
<iDefense>0</iDefense>
<iBombardDefense>0</iBombardDefense>
<iAllCityDefense>0</iAllCityDefense>
<iEspionageDefense>0</iEspionageDefense>
<iAsset>0</iAsset>
<iPower>0</iPower>
<fVisibilityPriority>10000</fVisibilityPriority>
<SeaPlotYieldChanges>
</SeaPlotYieldChanges>
<RiverPlotYieldChanges>
</RiverPlotYieldChanges>
<GlobalSeaPlotYieldChanges>
</GlobalSeaPlotYieldChanges>
<YieldChanges>
<iYield>0</iYield>
<iYield>1</iYield>
<iYield>8</iYield>
</YieldChanges>
<YieldModifiers>
</YieldModifiers>
<CommerceChanges>
</CommerceChanges>
<ObsoleteSafeCommerceChanges>
<iCommerce>0</iCommerce>
<iCommerce>0</iCommerce>
<iCommerce>2</iCommerce>
</ObsoleteSafeCommerceChanges>
<CommerceChangeDoubleTimes>
</CommerceChangeDoubleTimes>
<CommerceModifiers>
</CommerceModifiers>
<GlobalCommerceModifiers>
</GlobalCommerceModifiers>
<SpecialistExtraCommerces>
</SpecialistExtraCommerces>
<StateReligionCommerces>
</StateReligionCommerces>
<CommerceHappinesses>
</CommerceHappinesses>
<ReligionChanges>
</ReligionChanges>
<SpecialistCounts>
</SpecialistCounts>
<FreeSpecialistCounts>
</FreeSpecialistCounts>
<CommerceFlexibles>
</CommerceFlexibles>
<CommerceChangeOriginalOwners>
</CommerceChangeOriginalOwners>
<ConstructSound></ConstructSound>
<BonusHealthChanges>
</BonusHealthChanges>
<BonusHappinessChanges>
</BonusHappinessChanges>
<BonusProductionModifiers>
</BonusProductionModifiers>
<UnitCombatFreeExperiences>
</UnitCombatFreeExperiences>
<DomainFreeExperiences>
</DomainFreeExperiences>
<DomainProductionModifiers>
</DomainProductionModifiers>
<BuildingHappinessChanges>
</BuildingHappinessChanges>
<PrereqBuildingClasses>
</PrereqBuildingClasses>
<BuildingClassNeededs>
</BuildingClassNeededs>
<SpecialistYieldChanges>
</SpecialistYieldChanges>
<BonusYieldModifiers>
</BonusYieldModifiers>
<ImprovementFreeSpecialists>
</ImprovementFreeSpecialists>
<Flavors>
</Flavors>
<HotKey></HotKey>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<bGraphicalOnly>0</bGraphicalOnly>
<iHotKeyPriority>0</iHotKeyPriority>
<bApplyFreePromotionOnMove>0</bApplyFreePromotionOnMove>
<bEquipment>0</bEquipment>
<bHideUnits>0</bHideUnits>
<bNoCivicAnger>0</bNoCivicAnger>
<bRequiresCaster>0</bRequiresCaster>
<bSeeInvisible>0</bSeeInvisible>
<bUnhappyProduction>0</bUnhappyProduction>
<iCrime>-10</iCrime>
<iFreePromotionPick>0</iFreePromotionPick>
<iGlobalResistEnemyModify>0</iGlobalResistEnemyModify>
<iGlobalResistModify>0</iGlobalResistModify>
<iModifyGlobalCounter>0</iModifyGlobalCounter>
<iPlotRadius>0</iPlotRadius>
<iResistMagic>0</iResistMagic>
<FreeBonus2>BONUS_MANA_EARTH</FreeBonus2>
<FreeBonus3>BONUS_MANA_BODY</FreeBonus3>
<PrereqTrait>NONE</PrereqTrait>
<RemovePromotion>NONE</RemovePromotion>
<SpecialistCommerceChanges>
</SpecialistCommerceChanges>
</BuildingInfo>


The tag you're looking for is iGlobalWarWearinessModifier
I'm not entirely certain whether or not it's a base BTS tag though. You could try it and find out.

General Tso
Jun 05, 2009, 08:01 AM
Thanks for the info WarKirby, I've been thinking about removing war weariness from my mod, and you got me looking in the right direction. After reading your post I did a search in the XML folder for "warweariness" and found an entry in WorldInfo.xml called iWarWearinessModifier. I set it to -1000 for each map. Hopefully that will stop all war weariness.

zappara
Jun 05, 2009, 08:10 AM
In GameDefines.xml there's bunch of war weariness modifiers, all those modifiers start with prefix WW_ so they should be easy to find. I'm not sure what you can do with those modifiers, just remembered seeing them there.

nokmirt
Jun 05, 2009, 08:23 AM
Thanks for the info WarKirby, I've been thinking about removing war weariness from my mod, and you got me looking in the right direction. After reading your post I did a search in the XML folder for "warweariness" and found an entry in WorldInfo.xml called iWarWearinessModifier. I set it to -1000 for each map. Hopefully that will stop all war weariness.

Thanks for everyone's help, its hard to continue a war when your people are pissed off.
I finished adding things to an earlier World War One mod by Jon Shafer. Anyway I was finished last night, and lo and behold, all of the cities, have smoke rising, and a red angry citizen smilie beneath them. Now at the beginning of the war there was a great support for it, like a big adventure. Later as it dragged on and the people saw first hand the wounded soldiers, and the mounting casualty lists, that this was very concerning and wanted it to end.

WarKirby
Jun 05, 2009, 12:40 PM
Thanks for everyone's help, its hard to continue a war when your people are pissed off.

Well, I think that's the entire point of War Weariness :)
remember Vietnam.


But it's your mod, so if you want it gone, it should be gone

Tssha
Jun 05, 2009, 03:16 PM
Wars should be harder to fight as they drag on. I'm sure World War I was no exception.

Hell, even in World War II they had to work hard to keep morale up on the home front. You could argue for axing war weariness in a WWII mod, but I'd argue it'd be more interesting to give players more options for placating distressed citizens. Moreover, weariness should be much harder to fight if you are losing.

It probably sounds a bit like handing an anchor to a drowning man, but it definitely motivates people to end a war when their own people are rising up against them. It was probably half the reason World War I ended with the Treaty of Versailles (that, and the fact that no one could really press any advantages). I doubt Germany WANTED to pay war reparations through the nose.

mechaerik
Jun 05, 2009, 10:19 PM
Moreover, weariness should be much harder to fight if you are losing.


And even harder to fight if you are the one who initiated the war that you are losing.

General Tso
Jun 06, 2009, 10:51 AM
While war weariness is a realistic option and probably should be used most of the time, I actually have a good reason to eliminate it in the mod that I'm working on (and hope to finish some day, decade, year, or whatever :lol:). My mod consist of a series of WW2 battles played on different maps with each turn being just one day. Since the player doesn't exit the game between maps, war weariness would accumulate from map to map (I think).

nokmirt
Jun 07, 2009, 12:03 AM
Well, I think that's the entire point of War Weariness :)
remember Vietnam.


But it's your mod, so if you want it gone, it should be gone Well really just reduced, not completely gone. I found most of the people are mad because of over crowding. That can be fixed with happiness improvements, plus I gave my bumkers a +1 rating. People feel better if they are safer from attack. At least thats the excuse I am using...Jesus I hope I'm not turning into a politician.

nokmirt
Jun 07, 2009, 12:10 AM
Wars should be harder to fight as they drag on. I'm sure World War I was no exception.

Hell, even in World War II they had to work hard to keep morale up on the home front. You could argue for axing war weariness in a WWII mod, but I'd argue it'd be more interesting to give players more options for placating distressed citizens. Moreover, weariness should be much harder to fight if you are losing.

It probably sounds a bit like handing an anchor to a drowning man, but it definitely motivates people to end a war when their own people are rising up against them. It was probably half the reason World War I ended with the Treaty of Versailles (that, and the fact that no one could really press any advantages). I doubt Germany WANTED to pay war reparations through the nose. Yes, but at the beginning of WWI people thought it was great it was exciting. People came from all over and cheered, there was large crowds, parades. The duty for their country on their minds, no thoughts of what the war would do to their young men. They thought they would go and fight and be home in a few months. They were wrong of course, but they were not revolting from the outset.

nokmirt
Jun 07, 2009, 12:13 AM
While war weariness is a realistic option and probably should be used most of the time, I actually have a good reason to eliminate it in the mod that I'm working on (and hope to finish some day, decade, year, or whatever :lol:). My mod consist of a series of WW2 battles played on different maps with each turn being just one day. Since the player doesn't exit the game between maps, war weariness would accumulate from map to map (I think).


Sounds good like Panzer General, one of the best Strategy games of our time, let me know when thats finished. Simulate the Russo-Finnish war too, like in Allied General.

Tssha
Jun 07, 2009, 03:03 AM
Yes, but at the beginning of WWI people thought it was great it was exciting. People came from all over and cheered, there was large crowds, parades. The duty for their country on their minds, no thoughts of what the war would do to their young men. They thought they would go and fight and be home in a few months. They were wrong of course, but they were not revolting from the outset.
You ask me, that should be simulated in Civ too. A nice temporary happiness bonus at the start of a war would be neat.

Although, Revolutions mod does claim that if you attack someone else, you can postpone the rebels' attempt to rise up against you. That's not nearly the same thing though.

General Tso
Jun 07, 2009, 09:37 AM
Sounds good like Panzer General, one of the best Strategy games of our time, let me know when thats finished. Simulate the Russo-Finnish war too, like in Allied General.

Yeah the old Panzer General series was a lot of fun. I'm trying to make the mod work as much like the old Panzer General game as possible while keeping options open to make it better than the original game. If this mod works out and enough people are interested in it I would like to start an Allied General Mod next.

nokmirt
Jun 07, 2009, 09:43 AM
You ask me, that should be simulated in Civ too. A nice temporary happiness bonus at the start of a war would be neat.

Although, Revolutions mod does claim that if you attack someone else, you can postpone the rebels' attempt to rise up against you. That's not nearly the same thing though.

Yes I think it would fit into the way people think, that pride in their nationhood comes out at the beginning of a war, and builds up the morale of their spirit and resolve. Plus there is always drama and propaganda built up against an enemy nation. They did this, and OMG they did that, now their gonna pay.