CEP 2.0 - Happiness bug with autosaves, UI bugs?

theincubus

Chieftain
Joined
Jul 22, 2007
Messages
17
I just loaded up an autosave after I rage quit a game (it happens) and had 45 unhappiness when I was floating around 20 happiness. Not sure if this is a bug or just a general issue with saves/autosaves and mods but instantly losing 50 happiness isn't right. Also, I dont notice any of the UI changes I saw with GEM. Are there specific settings to make these show up? I usually play windowed so I can watch netflix with minimum graphics settings to cut down on any lag.
 
UI changes are not activated yet. The mod is still doing basic changes that should introduce fewer bugs, and then building up the interface enhancements in the next phase.

Did you load from the main menu or from within the mod? The mod does add happiness to some buildings (the happiness ones), which might have broken when loading for some reason if you didn't load from the mod's single player screen.
 
Well this was saved when everything was OK, happiness were around 40-50, I don't remember exactly. After loading it was at -32...
 
I can confirm that in his save file his unhappiness increased significantly from the previous turn (retired and then checked unhappiness chart). I loaded over and over again but was only able to get a variation once from the unhappiness distribution.

Code:
Total Unhappiness   - 293    | 293    
Cities              -  41.6  |  41.6  
Occupied Cities     -   4    |   4    
Population          - 227.05 | 163.4
Specialists         -   6.17 |  68.87
Occupied Population -  15    |  15

The variation in population/specialists between loads and the nature of the large swing in unhappiness from the previous turn suggest that the unhappiness lies from there. I also crunched the numbers and it seems like the game has the right number of population and cities.

Nevermind, I think the problem is that he's playing on warlord that gives him a 75% reduction in population and city unhappiness and the CEP handicaps file doesn't load until after the save. If you apply the 75% to the CEP AI handicap file then he ends up floating 50+ happiness in that save.

If you guys want a temporary fix change the following in the "\Communitas Expansion Pack - Basic (v 3)\Gameplay\AI\CEAI_Handicaps.xml" file:

PHP:
			<Where Type="HANDICAP_WARLORD" />
			<Set>
				<StartingLocPercent>50</StartingLocPercent>
				<AdvancedStartPointsMod>100</AdvancedStartPointsMod>
				<HappinessDefault>9</HappinessDefault>
				<NumCitiesUnhappinessMod>100</NumCitiesUnhappinessMod>
				<PopulationUnhappinessMod>100</PopulationUnhappinessMod>
				<Gold>0</Gold>

to:

PHP:
			<Where Type="HANDICAP_WARLORD" />
			<Set>
				<StartingLocPercent>50</StartingLocPercent>
				<AdvancedStartPointsMod>100</AdvancedStartPointsMod>
				<HappinessDefault>9</HappinessDefault>
				<NumCitiesUnhappinessMod>75</NumCitiesUnhappinessMod>
				<PopulationUnhappinessMod>75</PopulationUnhappinessMod>
				<Gold>0</Gold>

I just loaded up an autosave after I rage quit a game (it happens) and had 45 unhappiness when I was floating around 20 happiness. Not sure if this is a bug or just a general issue with saves/autosaves and mods but instantly losing 50 happiness isn't right.

Were you also playing on warlord? If this is the case then it is probably an handicaps file issue.

EDIT: I just tested this in a warlord game and can't reproduce it. So I'm out of ideas.
 
I added stackpointer's change to the mod for v3.2.2, in case that solves the problem later somehow. It might be that combines with some other part of the game to create the weird problem you're seeing, in a way that's difficult to test.
 
I just got the unhappiness issue again with 3.2.2. Playing as Zulu on King, +44 happiness, saved, went to bed, reloaded next day to -121 unhappiness.
 
I use:
Really advanced Setup v6
Cities 4 hexes away v4
City Limits v3

In addition to CEP v3.3.4 and communitas map v1.2.2.

I don't think any of these would cause an issue with happiness
 
Is "Cities 4 hexes away" only available on the steam workshop? I don't play civ5 with steam online because of it's tendency of deleting all my mods. If you could attach a zip of it I'd appreciate it.

Also, you'd probably get the same effects from editing the following lines from your CEP_Options.sql file:

PHP:
/*
Minimum distance (in tiles) between cities.
*/
UPDATE Defines
SET Value = 2
WHERE Name = 'MIN_CITY_RANGE';
 
I might fiddle with that after I finish my current game, I find 4 hexes is much more balanced for combat. No AI clusters of that can all bombard a single unit. I got 4 hexes away from steam workshop, zipped it myself so hope it works for you.
 

Attachments

Okay, so I took a look at this one too. The unhappiness jumped up by around 160.

It wasn't the difficulty level since the two save games were on Warlord and King respectively. I suspect that it has something to do with either the map size (both large) or wartime (both have captured cities).
 
I believe the first time I saw this bug i was playing a standard size map. I just recently started playing large.
 
Have you tried clearing your cache and moduserdata folders before starting a new game? I've taken a look at your save games and it looks like all the unhappiness is being calculated correctly for you, though the severe jump in unhappiness is very real.

I want to say that somehow the game isn't calculating the unhappiness you are gaining from capturing cities correctly. But when you load the game, the unhappiness is recalculated and shown correctly. Do you encounter the vanilla city capture bug often when going for domination? That could be contributing to the problem.

EDIT: From the thread, "At one point, the option to puppet was no longer given, and the game auto-annexes. The unhappiness does not show up after this."
 
Back
Top Bottom