Components Vs Actors
Dev: Jacob Zhu
This week a lot of effort has been put in trying to convert the proximity enable logic of the Actor that detects a player, and spawns AI from a pool, and transfer it into a component that an existing Actor can use, instead of being an Actor itself. Through numerous trial and error and reading from the source code, I soon realize that due to the heirarchy of calls within Unreal Engine, data containers dont get populated in the same order (if it relies on existing data already created in the game) in components as compared to traditional actors.
This means that trying to use Unreal Engine's version of a map, which is TMap, leads to errors when trying to compile, if the logic of intializing it is copied 1 to 1 from the exiting Actor to the new ActorComponent.
A potential solution I can think of right now for next week is to try to rewrite the base class of the actor so that all such logic is included into the house Actor instead creating a separate component for it. Another is to strip the tracking and storage of data out of the ActorComponent class, and instead call a reference to the house Actor to manipulate the data stored there, when checking what to spawn. This should lead to a more complete package as a whole to allow for randomization to take place.
Get Lustrat Somnia
Lustrat Somnia
Horror game with horde defence
Status | Prototype |
Authors | The Vermilion Chocobos, Sun, Ren, TheCephaloDev |
Languages | English |
More posts
- Winning randomNov 18, 2023
- UI subsystem abstractionNov 03, 2023
- UI versus Shared PointersOct 28, 2023
- AI Accidental MartydomOct 23, 2023
- Clashing systemsOct 20, 2023
- Positioning a randomized objectOct 16, 2023
- Dev Log: Issues with Turning MeshOct 14, 2023
- UI Player Feedback and DirectionOct 14, 2023
- DevLog: Point System and Random ItemsOct 07, 2023
Leave a comment
Log in with itch.io to leave a comment.