whoward69
DLL Minion
By default, techs are discounted by a percentage for each civ you have met that has already researched that tech
function TNTWorker(iPlayer, iUnit, iUnitType, iByCiv)
print("TNTWorker called")
local pPlayer = Players[iPlayer]
local pUnit = pPlayer:GetUnitByID(iUnit)
local pPlot = pUnit:GetPlot()
if iUnitType == GameInfoTypes["UNIT_WORKER"] then
print("Is worker...")
if pPlayer:GetCivilizationType() == GameInfoTypes["CIVILIZATION_ALTJAPAN"] then
print("...from AltJapan")
local iNumUnits = pPlot:GetNumUnits()
print("GetNumUnits: " .. iNumUnits)
for i = 0, iNumUnits do
pNewUnit = pPlot:GetUnit(i)
if pNewUnit and pNewUnit:GetCivilizationType() ~= GameInfoTypes["CIVILIZATION_ALTJAPAN"] then
pNewUnit:Kill(false, -1)
Events.AddPopupTextEvent(HexToWorld(ToHexFromGrid(Vector2(pPlot:GetX(), pPlot:GetY()))), "Unit killed!", 0)
end
end
--[[for direction = 0, DirectionTypes.NUM_DIRECTION_TYPES - 1, 1 do
local pAdjacentPlot = Map.PlotDirection(pPlot:GetX(), pPlot:GetY(), direction)
if pAdjacentPlot and pAdjacentPlot:IsUnit() then
for i = 0, iNumUnits do
if pUnit then
pUnit = pPlot:GetUnit(i);
damUnit:ChangeDamage(-15, -1)
end
end
end
end]]
end
-- return -1
end
return -2
end
Not sure if your still checking the other thread regarding DLL. But I posted over there as well. Long story shor Im using CSD, CSD Features, CIV4Diplomacy, CIV 4 Dip Features, and your newest DLL and I can start a game in the ancient era and learn every tech through the information age. However if I choose to start a game in the Information era the game will CTD. If I start a game in the ancient era and (ANY) AI player reaches the renaissance era the game will CTD. tested over and over. If I remove the CSD MOD and CSD Features and add the CSD no dll, I can run you DLL with Civ4 diplomacy and a VERY LARGE number of other mods together no issues start to finish. problem only happens when i introduce CSD
Murderologist,
This is a problem with something in CSD's dll regarding advanced starts that I've fixed, and will be in v24 of CSD. For now, I strongly recommend you use the Community Patch DLL mod in lieu of this mod, as it contains this fix, as well as all of the DLL - Various Mod Components data necessary to use Whoward's Pick-N-Mix mods.
G
Does this only happen if CSD is activated with DVMC, or would it happen with just DVMC?
Should I be using the CSDv24 with the new DLL provided or stay on 23 as 24 isnt official yet?
shouldn't they be on the first entry of the combined forum which most of us noobs use.
- India's UA means all their cities can work ring 4
- Hanging Gardens adds one to the host city's working distance
- Completing the Exploration policy adds one to the working distance of all cities
All of these are set in the XML of the "Global - City Working Distance" so can be changed/removed/added as you want