Happiness change mod

Creativus

Chieftain
Joined
Oct 3, 2010
Messages
41
Location
Hungary
Hello,

I made the changes below to adjust the happiness, because I do not feel that balanced when playing on huge maps. For example the huge map is 2.3 times bigger than a standard map (so the population can be much higher), but luxuries still provide the same amount of happiness. This is also true for wonders and some social policies. I added a happiness bonus to some buildings also to make them worthwhile to build and increased it for a few to have more benefit.

These are the changes:
1) Happiness for Luxories doubled (each will give 10),
2) Buidling happiness changes:
-Temple will give 2 happiness
-Burial Tomb 4
-Mud Pyramid 2
-Satrap court 4
-Colosseum 6
-Theatre 6
-Stadium 6
-Monument 1
-Monastery 2
-Mint 2
-Garden 1
-Broadcast tower 3

3) Wonders will give 4x happiness.
-Hanging Garden 12
-Notre Dame 20
-Eiffel Tower 32

4) Social Policies
-Piety happiness increased to 10
-Military Caste happiness increased to 2
-Meritocracy happiness increased to 2

Part of the changes were mainly to start learning modding, so in case you have suggestions these can be adjusted. The mod can be downloaded from CIV5 modbrowser (Happiness change for Huge maps v1) or if required I can upload it to this site.

Creativus
 
This is a great way to learn how to mod, congratulations on getting it all working! :) I haven't ever tried fiddling with the happiness mechanics yet, so it's interesting to see your take on it. I agree that a lot of things in the game feel they're not scaled well to map size.
 
I learnt a lot from the uploaded mods,I checked one of your mods to see how to adjust social policies :-).

What I tried a few days ago to make the colosseum, theatre and stadium to work in a similar way as the library. So that for example for every 4 pop to get 1 happiness, and maybe also to get a base happiness.

Unfortunately I can not get this working, the problem is as far as I see that happiness is not defined as yield and I don't know how to add it. I checked the yields file, something probably has to be added there and into some other files :-).

Is there a solution for this or a mod which can do something similar?
 
Happiness is actually a variable in Civ5Buildings.xml. To add happiness, I think all you need to do is add <happiness> Amount </happiness>. You don't have to tweak yields at all for that.

Oh, that's under the building in question. For instance, here is the temple's entry:

<Row>
<Type>BUILDING_TEMPLE</Type>
<BuildingClass>BUILDINGCLASS_TEMPLE</BuildingClass>
<FreeStartEra>ERA_INDUSTRIAL</FreeStartEra>
<Cost>120</Cost>
<GoldMaintenance>2</GoldMaintenance>
<PrereqTech>TECH_PHILOSOPHY</PrereqTech>
<Description>TXT_KEY_BUILDING_TEMPLE_DESC</Description>
<Civilopedia>TXT_KEY_CIV5_BUILDINGS_TEMPLE_TEXT</Civilopedia>
<Strategy>TXT_KEY_BUILDING_TEMPLE_STRATEGY</Strategy>
<ArtDefineTag>TEMPLE</ArtDefineTag>
<SpecialistType>SPECIALIST_ARTIST</SpecialistType>
<SpecialistCount>2</SpecialistCount>
<MinAreaSize>-1</MinAreaSize>
<Culture>3</Culture>
<HurryCostModifier>25</HurryCostModifier>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<NeverCapture>true</NeverCapture>
<PortraitIndex>37</PortraitIndex>
</Row>

To add happiness, you just add
<Happiness>4</Happiness>
 
Well, I would like to make that more complicated :). So that the happiness to change based on the city population, in a similar way as science output from library. This way it would not be a good strategy to have lots of small cities and just put lots of happiness buildings in it to have a net happiness increase in the empire.

For example:
After every 4 population in the city to get 1 additional happiness from a building.

Size 1: 0 happiness from the building
Size 2: 0
Size 4: 1
.
.
Size 8: 2
Size 12:3

For this I think happiness should be defined as yield, but I am not sure.
 
I am uploading 2 mods:

Happiness Adjustment - Social Policies
The mod will not change the default bonuses of the policies, only adds new bonuses:

Spoiler :

Tradition Branch
Monarchy +1 :) from every Wonder.
Landed Elite +1 :) from every Wonder.

Liberty
Representation: :mad: from number of Cities reduced by 25%.
Republic +0.5 :) for each City you own connected to the Capital.

Honor
Warrior Code +1 :) from every Barrack.
Military Tradition +1 :) from every Castle and Wall.
Professional Army +1 :) from every Armory.

Piety
Piety: +1 :) bonus to every Temple. (removed the +2 base :))
Theocracy: Reduces :mad: from Citizens in non-occupied Cities by 15%. (reduced from 25% the difference was added to Free Religion)
Free Religion: +1 :) from every Monastery and Reduces :mad: from Citizens in non-occupied Cities by 10%.

Patronage
Cultural Diplomacy: :) from gifted Luxuries increased by 100%.

Order
Communism +1:) from every Workshop and +2:) from every Factory.

Autocracy
Total War: +2:) from every Arsenal and Military base.

Freedom
Free Speech: +2:) from every Broadcast Tower.
Democracy: +1:) from every Garden.

Rationalism
Sovereignty: +1:) from every Public School.
Scientific Revolution: +1:) from every Library (or paper maker in case of China).

Commerce
Commerce: +1:) from every Lighthouse and Harbor.
Protectionism: +1:) from every Market or Bazaar.
Merchant Navy: +1:) from every Seaport.


Happiness Adjustment - Wonders
Spoiler :

1) Hanging Garden: +1 Population and +1 :) in all Cities.
2) Notre Dame: +4 :) and +:)in all Cities
3) Eiffel Tower +8:) and +1:) in all Cities
4) Forbidden Palace: changed from World Wonder to National Wonder
 
Is there any way you can upload this on to the new mod database or possible onto this site. Please.
 
Back
Top Bottom