[Alpha 10] AI check order change

User avatar
GFX47
Dev
Dev
Posts: 2914

[Alpha 10] AI check order change

Post#1 » 13 Sep 2017, 14:06

As you may already know, the way AIs are checked is changing in Alpha 10.

Before Alpha 10, it was checked from left to right using the nodes horizontal position.

Alpha10_AI_check_before.jpg
Alpha10_AI_check_before.jpg (109.27 KiB) Viewed 3050 times


From Alpha 10, it will be checked anticlockwise using the parent link angle.

Alpha10_AI_check_after.jpg
Alpha10_AI_check_after.jpg (108.57 KiB) Viewed 3050 times


Be sure to check and eventually fix your AIs when updating to Alpha 10!

User avatar
LuBeNo
Autonomous Entity
Autonomous Entity
Posts: 532

Re: [Alpha 10] AI check order change

Post#2 » 13 Sep 2017, 14:20

What if 2 nodes share the exact same angle, but one connection is longer? (the snap to grid encourages this)
It should fall back to left to right then!?
2 nodes.png
2 nodes.png (1.99 KiB) Viewed 3045 times


What if 2 nodes share the exact same position. (is it possible - should it be possible?)
Image
My algorithm of life: if(self.tired) sleep(); else if(self.hungry) eat(); else follow(Jesus);

User avatar
GFX47
Dev
Dev
Posts: 2914

Re: [Alpha 10] AI check order change

Post#3 » 13 Sep 2017, 14:26

It's currently not handled, resulting in an undetermined behavior (do it at your own risks!).
I'll handle it to fallback to the left to right node position in the next version.

User avatar
Kanishka
Skynet
Skynet
Posts: 1421
Contact:

Re: [Alpha 10] AI check order change

Post#4 » 13 Sep 2017, 14:57

GFX47 wrote:It's currently not handled, resulting in an undetermined behavior (do it at your own risks!).
I'll handle it to fallback to the left to right node position in the next version.


Tested... The Node closer to parent is evaluated first.
Fixes break an AI more than bugs do. :ugeek:

Gladiabots Off-Topic Chat


My Stats: Kanishka_RN3;Kanishka_MiPad

User avatar
GFX47
Dev
Dev
Posts: 2914

Re: [Alpha 10] AI check order change

Post#5 » 13 Sep 2017, 14:58

It actually depends on other factors that may make it look random.

Miojo
Script
Script
Posts: 37

Re: [Alpha 10] AI check order change

Post#6 » 13 Sep 2017, 21:52

How about nodes above the parent ?

User avatar
GFX47
Dev
Dev
Posts: 2914

Re: [Alpha 10] AI check order change

Post#7 » 13 Sep 2017, 22:06

The angle is computed between the vertical above the parent and the link, anticlockwise.

Jeffrey Harpen
Automaton
Automaton
Posts: 122

Re: [Alpha 10] AI check order change

Post#8 » 14 Sep 2017, 13:53

Damn, I have to rearrange all my AIs... :(
On the other hand it's good opportunity to get rid of some garbage and make my AIs clean and tidy. :) (Finally!) ;)

mcompany
Autonomous Entity
Autonomous Entity
Posts: 872

Re: [Alpha 10] AI check order change

Post#9 » 14 Sep 2017, 18:55

http://nooooooooooooooo.com/

Fine, I'll see what I have to fix

Return to “Devlog”

Who is online

Users browsing this forum: No registered users and 0 guests