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

Abstract base classes added to agentTypeConfigFactories in GoapBehaviour #271

Closed
Layla-P opened this issue Oct 7, 2024 · 1 comment
Closed
Labels

Comments

@Layla-P
Copy link
Contributor

Layla-P commented Oct 7, 2024

Version 3.0.12-Beta

As mentioned on discord the agentTypeConfigFactories in the GoapBehaviour is adding two instances of the abstract base class.
This causes exceptions.

image

image

Suggested update for quick fix - or find why the base classes are being picked up.

        private void CreateAgentTypes()
        {
            var agentTypeFactory = new AgentTypeFactory(this.Config);

            this.agentTypeConfigFactories.ForEach(factory =>
            {
                if (factory != null)
                    this.Register(agentTypeFactory.Create(factory.Create()));
            });
        }
@crashkonijn
Copy link
Owner

Fixed in 3.0.19-beta

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

No branches or pull requests

2 participants