Sid Meier's Civilization V

Sid Meier's Civilization V

Alpha Centauri Civilizations
Frisian77 25 Nov, 2020 @ 3:42pm
Hive: Problems around Happiness and Production (partly solved)
So in this late Discussion I would like to put all the points about the HIVE and Hive only together, since they are the factions with the biggest problems.
I have some solutions proposals, but need some help as well.
Appreciation
Just want to show my appreceation for this mod. The AC factions feel so deep and specialised, and there are so nice ideas like with the Gaians. I like the paintings as well, especiall Santiago and Deidre look very distinct and reflect their faction.

Happiness per City Bug
So in the current version there is a problem that leads to the Hive becoming very unhappy (-2 per city on every reload).

Manual Fix
I found out how to manually fix this:
open \My Games\Sid Meier's Civilization 5\MODS\Alpha Centauri Civilizations (v 3)\Lua\Alpha_Centauri.lua with any text editor
FIND
player:ChangeExtraHappinessPerCity(-traitInfo.HappinessPerGarrison)
REPLACE WITH
if not (GetPersistentProperty("AC_Init") == 1) then
player:ChangeExtraHappinessPerCity(-traitInfo.HappinessPerGarrison)
end
Remarks on fix
Only works with a new game (or at least that was not saved after a being loaded before, since the Bug occures on a load and would manifest itself on a subsequent save. the above fix makes the load working as it should be)
(Just if you are curious: the core bug is in the method IsInitialized, but fixing is there that may lead to problems with Miriam or Deidre and maybe Lal since their methods would not be run anymore which may cause problems, so I went minimalistic and only changed anything for the Hive)

Happiness for Garrission
For me, Happiness for the Garrission is always still 1 and not 2 as it should be.
It seems to me that SetHappinessPerGarrisonedUnit doesn't have the effect it should be and that this is CIVs fault.
Can anybody confirm this problems?
I would state that removing both (extra unhappiness per city, and improved happiness per city) would be a solution, but then the drawback is missing so I need to remove the production bonus (which is problematic as well, see below) or so. Right now with the methods I learned I can't think of a better one.
Although I must say I very much liked the original idea.
Maybe there is a way to disallow faith or religion alltogether, which would be a appropriate drawback for the Hive.
Or reducing the impact of luxuries to 3 (instead of 4)

UPDATE: I now added another special building, Politburo, for the hive, replacing the Shrines and giving +3 Happiness and +3 Production für 75 hammers and 3 maintanance. (Explanation: it's necessary to organize nerve stapling efficiently)
And changed general to: Cities suffer +3 Unhappiness. Can't build Temple.
Since this needs changes in 3 files I don't write it down here.

Productions bonus
there is none in my games. How is it with you?
Any thoughts on how to fix this? I can't find the configuration to set this (only the function how to read)
(for me +0% [ICON_PRODUCTION] Production when building non-wonder buildings. in AC_Text.xml would be right

Paramiter Defense
Some people agrue that the cost of 3 is to high. I don't think so, it's a good adaption of the economy malus the Hive had in AC (https://alphacentauri.gamepedia.com/Human_Hive)

Color of Civs
If you want more the original Civ Colors, open AC_Art.sql and replace the Color-parts with this:
--------------------------------------------------------------------------------------------------
--Player Colors
--------------------------------------------------------------------------------------------------
INSERT INTO PlayerColors (Type, PrimaryColor, SecondaryColor, TextColor)
SELECT 'PLAYERCOLOR_GAIA', 'COLOR_YELLOW', 'COLOR_PLAYER_GAIA', 'COLOR_PLAYER_WHITE_TEXT' UNION ALL
SELECT 'PLAYERCOLOR_HIVE', 'COLOR_WHITE', 'COLOR_PLAYER_HIVE', 'COLOR_PLAYER_WHITE_TEXT' UNION ALL
SELECT 'PLAYERCOLOR_UNIV', 'COLOR_WHITE', 'COLOR_PLAYER_UNIV', 'COLOR_PLAYER_WHITE_TEXT' UNION ALL
SELECT 'PLAYERCOLOR_MORGAN', 'COLOR_WHITE', 'COLOR_PLAYER_MORGAN', 'COLOR_PLAYER_WHITE_TEXT' UNION ALL
SELECT 'PLAYERCOLOR_SPARTAN', 'COLOR_WHITE', 'COLOR_PLAYER_SPARTAN', 'COLOR_PLAYER_WHITE_TEXT' UNION ALL
SELECT 'PLAYERCOLOR_BELIEVERS', 'COLOR_WHITE', 'COLOR_PLAYER_BELIEVERS', 'COLOR_PLAYER_WHITE_TEXT' UNION ALL
SELECT 'PLAYERCOLOR_PEACE', 'COLOR_WHITE', 'COLOR_PLAYER_PEACE', 'COLOR_PLAYER_WHITE_TEXT';

--------------------------------------------------------------------------------------------------
--Colors
--------------------------------------------------------------------------------------------------
INSERT INTO Colors (Type, Red, Green, Blue, Alpha)
SELECT 'COLOR_PLAYER_GAIA', 0.023, 0.27, 0.137, 1 UNION ALL
SELECT 'COLOR_PLAYER_HIVE', 0, 0, 0.35, 1 UNION ALL
SELECT 'COLOR_PLAYER_UNIV', 0.705, 0.705, 0.705, 1 UNION ALL
SELECT 'COLOR_PLAYER_MORGAN', 0.7, 0.7, 0, 1 UNION ALL
SELECT 'COLOR_PLAYER_SPARTAN', 0.082, 0.082, 0.082, 1 UNION ALL
SELECT 'COLOR_PLAYER_BELIEVERS', 0.999, 0.6, 0, 1 UNION ALL
SELECT 'COLOR_PLAYER_PEACE', 0.32, 0.34, 0.76, 1;
Last edited by Frisian77; 26 Nov, 2020 @ 5:18am