Skip to content

Fix ladder NavMesh in rise roof backrooms#106

Open
sunzenshen wants to merge 1 commit intomasterfrom
bot-navmesh-rise-ladder-backroom-fix
Open

Fix ladder NavMesh in rise roof backrooms#106
sunzenshen wants to merge 1 commit intomasterfrom
bot-navmesh-rise-ladder-backroom-fix

Conversation

@sunzenshen
Copy link
Contributor

Requires ladder climbing PR to work:
NeotokyoRebuild/neo#1633

@sunzenshen
Copy link
Contributor Author

Why this PR

The Rise roof backrooms are never used because the ladder connection is not present:

Screenshot 2026-02-26 221129

Also, the bots tend to run into the fences/door because the navmesh intersects the obstacles:

Screenshot 2026-02-26 221249 Screenshot 2026-02-26 221217

(the middle line is actually a cutting guide, not a break in the NavArea)

Manual fixes implemented

ran nav_build_ladder:

Screenshot 2026-02-26 221143 Screenshot 2026-02-26 221233 Screenshot 2026-02-26 221257

Known Issues

The ladder going to the window cleaner drop route is completely disconnected:

Screenshot 2026-02-26 221322 Screenshot 2026-02-26 221353

(I didn't bother connecting these stairs, because previous experiments showed that bots cannot stay still on the ledge walks and will plummet to their doom. Without further behavioral modifications, the bots cannot safely drop down the side of the building.)

Also, while the bots drop down the ladder in a relatively smooth manner, the bots struggle to climb up this ladder, because they veer off to the side and fall back down:
Screenshot 2026-02-26 230251
Screenshot 2026-02-26 225847

Also generally, this route doesn't appear to be used much, because it's relatively out of the way of any points of interest.

@sunzenshen sunzenshen requested a review from a team February 27, 2026 06:16
Copy link
Collaborator

@Rainyan Rainyan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, while the bots drop down the ladder in a relatively smooth manner, the bots struggle to climb up this ladder, because they veer off to the side and fall back down

I had better luck doing this kind of thing to stop them from getting stuck (and I guess they're more likely to veer against the right wall than fall off to the left):

Image

However, maybe it's related to the bots trying to keep some space, or to the behavior where they start aiming behind themselves, but if I stayed too close to the ladder as the pack leader, they would have more trouble climbing than if I ran ahead and they had to catch up.

@Rainyan Rainyan requested a review from a team February 28, 2026 21:58
@sunzenshen
Copy link
Contributor Author

I also have one theory that maybe we need to have the bots press forward some more after they clear the ladder height, though this same ladder style doesn't seem to have that much trouble going up in Threadplate (but ironically has some more trouble going down a few ladders in that map)

@AdamTadeusz
Copy link
Contributor

I had more luck making the bots climb up the ladder when changing the ladder climbing functionality to assume the bot is still climbing the ladder while it is in the air, it seemed like before it was returning too quickly and the bot would move to the side to possibly re-align itself with the ladder again, though this was a quick and dirty test and I'm not suggesting such a change be made to the ladder climbing logic

image
8mb.video-ruC-m6eTOhZo.mp4

With the ladder in the lift there is an issue where a bot can get stuck crouching underneath a ladder, making the bot stand up if the bottom of the ladder is above the bot pos helps with that

8mb.video-h4V-gExzyKQD.mp4

Again I stress that this is just a quick and dirty code snippet that I came up with that shouldn't be added, I'm just putting it here to potentially help with any further investigation into why this happens

Also sorry for the video quality, had to use a compressor to get it down below 10mb, and the clipping tools records videos in very bad quality to begin with for how large the video sizes are

@sunzenshen
Copy link
Contributor Author

sunzenshen commented Mar 7, 2026

Thanks for the analysis! I made a note to take a look at the ladder climbing code again. I'm not extremely confident about merging the ladder connection just yet due to the reliability (it may be arguably better to have the bots not consider the route with the broken connection), and it might be a good idea to pair this PR with a potential ladder climbing fix.

@sunzenshen
Copy link
Contributor Author

Success chances slightly improved by NeotokyoRebuild/neo#1797

@sunzenshen
Copy link
Contributor Author

sunzenshen commented Mar 13, 2026

Depends on NeotokyoRebuild/neo#1830 to enhance the reliability of traversing the ladder referenced in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants