question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Possibility of override movement logic?

See original GitHub issue

Hi! I’m sorry if I’m asking a stupid question. As I read in the FAQ: “The graph calculates distance between two actions, adding that cost automatically. Actions don’t need to be aware of each other, or their relative position in the graph, making them simpler.” Where would it be possible to redefine the logic of moving to the target and calculating the cost of this movement? As I understand it, now everything is based on lifetime logic, and I would like to adapt it to turn based grid logic.

P.s. I found IAgentMover on Life Cycles of Agent (https://goap.crashkonijn.com/general/lifecycle) but don`t see this interface inside project(

Issue Analytics

  • State:open
  • Created 3 months ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
crashkonijncommented, Jul 13, 2023

Hi there!

I just pushed the branch I was working on, with the demo scene as I have shown before. Our new house is taking too much time and I just can’t find the energy to work on this at the moment.

I will continue with this, but it’s probably going to take a while.

So what the demo scene already does:

  • Example of turn based handling
  • Example of limiting x movement per turn, completing paths over multiple turns

What it doesn’t yet do:

  • Optimized handling of the agents, each is still called each frame even when it’s not their turn

Hopefully this is enough to get you going (for now). I will keep you posted!

1reaction
crashkonijncommented, Jul 5, 2023

Hi there!

I wanted to give you an update. I did get turns somewhat working, although it’s not quite how I’d like it to work yet.

Tomorrow I’m getting the keys to my new house, so I wont be able to continue until next Monday.

Like I said, it’s taking a bit longer than I expected but I want to do it properly 😃

goap_turns

Read more comments on GitHub >

github_iconTop Results From Across the Web

Question Skip Logic | SurveyMonkey Help
Question Skip Logic enables you to skip respondents to a future question or page ... You must move respondents forward through the survey,...
Read more >
Do you feel like you have logical override control of your ...
No as no one can control their emotions. Emotions and logic don't go together. The one thing you do have control over? Your...
Read more >
idle animation overrides attack animation
I have a problem with animation overriding.. my question is how to fix idle animation overriding ... == true motion = move_and_slide(motion, ...
Read more >
Scheduling and the 'Progress Override v Retained Logic' ...
When the Progress Override option is chosen, work is allowed to proceed on the out-of-sequence activity immediately and the logic links from its ......
Read more >
Understanding Networked Movement in the Character ...
This function surrounds PerformMovement with the necessary logic to record movement as the character performs it, then submits the move to the server....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found