Skip to content
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

AI/Engineer State Machine #5645

Draft
wants to merge 20 commits into
base: deploy/fafdevelop
Choose a base branch
from

Conversation

relent0r
Copy link
Contributor

@relent0r relent0r commented Nov 5, 2023

Description of changes

This draft PR is for implementing an engineer based state machine to pick up jobs from the engineer manager.
It is a wip with the following components.

Initialization.
Sets the Location type and engineer manager instance.

DecideWhatToDo
Legacy engineer manager task.
Takes a preallocated task or queries the engineer manager GetHighestBuilder
Sets platoon data and stores the engineer handle.

Note. Engineer manager is static. The defaulted taskfinished function would relocate the engineer to a different manager if it was closer to a new base. Happens on disband.

SetBuilderData
Sets data based on builder, requires base template and construction data.

NavigateToTaskLocation
Handles navigation.

CheckForOtherTask
Handles checking for other task before going back into the normal engineer task.

Current issues.
Uncertainty on how to handle the queued construction. The default AI runs a buildstructure function on the build location in order to 'reserve' the build position.
It also does this as part of the navigation queue.
This means that pathing that is required must run through and then run a buildstructure command at the end before the engineer starts moving.
Ideal solution is to have the engineer manager understand reservation for build locations so that there is no requirement for this. This may be possible with Jips chunk based templates.

@Garanas
Copy link
Member

Garanas commented Nov 6, 2023

image

There's something going wrong here 😃

@relent0r
Copy link
Contributor Author

relent0r commented Nov 6, 2023

image

There's something going wrong here 😃

Yer for some reason its picked up every sync my fork has done with the main repo over the last few months. Never used to do that.

@Garanas
Copy link
Member

Garanas commented Nov 6, 2023

@relent0r the drawing of #5647 is available in this branch now too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants