-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Robots not moved from Factory when no Robot Command Center space available even if Warehouse space is available #1264
Comments
The moving of non-truck robots happens here: Indeed it can be seen that if there is no RCC space, it won't attempt to move it to a Warehouse, but just go idle: Do note that the method getAvailableRobotCommand() already checks for capacity too: While other Truck and non-robot Products that are finished are sent to the Warehouse: So that seems to indicate that:
|
https://github.com/OutpostUniverse/OPHD/tree/storeRobotsInWarehouse first attempt at adding fallback and notification, moved warehouse store logic into its own function. |
@ldicker83 How did you envision the loading of warehoused robots into new/extra RCC capacity? |
I haven't... which is why I made an issue for this. First thought (with a foggy mind and not looking at the code) is to add a check during turn updates to handle moving robots from warehouses into command slots each turn. Seems a simple enough method. |
Correct
Would go idle if both 1) no RCC slots available and 2) no warehouse space available
Correct
These are good questions. My first thought it round robin. Perhaps better is to let the player decide (e.g., a GUI window showing available command slots, available stored robots and buttons to increase/decrease pulled robots from storage).
I hadn't thought of this but that's not a bad idea.
Agreed. |
I suppose this would also require a certain 'loadRobotsFromStorage' phase then when processing a new turn, in which logic replenishes the available RCC spaces with Dozers or Diggers or Miners.
The RobotPool gets increased when a new RCC becomes operational:
|
Title states it all.
During the update loop, if a robot that is not a truck is finished but there's no RCC space available for it, the Factory will go idle and simply won't continue until another RCC is built regardless of how much warehouse space there is.
This should instead allow robots to be moved into a warehouse which will become available to use as either 1) another RCC is built or 2) RCC command slots become available (via research or death/destruction of another robot)
The text was updated successfully, but these errors were encountered: