HELP need an urget reply

4 views
Skip to first unread message

Conrad Xu

unread,
Nov 9, 2011, 6:44:55 AM11/9/11
to benv2423-2011
so what i planned to to was make various ai move along a grid of ai
points.

context: two ai morrison1 and morrison2

The flowgraph was made so that the data from the xml will toggle the
ai to do something. if the data was 1, then morrison1 would do
something but morrison2 would be told to remain idle. if the data was
2, then morrison2 would do somehting and morrison1 would be told to
remain idle.

problem is, although the debug and the FG shows this expected out
come, they both still move. i have a youtube link to this to show you
guys the problem.

http://www.youtube.com/watch?v=A_3xy-9dke8

any ideas on how i can solve this?

Rui Wang

unread,
Nov 9, 2011, 7:21:54 AM11/9/11
to benv2423-2011
Hi Conrad,

Could you please upload your flowgraph? i could not really read it
from your video.

Cheers,
Rui

Conrad Xu

unread,
Nov 9, 2011, 8:04:03 AM11/9/11
to benv24...@googlegroups.com
have you tried opening the youtube link on youtube and expanding the video?

but here is a picture of it

Rui Wang

unread,
Nov 9, 2011, 9:44:42 AM11/9/11
to benv2423-2011
Hi Conrad,

If you want one of the AIs remain idle - I guess you mean standing
still here - you can just simply use the "AI:AIStance" node. The
Enable and Disable functions in the entity node do not make your AI
stand still, but rather functionally enable or disable them.

I've made a simple flowgraph: http://benv2423rui.blogspot.com/2011/11/aigoto-and-aistance.html,
which does the following things -

When hitting "p" key, Civilian 1 walks towards target, and Civilian 2
remains still;
When hitting "o" key, Civilian 2 walks towards target, and Civilian 1
stops walking and remains still.

I believe you can easily replace those input key nodes with your xml
data.

Cheers,
Rui

Conrad Xu

unread,
Nov 9, 2011, 10:30:42 AM11/9/11
to benv24...@googlegroups.com
wow, thanks so much! im uploading another distress youtube video but its with ai actions such as yawning. im basically having the same problem.will upload a picture of my existing flowgraph along with it.

Conrad Xu

unread,
Nov 9, 2011, 11:29:59 AM11/9/11
to benv24...@googlegroups.com
the stance partially helped, but the problem is still persisting :L

i guess it was my fault for giving a bad example.

im going to have multiple ai's like more than 2 and the thing is. the engine is activated by pressing 'b'. now, once b is pressed, data from an xml graph will be taken. they are like 3,9,10,15,20,18,32.
what i gave my AI's was a range. math:Range. so like when the number is between 1 and 9, the civilian1 is able to move. when the number is 10 and 15, civilian2 is able to move while civilian1 who doesnt fill the requirement stands idle. but ive tried the stance and it doesnt work.

here is a link to the flowgraph with the debug that shows although the boolean is 0, the AI still moves.

This is a link to the AI action youtube video.
its a similar problem


Rui Wang

unread,
Nov 9, 2011, 5:48:28 PM11/9/11
to benv2423-2011
When the number is between '1-9', was the 'cancel' port of civilian2
activated?


On Nov 10, 3:29 am, Conrad Xu <conrad...@gmail.com> wrote:
> the stance partially helped, but the problem is still persisting :L
>
> i guess it was my fault for giving a bad example.
>
> im going to have multiple ai's like more than 2 and the thing is. the
> engine is activated by pressing 'b'. now, once b is pressed, data from an
> xml graph will be taken. they are like 3,9,10,15,20,18,32.
> what i gave my AI's was a range. math:Range. so like when the number is
> between 1 and 9, the civilian1 is able to move. when the number is 10 and
> 15, civilian2 is able to move while civilian1 who doesnt fill the
> requirement stands idle. but ive tried the stance and it doesnt work.
>
> here is a link to the flowgraph with the debug that shows although the
> boolean is 0, the AI still moves.http://i272.photobucket.com/albums/jj181/conradxu/help2.jpg
>
> This is a link to the AI action youtube video.
> its a similar problem
>
> http://www.youtube.com/watch?v=zQNz6pFnazI
>
> FG:http://i272.photobucket.com/albums/jj181/conradxu/help2AIaction-1.png
>
>
>
>
>
>
>
> On Thu, Nov 10, 2011 at 2:30 AM, Conrad Xu <conrad...@gmail.com> wrote:
> > wow, thanks so much! im uploading another distress youtube video but its
> > with ai actions such as yawning. im basically having the same problem.will
> > upload a picture of my existing flowgraph along with it.
>

Rui Wang

unread,
Nov 9, 2011, 5:52:20 PM11/9/11
to benv2423-2011
And also, please remove the Entity:Grunt1/Entity:Grunt2 nodes.

From your FG they are functionally disabled when you enter the game -
that could be why they would just do something randomly.

Conrad Xu

unread,
Nov 9, 2011, 6:18:38 PM11/9/11
to benv24...@googlegroups.com
yeh i took them away. Oddly enough, the AI is starting to behave now. ive got it to cancel its action by adding math:equal. i did that before but it didnt work. its really messed up but yeh, i think it should be better now. thanks for the FG picture about the AI stance, it helped understand what i needed to do

