Week 2
Blog Post
- What have you achieved in the last week?
The last week was all about getting the Oreons to "behave". The Oreons now use the new behavior tree implementation, they follow the critter
while looking for a task to perform every second, if a task is found in the Oreon's Holding, it moves towards the target and the perform_task
node of the BT kicks in, which is just a placeholder for now. In order to test if the behaviors were actually working, a basic implementation of the Task System
and the Holding System
was also done. The Task System looks for a task in the Oreon's holding and assigns it one, when requested. Task system is also responsible for adding new tasks to the correct Holding. The new task addition involves using the Selection Tool
to mark an area, which then triggers an UI popup from which a task can be selected for the area. The Holding System, can be thought of as a information center consisting everything there is to know about a village, currently it consists of a queue of all available tasks.
- What are you currently working on?
I am currently working on a feature to make the area texture persist after task assignment, until the task is completed. This week's agenda also includes implementation of a eating
task, a task which the Oreon would perform if it is free and is "hungry".
- What problems are you currently facing?
Trying to get the block selection to render correctly in multiplayer is what I am stuggling with right now. The current implementation of the BlockSelectionSystem
does not work correctly in multiplayer, I tweaked it a bit by adding replicate annotations where required and adding NetworkComponent
to all necessary entities. But, so far the area only renders in the client for a while and then vanishes. Also, the CameraTargetChangedEvent
is sent by a localPlayer
after the selection process is begun but still this is attached to the host client's held item, so if a connected client tries to start a selection, the area of the selection can be changed by the host client by moving their camera.
- Is anything blocking you from making progress?
Yep, the battle with the multiplayer implementation
- List of PRs and opened/closed Issues
PRs :
- Something else (pictures of new content, code snippets, new wiki content, …)
Here is a 'crude' gif which I recorded while trying to implement a suitable UI for task selection(sorry about the noob standard of the gif, used byzanz for the first time)