Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
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?