Vinh Nguyen

unread,
Nov 9, 2011, 6:26:21 PM11/9/11
to benv2423-2011
Hi all,

Rui is on to it I think. You need to cancel the sync'ing of your other
AI that you wish to stop.
If you want more than 2, you could use a multiplexer to control who
moves and who stops.

I see a couple of ways you could do this. The easiest I've posted a
pic of on my blog:
http://benv2423-2011vn.blogspot.com/2011/11/re-multiple-ai-stopstart-question.html
1) attach (link) tag points to each AI. AI1 is the parent, Tagpoint1
is the child. etc..
Then move the tag point in the direction you want your AI to walk
(assuming directly in front, so 5m in "y" direction)
However you could do a star-style graph, they could all move out from
a centre point, or whatever.
Then as you read your xml file, you check what range it is in (like
you've been doing), then assign a slot in the multiplexer for it.
Upon exiting multiplexer, cancel all movement (this will stop any of
the AI that is moving)
Then sync the selected one (this will move the one you want).

Note that this can only move 1 at a time. Something that you described
you are trying to achieve earlier.

Method 2) continuously sync each AI to their respective tagpoints
(which are detached by the way).
To do this upon "success" of syncing AI:GoTo (or AI:GoToSpeedStance),
loop back to "sync" via a logic:any node.
If the AI is standing on its tagpoint it will just stand still. As
soon as the tagpoint moves, it will chase.
Now all you need to do is move your tagpoints according to what range
is specified by your xml "value". You will again need a multiplexer to
control which tagpoint to move.

Cheers

Conrad Xu

unread,
Nov 10, 2011, 4:18:40 AM11/10/11
to benv24...@googlegroups.com
i see the logic there. i'll try doing that right now.

i have another question though.
I have a FG and it gets data from the xml. The data is put into a range, if it fits the requirements then it is sent to make an entity change its material parameters. it works, but the problem is, when the value doesnt fit the requirements, if the set:string which i used to carry the details of the material was previously 1, then the boolean wont change to 0.
how do make it reset to 0 when the math:range says 'no'?

Conrad Xu

unread,
Nov 10, 2011, 6:07:06 AM11/10/11
to benv24...@googlegroups.com
thanks vinh, i changed the way my fg was setup so that the tagpoint moved and the ai is constantly chasing it. it saved me so much space and is flawless. it also gave me room to add other charts such as ai actions without it interferring with the movement of the ai

Vinh Nguyen

unread,
Nov 10, 2011, 6:54:54 AM11/10/11
to benv2423-2011
Good to hear.

Regarding your in range output giving 0, you need to send the blue
boolean output from math:inrange to a math:from boolean. Then true can
point to "change material to THIS" and false can point to "change
material to THAT".

Cheers

On Nov 10, 10:07 pm, Conrad Xu <conrad...@gmail.com> wrote:
> thanks vinh, i changed the way my fg was setup so that the tagpoint moved
> and the ai is constantly chasing it. it saved me so much space and is
> flawless. it also gave me room to add other charts such as ai actions
> without it interferring with the movement of the ai
>
>
>
> On Thu, Nov 10, 2011 at 8:18 PM, Conrad Xu <conrad...@gmail.com> wrote:
> > i see the logic there. i'll try doing that right now.
>
> > i have another question though.
> > I have a FG and it gets data from the xml. The data is put into a range,
> > if it fits the requirements then it is sent to make an entity change its
> > material parameters. it works, but the problem is, when the value doesnt
> > fit the requirements, if the set:string which i used to carry the details
> > of the material was previously 1, then the boolean wont change to 0.
> > how do make it reset to 0 when the math:range says 'no'?
>
> >http://i272.photobucket.com/albums/jj181/conradxu/car.jpg
>
> > On Thu, Nov 10, 2011 at 10:26 AM, Vinh Nguyen <vinh_x_ngu...@hotmail.com>wrote:
>
> >> Hi all,
>
> >> Rui is on to it I think. You need to cancel the sync'ing of your other
> >> AI that you wish to stop.
> >> If you want more than 2, you could use a multiplexer to control who
> >> moves and who stops.
>
> >> I see a couple of ways you could do this. The easiest I've posted a
> >> pic of on my blog:
>
> >>http://benv2423-2011vn.blogspot.com/2011/11/re-multiple-ai-stopstart-...

Conrad Xu

unread,
Nov 10, 2011, 7:02:33 AM11/10/11
to benv24...@googlegroups.com
oh i did that but it still didnt work. i found the problem was with math:counter. it was set to 0 so it wasnt looping the flowgraph. when i looped the FG, the materials automatically updated itself.

another question though.

about the 3, 30second videos. were they the ones that we had to do in week 1,2 and 3? or what? i also need an explanation by what "demonstrating three distinctive and significant approaches to analyzing data using Sandbox2 and the flowgraph" is. ><

Conrad Xu

unread,
Nov 10, 2011, 6:25:06 PM11/10/11
to benv24...@googlegroups.com
im looking the criteria for the 3rd clip. but i cant find it anywhere. what am i supposed to do for the third clip?
Reply all
Reply to author
Forward
0 new messages