Hi,
we’re getting a cook error “Failed import for MassComponentHitSubsystem” this seems to be because UMassComponentHitSubsystem::Initialize is binding to the components of actors placed in the world, and they seem to end up saved with a reference to the component that fails to load.
I’ve got a fix for it by only binding in OnWorldBeginPlay, alternatively could keep it in initialize and skip if it’s just the editor world, and not game/pie.
Is there a reason for it to be bound on the actor in the editor, rather than just at game time?
Hi Devon,
I believe this is likely due to the fact that our projects using Mass have had the entities and actors spawned at runtime rather than placed into a level. So there is a good chance we did not bump into this while working on The Matrix Awakens. I will ask around the team if anyone remembers a specific reason to bind when placed in the world rather than on BeginPlay, but it may be lost to the fog of time and other work in the proceeding years.
-James
Okay. I am still waiting to hear from a couple of people on the team. If you do bump into anything weird with binding on Begin Play, let us know. We are always open to feedback and finding various rough edges. Sometimes things go overlooked because we have gotten used to dealing with it.
-James
We’ve also ran into issues with subclassing and dependencies where they get back a “cached” template, but the settings should be different. I assume the TODO above it means you’re aware of the bugs from it.
UMassAgentSubsystem::RegisterAgentComponent->EntityConfig.GetOrCreateEntityTemplate(*World); .
We are aware of some issues there. We have a list of TODOs, and I do not know when or if we will get around to the Mass plugins section. The intent of the plugins was to show what could be done with Mass as a framework rather than discrete pieces. This is subject to change because we have used the plugins in new plugins that are going to be brought to production ready such as InstancedActors.
thanks, I’ll just diverge as we haven’t seen any issues yet.