Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#258 Behavior tree - prioritize player commands #312

Merged
merged 19 commits into from
Mar 1, 2025

Conversation

JernejHabjan
Copy link
Owner

@JernejHabjan JernejHabjan commented Mar 1, 2025

  • cleanup visualizer of TS types

  • Behavior tree rework - assigning orders in queue

  • Stopping current order mid-point

  • Dev only map for testing behavior trees

  • Stopping current order mid-point

  • Action system

    • added action system so actor orders can be determined against other actors - attack / gather / heal...
  • Behavior tree:

    • added more onCooldownReady checks
    • changed attack behavior to directly attackMove
    • removed some unwanted assignments of orders
  • behavior tree docs

  • working attack command

  • Reached location decorator

  • Stopping command after successful execution

  • Async IsInRange and working attack:

    • IsInRange is now promisey task until this is resolved - Promise for condition nikkorn/mistreevous#95
    • attack branch is working with await for cooldown
    • attack branch auto-stops if target is dead
    • added Log task for easier debugging
  • Move and Stop branches

  • Gather and Return resources branches

  • Build branch

  • Repair branch

  • Heal branch

  • AutoAssignNewOrder branch

  • Fixing behavior bugs

How it looks:

image

- assigning orders in queue
## Changes
- added action system so actor orders can be determined against other actors - attack / gather / heal...
## Changes
- added more onCooldownReady checks
- changed attack behavior to directly attackMove
- removed some unwanted assignments of orders
## Changes
- IsInRange is now promisey task until this is resolved - nikkorn/mistreevous#95
- attack branch is working with await for cooldown
- attack branch auto-stops if target is dead
- added Log task for easier debugging
Copy link

nx-cloud bot commented Mar 1, 2025

View your CI Pipeline Execution ↗ for commit e781803.

Command Status Duration Result
nx run build -- --base-href=/fuzzy-waddle/ ✅ Succeeded 20s View ↗
nx run-many --all --target=test ✅ Succeeded 45s View ↗
nx run-many --all --target=lint ✅ Succeeded 9s View ↗

☁️ Nx Cloud last updated this comment at 2025-03-01 20:32:46 UTC

@JernejHabjan JernejHabjan linked an issue Mar 1, 2025 that may be closed by this pull request
@JernejHabjan JernejHabjan changed the title #258 Behavior tree #258 Behavior tree - prioritize player commands Mar 1, 2025
@JernejHabjan JernejHabjan merged commit 2c29e60 into develop Mar 1, 2025
4 checks passed
@JernejHabjan JernejHabjan deleted the #258-behavior-tree branch March 1, 2025 20:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Actor behavior three - prioritize player commands
2 participants