Announcement

Collapse
No announcement yet.

[Request] Behavior Trees - Simple Functions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    You are right, I did zero that out to check for changes. The thing is, the tree seems to find the player when he comes within range, however he does not start to pursue the player..
    Mike "Z"
    UI / Game Designer
    LinkedIn

    Comment


      #17
      I went to look at my blueprint because I did get this to work but when I went to my last project the work I had done was gone. I did have some problems when it was working. Whenever the bot would follow my player my computer would lock and completely stop working for about 5 seconds once I had the task manager up while it was running and for that short period of time Unreal was not responding. If I was not near the bot and it was not following me I did not have any problems but as soon as the bot started following me my computer would competley lock for 5 second or more. I have not had that problem with any other things I have done I have done a few other Behavior trees and they worked with not problem. I am going to redo this tut and see what is going on I suspect something is not right in ArgoCheck maybe something with the arrays.

      Comment


        #18
        So I have gone back and done this from scratch 2 more times using the 3rd person BP mode and both times it failed. Is there something that i am missing here that differs greatly from the top down that would cause this not to work?
        Mike "Z"
        UI / Game Designer
        LinkedIn

        Comment


          #19
          Have you actually tried stepping though your blueprints and seeing what values are being used? Its a good idea to get used to debugging your own code, so this sounds like an ideal opportunity. Set a breakpoint in the event nodes (F9) and step through each node, seeing what inputs are being used (hover the mouse over the pins from the previous nodes to see their value). See what the values are and think if they look right or not. Usually I see errors like this because one of my casts is going wrong (i.e. its not the correct class to cast to etc). So make sure all those things are returning values that make sense.

          One example of doing this, is that I was having an issue with my BT until I realized that the angle of the AIController is not the same as the angle of the AICharacter it is controlling. Just an example of silly things that catch you out. So my recommendation is to try using your own debug skills to find this. Be methodical and check every input against what you expect. If something is off, go back and figure out where it went wrong.

          Comment


            #20
            I did the same thing, following tutorial a few times. This is what is missing from the tutorial - set the desired object types that the multisphere trace uses:
            Click image for larger version

Name:	agro.png
Views:	1
Size:	68.6 KB
ID:	1056414

            Comment


              #21
              Resolved

              Ok so I had already done that but I guess I was just missing something very simple. I added the debug features of the trace so I could see how it was functioning and it was not functioning. I had narrowed it down to that point. I then realized that the line trace was using visibility and not camera. After I made that change I was able to get it working. I went back through my other attempts and I missed this same drop down every time!! But in any case it looks like it works as of an hour ago.

              The next stage is to really work on understanding what is happening here so I can modify it to suit my needs.

              Thanks everyone for all the help!


              Originally posted by Warmak View Post
              I did the same thing, following tutorial a few times. This is what is missing from the tutorial - set the desired object types that the multisphere trace uses:
              Last edited by mikezteh69; 09-08-2014, 11:57 AM. Reason: Added title
              Mike "Z"
              UI / Game Designer
              LinkedIn

              Comment

              Working...
              X