sss64sss
Warlord
Whoops. Sorry about that. I use them together so much, that I guess I'm starting to mix them up. 

Anyone finding cities, other than capitals, too easy to capture, in light of the Provinces change to bombardment range? Wondering if I should increase the Defensive Strength value of Walls et al. Especially given that they require maintenance in CID.
I also have user interface issues. I can't see anything in the diplomacy panel (no icons, except for a globe icon which does nothing if I click on it). So I don't have access to decisions. And I sit intended that city states with their quests are no longer displayed below the diplomacy panel and the score list? That was. a feature of EUI I really fancied...
(I'm using EUI, your gameplay changing mods and custom civs that have support for your mods)
[9258.628] Runtime Error: C:\Users\Christopher\Documents\My Games\Sid Meier's Civilization 5\MODS\JFD's Cities in Development (v 42)\Shared\Lua\Utilities\JFD_CIDUtilities.lua:127: attempt to index local 'city' (a nil value)
[24005.328] Runtime Error: C:\Users\Build\Documents\My Games\Sid Meier's Civilization 5\MODS\JFD's Cities in Development (v 42)\Shared\Lua\UI\Overrides\ToolTips\InfoTooltipInclude.lua:1854: attempt to call method 'GetEventCityYield' (a nil value)
[23939.453] EUI_context: Active MOD: d1b6328c-ff44-4b0d-aad7-c657f83610cd (1) Community Patch Version 72
[23939.453] EUI_context: Active MOD: 8411a7a8-dad3-4622-a18e-fcc18324c799 (2) Community Balance Patch Version 13
[23939.453] EUI_context: Active MOD: eead0050-1e3f-4178-a91f-26cf1881ac39 (3) City-State Diplomacy Mod for CBP Version 27
[23939.453] EUI_context: Active MOD: 47dd6204-89ab-4cf6-af4f-1327d2ce584c (4) Civ IV Diplomatic Features - CBP Edition Version 10
[23939.453] EUI_context: Active MOD: be2d13ee-d18d-410e-8f04-7cd19cd99a98 (5) More Luxuries - CBP Edition Version 155
[23939.453] EUI_context: Active MOD: 24923240-e4fb-4bf6-8f0e-6e5b6cf4d3c2 (6a) Community Balance Patch - Compatibility Files (EUI) Version 1
[23939.453] EUI_context: Active MOD: 473b0504-ddfe-4209-bb11-e0bddcf2e9f9 Global - Barbarian XP Level 6 Version 2
[23939.453] EUI_context: Active MOD: 846f2b90-8d83-4b30-a62a-2a5ec801b1d4 Global - Commander Influence Borders Version 1
[23939.453] EUI_context: Active MOD: a526e077-5066-4268-a23f-95a562e709e1 Global - Local Generals Version 2
[23939.453] EUI_context: Active MOD: 1628ab1d-e2c1-4b6c-ace5-062618249248 Hex Conquer and Release Version 3
[23939.453] EUI_context: Active MOD: 99506232-2c32-4800-8beb-305f3240f169 Promotions - All Siege Units Indirect Fire Version 2
[23939.453] EUI_context: Active MOD: c01be061-a3aa-4937-8548-9cf9c23ec59e Promotions - Flagship Version 1
[23939.453] EUI_context: Active MOD: 1f941088-b185-4159-865c-472df81247b2 Sukritact's Events and Decisions Version 3
[23939.453] EUI_context: Active MOD: e0bea4b7-dff9-40da-b6e3-4ea6da5853d5 Improved Air Recon Version 1
[23939.453] EUI_context: Active MOD: 0410e638-98da-4d02-930a-daf4c3a120ef Quick Turns Version 10
[23939.453] EUI_context: Active MOD: 67c4bb4c-7c68-44fd-ba6f-c2cf289562eb Advancing Worker Version 2
[23939.453] EUI_context: Active MOD: 0fdce971-641d-4c28-9664-17df85fc1c9d Double Speed Aircraft Version 4
[23939.453] EUI_context: Active MOD: 170c8ed1-b516-4fe2-b571-befeac39d220 Ingame Editor Version 39
[23939.453] EUI_context: Active MOD: 27219efc-1d23-4c5f-8aad-993bf1708026 JFD's Cities in Development - EUI Compatibility Files Version 42
[23939.453] EUI_context: Active MOD: b817fb3e-17ba-4ffb-885d-3f82a640cd6c JFD's Rise to Power - EUI Compatibility Files Version 23
[23939.453] EUI_context: Active MOD: 1c60d0cc-ed38-4572-b163-c4014fc3ba87 Leadership Reformation Version 4
[23939.453] EUI_context: Active MOD: c12bdc20-b6f7-4547-a9b8-f6ac4c1bcfeb Music Changer Version 2
[23939.453] EUI_context: Active MOD: 95b11d5c-767e-47b8-b441-72a697ce4bb4 Pillage Perfect Version 1
[23939.453] EUI_context: Active MOD: 09f11249-de39-4884-975d-9d8f01c241d7 Barbarians Evolved Version 4
[23939.453] EUI_context: Active MOD: 6010e6f6-918e-48b8-9332-d60783bd8fb5 Historical Religions Complete (BNW or GK) Version 32
[23939.453] EUI_context: Active MOD: 10e9728f-d61c-4317-be4f-7d52d6bae6f4 JFD's Cities in Development Version 42
[23939.453] EUI_context: Active MOD: eea66053-7579-481a-bb8d-2f3959b59974 JFD's Rise to Power Version 23
[23939.453] EUI_context: Active MOD: 7fdd72a5-d4ae-441c-bc4e-2e3d2a26cff4 Ethnic Units Version 31
[23939.453] EUI_context: Active MOD: 6676902b-b907-45f1-8db5-32dcb2135eee JFD's Exploration Continued Expanded Version 15
[23939.453] EUI_context: Active MOD: 31a31d1c-b9d7-45e1-842c-23232d66cd47 JFD's Cultural Diversity (Core) Version 7
[5343.203] Runtime Error: C:\Users\dunca\OneDrive\Documents\My Games\Sid Meier's Civilization 5\MODS\JFD's Cities in Development (v 42)\Shared\Lua\Utilities\JFD_CIDUtilities.lua:127: attempt to index local 'city' (a nil value)
-- JFD_CanPurchaseLevies
local buildingDrillAcademyID = GameInfoTypes["BUILDING_JFD_DRILL_ACADEMY"]
function JFD_CanPurchaseLevies(playerID, city)
local player = Players[playerID]
if (not JFD_IsTechnologyRequirementUnlocked(playerID, "AllowLevies")) then
return false
end
if (JFD_IsCityColony(city) and (not city:HasBuilding(buildingDrillAcademyID))) then
return false
end
return true
end
function JFD_CID_Provinces_Levies(teamID, otherTeamID)
local team = Teams[teamID]
local otherTeam = Teams[otherTeamID]
if otherTeam:GetAtWarCount(true) > 1 then return end
local attackingPlayerID = team:GetLeaderID()
local attackingPlayer = Players[attackingPlayerID]
if attackingPlayer:IsMinorCiv() then return end
local playerID = otherTeam:GetLeaderID()
local player = Players[playerID]
[COLOR="Red"] if (not JFD_CanPurchaseLevies(playerID, city)) then return end[/COLOR]
local unitID = GetStrongestMilitaryUnit(player, false, "UNITCOMBAT_MELEE", "UNITCOMBAT_GUN")
if (not unitID) then return end
local unitClass = GameInfo.Units[unitID].Class
unitID = player:GetSpecificUnitType(unitClass)
local cityList = ""
for city in player:Cities() do
local loyaltyID = JFD_GetCityLoyaltyID(playerID, city)
if (loyaltyID ~= loyaltySeparatistID and loyaltyID ~= loyaltyRebelliousID) then
JFD_DoPurchaseLevies(playerID, city, unitID, nil, true)
cityList = cityList .. "[NEWLINE][ICON_BULLET]" .. city:GetName()
if player:IsHuman() then
local hex = ToHexFromGrid(Vector2(city:GetX(), city:GetY()))
Events.GameplayFX(hex.x, hex.y, -1)
end
end
end
if player:IsHuman() then
player:AddNotification(notificationGreatPersonID, Locale.ConvertTextKey("TXT_KEY_JFD_PROVINCES_LEVIES_RAISED_NOTIFICATION", cityList), Locale.ConvertTextKey("TXT_KEY_JFD_PROVINCES_LEVIES_RAISED_NOTIFICATION_SHORT"), nil, nil, unitID)
end
end