Sid Meier's Civilization VI

Sid Meier's Civilization VI

Phantagonist's District Reconstruction
30 kommentarer
Dantetsu 29. apr. kl. 19:46 
same bug here, project finishes, nothing happens.
BloodyFanatic 19. sep. 2024 kl. 8:10 
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 19. sep. 2024 kl. 8:08 
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  [ophavsmand] 15. sep. 2024 kl. 15:34 
It is working from my side, but I will check it again.
BloodyFanatic 15. sep. 2024 kl. 11:44 
from lua.log:

Syntax Error: ...\steamapps\workshop\content\289070\2956874998\Core\PhantaStatecraftDistrictEngineer_Script.lua:13: then expected near '='
BloodyFanatic 15. sep. 2024 kl. 10:41 
same bug here, project finishes, nothing happens. too bad, this mod seemed promising
ZuryMcFlapjack 20. jan. 2024 kl. 19:38 
Is this mod dead?
寄寄寄,我是寄寄国王 29. juli 2023 kl. 6:10 
mod没有效果了:steammocking:,项目完成后什么也没有
NuDDen 29. juni 2023 kl. 13:57 
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 24. juni 2023 kl. 8:15 
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] 10. maj 2023 kl. 4:39 
當城市完成區域重建項目後並沒有出現任何效果,就只是空過了一回合,不知道哪裡出現BUG
Jing 5. maj 2023 kl. 22:18 
When I'm playing with Golden Ages, the mod doesn't seem to work at all, where the project finishes but nothing happened.
罗孔 19. apr. 2023 kl. 5:16 
非常喜欢这个mod,感觉很有设计感,甚至感觉可以作为中国的新uu替代原有的“朝代更替”
Phantagonist  [ophavsmand] 16. apr. 2023 kl. 5:11 
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 16. apr. 2023 kl. 3:57 
AI会乱用这个功能,然后好多AI城市有一堆工程师,一个区域都没有
Madisonian 15. apr. 2023 kl. 12:28 
Works fine with City Lights in that it can remove Rural districts to allow Boroughs, or vice versa.
JohnLeGreat 14. apr. 2023 kl. 5:41 
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  [ophavsmand] 13. apr. 2023 kl. 8:33 
@ siau2tie1
感谢你的反馈。我会检查该名大工程师的效果是否与区域重建有所冲突。
siau2tie1 13. apr. 2023 kl. 7:40 
我还在中世纪,刚刚解锁弩手那些,然后召唤了大工程师给城市建城墙,突然城市所有区域拆了,返回给我区域工程师。后来我没有操作大工程师了,还会陆续自己拆区域重复前面的出现区域工程师。按理说都没到解锁相应的科技。
Phantagonist  [ophavsmand] 13. apr. 2023 kl. 5:52 
@ siau2tie1
正在研究可能出现bug的原因。请问在甚麼情况会出现区域重建现象?
siau2tie1 12. apr. 2023 kl. 21:11 
这个经常会莫名其妙把我已有的区域拆了,然后还原给我区域工程师。
Phantagonist  [ophavsmand] 12. apr. 2023 kl. 1:15 
@ 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 12. apr. 2023 kl. 1:05 
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  [ophavsmand] 3. apr. 2023 kl. 19:24 
@ JohnLeGreat
It should not happen as the lua checks the project completion to trigger the reconstruction, but I will check with that.
JohnLeGreat 3. apr. 2023 kl. 19:15 
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 3. apr. 2023 kl. 19:01 
謝謝你捏
Phantagonist  [ophavsmand] 3. apr. 2023 kl. 18:19 
@ Unruly Monkey
I didn't see the AI use the project when playtesting. They may use the policy though.
HAMMERMAN 3. apr. 2023 kl. 12:50 
Will the AI use this project or the Wildcard?
Phantagonist  [ophavsmand] 3. apr. 2023 kl. 1:10 
@ JohnLeGreat
I have tested with building all the campus buildings and did not encounter the problem you mentioned. Could you explain more?
JohnLeGreat 3. apr. 2023 kl. 0:39 
I found a bug where the building of Universities caused the districts to disappear and spawn district engineers! hopefully it gets fixed :)