schleicher on 25/1/2018 at 21:48
Hi
Is it possible to avoid that NPCs for who I defined a route get stuck
at walls ? Any tricks etc. ?
Example for what happened the last time: An NPC has to enter a room, walk some steps, and then leave the room and go outside and follow some TrolPts in the environment.
But: I saved the game while the NPC was in the room. After reload the NPC seems to forget the TrolPT near the door. Instead
he runs against a wall in the room.
GORT on 26/1/2018 at 00:51
Ok. First off, how are your PatrolPts laid out? Also, did you pathfind the mission after they were placed?
schleicher on 26/1/2018 at 01:01
1. The PatrolPts are placed as a "loop". Outside of the house the NPC walks
through some Points and then into the house and then again.
2. Sure. This part of the mission is finished and works well.
But then I found the problem by chance as I described.
It seems, after reload the game the NPC had "forgotten" the next Point (at the door)
and instead choosed an point outside of the house.
GORT on 26/1/2018 at 05:00
Hmmm... Just to make sure, have you check the links between the points? Also, could you please show me a layout of the room and where the points are placed?
(Just want to get the small stuff out of the way.)
Daraan on 26/1/2018 at 15:39
The AI should have a link to their current patrol point. So forgetting it, I would say no, but maybe after the reload thinks it has reached the current one and targets the next? But why the pathing problem then....hmm is it the door?
The area of patrol points is kinda vague from my experience.
Maybe load the savegame in DromEd and check where the AI wants to go or move the TrolPoints a bit arround further outside the door the other more inside.
Once I made the mistake that I placed the TrolPoints to high 8 units above the ground and the AIs were :confused:
schleicher on 26/1/2018 at 18:29
JFI: The described problem is just an example. I am in general interested in solutions. Because it happens sometimes, even
in the original-missions, that NPS stuck at some positions. My question is, whether there are technics and tricks, to
minimize the problem at least a bit.
Phantom on 26/1/2018 at 18:53
schleicher, I believe your issues are caused by the way your routes are laid out. For example, it appears you have a ramp that inclines from the bottom of the image up to a higher room. Inside the room you have TrolPt4, but TrolPt3 is located on the lower level to the left of the room. The AI doesn't automatically know that it needs to go to the bottom of the ramp first before going toward TrolPt4. The AI will attempt the shortest open path toward the next TrolPt, which in this case probably has him stuck at the wall trying to figure out the correct route. Try moving TrolPt4 to the bottom of the ramp and creating a TrolPt5 in the room. You may still have an issue with the AI getting from TrolPt5 to TrolPt1, just imagine how a person would go straight from one point the next and adjust your markers accordingly.
schleicher on 26/1/2018 at 21:35
Thank you. So it seems, the AI is capable to find the route as long it is not interrupted by save/load.
I will add some Points to "help" the AI.
Yandros on 27/1/2018 at 00:35
That is often necessary or at least helpful when constructing patrol routes. You typically can't place TrolPts only at the stopping points, you have to help them out some.