Sid Meier's Civilization VI

Sid Meier's Civilization VI

Phantagonist's District Reconstruction
30 Comments
76561198101608496 Apr 29 @ 7:46pm 
same bug here, project finishes, nothing happens.
BloodyFanatic Sep 19, 2024 @ 8:10am 
but I do wonder whether the AI can use this project, since it won't do anything for it except waste production. (I don't know anything about modding Civ 6, so forgive me for asking)
BloodyFanatic Sep 19, 2024 @ 8:08am 
maybe you have a version that is not uploaded to the workshop? I fixed your code, this is working fine:

function PhantaDistrictEngineer_Project(playerID, cityID, projectID, iUnknown, iX, iY, bCancelled)
local pPlayer = Players[playerID]
if projectID == tProjectID and pPlayer:IsHuman() then
local pCity = pPlayer:GetCities():FindID(cityID)
local pDistricts = pCity:GetDistricts();
for row in GameInfo.Districts() do
if pDistricts:HasDistrict(row.Index) and (row.DistrictType ~= 'DISTRICT_WONDER') and (row.DistrictType ~= 'DISTRICT_CITY_CENTER') and (row.DistrictType ~= 'DISTRICT_SPACEPORT') and (row.DistrictType ~= 'DISTRICT_GOVERNMENT') and (row.DistrictType ~= 'DISTRICT_DIPLOMATIC_QUARTER') then
pDistricts:RemoveDistrict(row.Index);
pPlayer:GetUnits():Create(GameInfo.Units["UNIT_PHANTA_DISTRICT_ENGINEER"].Index, pCity:GetX(), pCity:GetY());
print("District Engineer Given");
end
end
end
end
Phantagonist  [author] Sep 15, 2024 @ 3:34pm 
It is working from my side, but I will check it again.
BloodyFanatic Sep 15, 2024 @ 11:44am 
from lua.log:

Syntax Error: ...\steamapps\workshop\content\289070\2956874998\Core\PhantaStatecraftDistrictEngineer_Script.lua:13: then expected near '='
BloodyFanatic Sep 15, 2024 @ 10:41am 
same bug here, project finishes, nothing happens. too bad, this mod seemed promising
ZuryMcFlapjack Jan 20, 2024 @ 7:38pm 
Is this mod dead?
寄寄寄,我是寄寄国王 Jul 29, 2023 @ 6:10am 
mod没有效果了:steammocking:,项目完成后什么也没有
NuDDen Jun 29, 2023 @ 1:57pm 
Same Bug in my game. Finished the project and nothing happens :(
I am running JNR's Districts too. Is it possible to make them both compatible?
ZuryMcFlapjack Jun 24, 2023 @ 8:15am 
I am having the same bug, where I finish the project but nothing happens at all. Still have districts and no engineers. I am NOT using the Golden Ages game mode on, but I have JNR's expanded districts, Monopolies and Corporations, and secret societies enabled.
Jeff[Taiwan] May 10, 2023 @ 4:39am 
當城市完成區域重建項目後並沒有出現任何效果,就只是空過了一回合,不知道哪裡出現BUG
Jing May 5, 2023 @ 10:18pm 
When I'm playing with Golden Ages, the mod doesn't seem to work at all, where the project finishes but nothing happened.
罗孔 Apr 19, 2023 @ 5:16am 
非常喜欢这个mod,感觉很有设计感,甚至感觉可以作为中国的新uu替代原有的“朝代更替”
Phantagonist  [author] Apr 16, 2023 @ 5:11am 
UPDATE:
Thank you for your feedback. The lua code has been updated to prevent mis-triggering, and AI will not trigger the district reconstruction effect. Feel free to leave a comment whether bugs happen after update.
更新:
感谢你们的反馈。已对lua代码进行更新避免错误触发区域重建效果,更新后AI不会触发区域重建效果。欢迎在留言区提醒作者更新后会否出现bug。
MORTIS OFFICIAL Apr 16, 2023 @ 3:57am 
AI会乱用这个功能,然后好多AI城市有一堆工程师,一个区域都没有
Madisonian Apr 15, 2023 @ 12:28pm 
Works fine with City Lights in that it can remove Rural districts to allow Boroughs, or vice versa.
JohnLeGreat Apr 14, 2023 @ 5:41am 
I think it might be interacting with JNR's district expansions ... not sure but when I'm building Academies (Tier 2 building) it does not trigger the bug but when I build universities it happens again
Phantagonist  [author] Apr 13, 2023 @ 8:33am 
@ siau2tie1
感谢你的反馈。我会检查该名大工程师的效果是否与区域重建有所冲突。
siau2tie1 Apr 13, 2023 @ 7:40am 
我还在中世纪,刚刚解锁弩手那些,然后召唤了大工程师给城市建城墙,突然城市所有区域拆了,返回给我区域工程师。后来我没有操作大工程师了,还会陆续自己拆区域重复前面的出现区域工程师。按理说都没到解锁相应的科技。
Phantagonist  [author] Apr 13, 2023 @ 5:52am 
@ siau2tie1
正在研究可能出现bug的原因。请问在甚麼情况会出现区域重建现象?
siau2tie1 Apr 12, 2023 @ 9:11pm 
这个经常会莫名其妙把我已有的区域拆了,然后还原给我区域工程师。
Phantagonist  [author] Apr 12, 2023 @ 1:15am 
@ ranma_hf
It is intended for the District Engineers to be used on other towns, as a mean to relocate production prowess from existing cities to newly settled ones.
I have tested the buildings and they do not trigger the projects. What mods do you use? The lua should only check for the project to trigger.
ranma_hf Apr 12, 2023 @ 1:05am 
1 love the mod, i'm gonna assume this might be known but when i go to build an armory to an encampment it triggers the project in that town. Also i noticed you can use the builders on other towns.
Is this intended?
Phantagonist  [author] Apr 3, 2023 @ 7:24pm 
@ JohnLeGreat
It should not happen as the lua checks the project completion to trigger the reconstruction, but I will check with that.
JohnLeGreat Apr 3, 2023 @ 7:15pm 
Does it work with JNR District Expansions? I might think its a mod conflict where on random certain districts get decommisioned and spawns military engineers
black80731 Apr 3, 2023 @ 7:01pm 
謝謝你捏
Phantagonist  [author] Apr 3, 2023 @ 6:19pm 
@ Unruly Monkey
I didn't see the AI use the project when playtesting. They may use the policy though.
HAMMERMAN Apr 3, 2023 @ 12:50pm 
Will the AI use this project or the Wildcard?
Phantagonist  [author] Apr 3, 2023 @ 1:10am 
@ JohnLeGreat
I have tested with building all the campus buildings and did not encounter the problem you mentioned. Could you explain more?
JohnLeGreat Apr 3, 2023 @ 12:39am 
I found a bug where the building of Universities caused the districts to disappear and spawn district engineers! hopefully it gets fixed :)