I've nearly finished rolling my own limited functionality smart objects. I should be done soon. I've written a basic system. I need to remember to hook NPC deaths to get rid of their reservations cleanly. Will it work? 🤷‍♂️ Unreal's didn't serve my needs, being flaky and all, so what have I got to lose? This might even have lower overhead.

I set up a new state tree, cloning the old one, and have rewritten 5 functions. 2 to go.

Although I planned on keeping the old state tree around, I'm just keeping a copy for a bit. If this works, I won't be needing it.

#UE5 #RPG #StateTree #SmartObjects

A state tree stubbornly insists on running a step without any intended path to it at the time when it runs.

A state tree task runs, a subtask uses values the parent sets, and it calls its own function. When the subtask's function Return Node fires, it re-triggers the parent task like it was a FinishTask. I've got print statements at every exit and entry. It runs until it exits the subtask's function, then restarts. Unexpected and unhelpful. I must not create functions in state tree tasks? This code is about to look ugggggly.

Maybe it works better in 5.7. If only the 5.7 editor was stable in Ubuntu or Linux Mint, I might not need to uglify my code. 😑

#UE5 #RPG #StateTree

It'd be better if UE #StateTree can dispatch events to tasks, instead of letting tasks to interate the event queue themself.

I implemented such a dispatcher. Tasks can register event handlers when entering a state, and unregister them on exit. Received events are first dispatched to tasks, then transitions.

ProcessEvent на стероидах: сериализуемые вызовы функций в UE5 или как я готовлю материал для статей

В предыдущих двух статьях я разбирал K2Node - как устроены ноды Blueprint изнутри - и Blueprint VM : байткод, опкоды, стековую машину. Следующая на очереди - Reflection: UClass, UFunction, FProperty и вся система метаданных, на которой стоит движок. Готовясь к ней, я решил, что лучше всего разобраться в теме поможет практика. И тут подвернулся юзкейс: мне нужен был способ сконфигурировать вызов произвольной функции в редакторе и выполнить его в рантайме. Без хардкода, без кодогенерации, без десятка одинаковых обёрток. Так появился FunctionHandler - плагин для UE 5.6, в котором пригодилось всё, о чём я писал раньше: CustomThunk'и, ExpandNode, работа с FFrame и MostRecentProperty. Эта статья - про то, как всё сошлось в одном плагине, какие решения сработали, и на какие грабли я наступал.

https://habr.com/ru/articles/1010256/

#Кейс #Unreal_Engine #Unreal_Engine_5 #Программирование #C++ #Blueprint #StateTree #ProcessEvent #плагин

ProcessEvent на стероидах: сериализуемые вызовы функций в UE5 или как я готовлю материал для статей

В предыдущих двух статьях я разбирал K2Node - как устроены ноды Blueprint изнутри - и Blueprint VM : байткод, опкоды, стековую машину. Следующая на очереди про рефлексию: UClass, UFunction, FProperty...

Хабр
Good Morning!
🌳
📜 Pine Tree, tree of North Carolina (1963)
🎨 Adobe Fresco 🗓 April 2024
✅ States done: FL, MA, NY, TN
🌳
#digitalwatercolor #statethings #statesymbol #pinetree #easternwhitepine #genuspinus #statetree #adobefresco #northcarolina #repyourstate
Good morning! Came out better than the messy passionflower. 😆
🌳
📜 Tulip Poplar, tree of Tennessee (1947)
🎨 Adobe Fresco 🗓 March 2024
✅ States done: FL, MA, NY
🌳
#digitalwatercolor #statethings #statesymbol #tulippoplar #poplar #statetree #adobefresco #tennessee
Happy lunchtime! 😆 #latestart
Next thing... Vote! 👇⬇️✅
📜 Sugar Maple, tree of New York (1956)
🎨 Adobe Fresco 🗓 Mar 2024
#digitalwatercolor #adobefresco #statesymbol #sugarmaple #statetree #newyork #statethings
Good Morning!
📜 Sabal Palm, tree of Florida
🎨 Adobe Fresco 🗓 March 2024
#digitalwatercolor #florida #statethings #statesymbol #sabalpalm #statetree #adobefresco

New video up on the channel:
UE5 MassAI Tutorial - NPCs, StateTrees and ZoneGraphs

https://www.youtube.com/watch?v=GN1HMtmNTv4

#UE #UE5 #UnrealEngine #MassAI #UnrealMassAI #Tutorial #YouTube #YT #ZoneGraph #AI #NPC #StateTree

UE5.3 MassAI Tutorial - NPCs, StateTrees, ZoneGraphs

YouTube