安装 Steam						
					
				
				
									登录
											 | 
						语言
						
																																															繁體中文(繁体中文)
																													日本語(日语)
																													한국어(韩语)
																													ไทย(泰语)
																													български(保加利亚语)
																													Čeština(捷克语)
																													Dansk(丹麦语)
																													Deutsch(德语)
																													English(英语)
																													Español-España(西班牙语 - 西班牙)
																													Español - Latinoamérica(西班牙语 - 拉丁美洲)
																													Ελληνικά(希腊语)
																													Français(法语)
																													Italiano(意大利语)
																													Bahasa Indonesia(印度尼西亚语)
																													Magyar(匈牙利语)
																													Nederlands(荷兰语)
																													Norsk(挪威语)
																													Polski(波兰语)
																													Português(葡萄牙语 - 葡萄牙)
																													Português-Brasil(葡萄牙语 - 巴西)
																													Română(罗马尼亚语)
																													Русский(俄语)
																													Suomi(芬兰语)
																													Svenska(瑞典语)
																													Türkçe(土耳其语)
																													Tiếng Việt(越南语)
																													Українська(乌克兰语)
																									报告翻译问题
							
						
 
											 
													



 
						



 
			




Hi Del,
I am really fed up with managing captured city so I'd like to add your files.
Does the mode still working?
AutoQueue_AddButton.lua : https://pastebin.com/vBzZ3GTB
AutoQueue_GameScript.lua : https://pastebin.com/wXK6529s
The AutoQueue_List.xml I'm using: https://pastebin.com/Rua7pf7v
Some suggestions I have:
- Optional flag (within the game) for enabling or disabling the district projects. Maybe late game you want the ability to have a city just do 'something', but not always
- Repeat last queue - automatically apply the finished item to the end of the queue, if it's still valid. Could be used to alternate between works projects ('train athletes', 'remove carbon', 'district project' etc.
- Disable autoqueue for the city if nothing is able to be built
That caused a nullpointer error, interrupting the for-loop, which lead to any building having a lower priority to not be displayed in the queue list.
So I commented/deleted every building/row from 63 (government, neighborhood and XP2 buildings) up until the end of </QueueOrder_Buildings>. Obviously these Buildings will not be build automatically.
You can find the file under steamapps\workshop\content\289070\1890593017\AutoQueue_List.xml
I am no modder and I did not much testing, so you might take that with a grain of salt.
AutoQueue_AddButton.lua : https://pastebin.com/vBzZ3GTB
AutoQueue_GameScript.lua : https://pastebin.com/wXK6529s
The AutoQueue_List.xml I'm using: https://pastebin.com/Rua7pf7v
Thanks for a cool mod, Oni!
local Project:table = GameInfo.Projects["PROJECT_REPAIR_OUTER_DEFENSES"];
if (not IsBuildQueueFull(City)) then
if (not ExistsInTable(QueuedTypeNames, Project.ProjectType)) then
table.insert(QueuedTypeNames, Project.ProjectType);
BuildProject(City, Project);
end
end
Seems to work pretty well :)
I am happy to try and debug or test any beta version if it would help. I have not looked over the .lua scripting language but if I have time I will try to. (I'm a programmer myself)
I did notice that OnProjectCompleted() possibly gets a ProjectID passed to it but CheckBuildQueue does not use it.. would that be somewhere to look?