Open Neloreck opened 1 year ago
Game already has debug HUD for AI states, both stalkers GOAP, monster state machines, and more. I'm currently in bed, so can't provide 100% accurate details, but:
rs_stats
(not sure if it's needed), and ai_debug
.ai_debug_goap
, etc.For the first iteration, we could port this view-only functionality to be displayed in the ImGui window rather than in-game HUD, then we could add functionality to change states, etc.
Sounds good. Many great things are just not documented
ai_dbg_stalker on
What is
Just suggesting adding something similar to weather editor debug window. Usually changing logic (evaluators/actions) and then debugging may be problematic because (1) logs are very noisy, (2) there may be many entities online, (3) mixed build + action log is not the most performant thing. While logging representation is good to track what happened, realtime observation could be few times better and generally faster.
Variant of implementation:
It may be challenging to display whole GOAP declaration at once, but implementation can be started with simple things.
What is needed: 1) Some dropdown/search/selector to pick any online stalker object OR optional toggle to display it for latest aim hover target 2) GOAP actions path to reach final goal, just few labels with arrows is usually enough to represent it 3) Details about current action -> action name, preconditions, state of evaluators, weights etc 4) Information about full current GOAP declaration for the object 5) Probably some controls to turn on / turn off GOAP graph state logging in mixed version of build
Possible problems: