Master of Orion

Master of Orion

Unofficial Code Patch Steam Workshop
Ragnaman 2023 年 8 月 20 日 上午 6:05
Fixing Export colony build item
Hello Sol,

Im trying to track down and fix the Export bug (as its not automatically replaced by things in build queue like trade goods are).

If I do manage to fix it, can the change be incorporated into your mod ?

Or perhaps you are working on this for next UCP release ?
< >
正在显示第 1 - 2 条,共 2 条留言
Ragnaman 2023 年 8 月 20 日 上午 6:18 
I am still testing it, but I think I have found where the bug lies.

Backend.Settlements.Colony class, Govern() method.

bugged code:
if (this.GetQueueLength() == 0 || this.IsTradingGoods())

fixed code:
if (this.GetQueueLength() == 0 || this.IsTradingGoods() || this.IsExporting())
最后由 Ragnaman 编辑于; 2023 年 8 月 20 日 上午 8:29
Ragnaman 2023 年 8 月 20 日 上午 6:29 
Just tested it and this fix works :approve:

tests done:
build queue that is done with export as final step - still works
build queue that is not done with export as current item - FIXED, queue automatically switches to build item and then back to export.
using the auto build queue button from colony view - flips correctly from export to buildable item if its in build queue list.
最后由 Ragnaman 编辑于; 2023 年 8 月 20 日 上午 6:38
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50