Skip to content

NavMesh Place name support - #2092

Merged
AdamTadeusz merged 19 commits into
NeotokyoRebuild:masterfrom
AdamTadeusz:376_navPlaceNameHudSupport
Aug 31, 2026
Merged

NavMesh Place name support#2092
AdamTadeusz merged 19 commits into
NeotokyoRebuild:masterfrom
AdamTadeusz:376_navPlaceNameHudSupport

Conversation

@AdamTadeusz

@AdamTadeusz AdamTadeusz commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Description

NeoAssets PR NeotokyoRebuild/neoAssets#132

Adds a hud element that displays the name of the closest nav area's place name, if any. Intended for incorporating call-outs from callout maps into the navigation meshes.

Also adds a command for displaying all nearby place names

placeCallouts.mp4

Toolchain

  • Windows MSVC VS2022

@AdamTadeusz
AdamTadeusz marked this pull request as draft August 24, 2026 20:22
@nullsystem nullsystem added the Tournament Priority Issues to be prioritized for the upcoming NT;RE tournament label Aug 25, 2026
@DESTROYGIRL DESTROYGIRL added the UI/HUD Relates to the HUD, NeoUI, menus, etc label Aug 28, 2026
@AdamTadeusz AdamTadeusz added the Changes in neoAssets This PR depends on changes in the neoAssets repository. The relevant PR should be in the description label Aug 28, 2026
@AdamTadeusz
AdamTadeusz marked this pull request as ready for review August 28, 2026 19:50
@AdamTadeusz
AdamTadeusz requested review from a team and removed request for a team August 28, 2026 19:50
@AdamTadeusz
AdamTadeusz marked this pull request as draft August 28, 2026 19:52
@AdamTadeusz
AdamTadeusz marked this pull request as ready for review August 28, 2026 19:56
@AdamTadeusz
AdamTadeusz requested a review from a team August 28, 2026 19:56
@AdamTadeusz

Copy link
Copy Markdown
Contributor Author

I'm not happy with how client side the place names are loaded within the same function that reads the nav file, ideally that function should take a pointer to a CUtlVector and be moved to a separate file, with the original file calling it then going through all the place names and configuring how they look etc. but I'm tired.

@AdamTadeusz
AdamTadeusz marked this pull request as draft August 28, 2026 20:17
@AdamTadeusz
AdamTadeusz marked this pull request as ready for review August 28, 2026 20:37
@AdamTadeusz

Copy link
Copy Markdown
Contributor Author

Ok fixed some last minute issues and included a video showing the feature

@sunmachine sunmachine self-assigned this Aug 29, 2026
Comment thread src/game/client/neo/c_neo_point_world_text.cpp Outdated
Comment thread src/game/client/neo/ui/neo_hud_place_name.cpp
Comment thread src/game/server/nav_area.cpp Outdated
Comment thread src/game/server/neo/neo_player.cpp Outdated
Comment thread src/game/client/neo/c_neo_point_world_text.cpp Outdated

@sunmachine sunmachine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nitpick

Comment thread src/game/client/neo/c_neo_point_world_text.h
AdamTadeusz and others added 6 commits August 29, 2026 06:21
set text length after copy

Co-authored-by: Dan Peavey <sunMachine@users.noreply.github.com>
Update place nav area counts

Co-authored-by: Dan Peavey <sunMachine@users.noreply.github.com>
remove incrementreferencecount

Co-authored-by: Dan Peavey <sunMachine@users.noreply.github.com>
pragma once

Co-authored-by: Dan Peavey <sunMachine@users.noreply.github.com>
@sunmachine
sunmachine self-requested a review August 29, 2026 16:46
sunmachine
sunmachine previously approved these changes Aug 29, 2026

@sunmachine sunmachine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

BAM

Comment thread src/game/client/neo/c_neo_point_world_text.cpp
Comment thread src/game/server/neo/neo_player.cpp Outdated
Comment thread src/game/client/neo/ui/neo_hud_place_name.cpp
Comment thread src/game/server/nav_mesh.h Outdated
Comment thread src/game/client/neo/ui/neo_hud_place_name.cpp Outdated
Comment thread src/game/client/neo/ui/neo_hud_place_name.cpp
Comment thread src/game/client/neo/ui/neo_hud_place_name.cpp Outdated
…averageCenter, reference places, cap off placename string with a null terminator, increment navAreaCount beforehand

@sunmachine sunmachine left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nav-editing bug. I really hate in-game nav editing and review. Fuck this process. I'm going to make this completely obsolete mark my words.

Comment thread src/game/server/nav_file.cpp
@AdamTadeusz

Copy link
Copy Markdown
Contributor Author

@sunmachine seems to me like clamping the place name before use solves this issue right?

@AdamTadeusz

Copy link
Copy Markdown
Contributor Author

A long input is one thing, an empty is another. I figured this would also come in handy instead of relying on nav_place_pick ing a nav area without a place to allow clearing places with the paint function

@AdamTadeusz
AdamTadeusz requested a review from sunmachine August 30, 2026 22:43
@sunmachine

sunmachine commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

@sunmachine seems to me like clamping the place name before use solves this issue right?

I think so! But I am broadly not keen on tying user-facing strings as IDs either (it's not a problem now but it's a localization smell eventually, assuming that's a thing we want to do one day). Good practice, not necessary for this "fix", just calling the smell as I saw it crop up as an actual editing bug.

Feel free to dismiss the review or update with the fix as you prescribed!

@AdamTadeusz

Copy link
Copy Markdown
Contributor Author

@sunmachine seems to me like clamping the place name before use solves this issue right?

I think so! But I am broadly not keen on tying user-facing strings as IDs either (it's not a problem now but it's a localization smell eventually, assuming that's a thing we want to do one day). Good practice, not necessary for this "fix", just calling the smell as I saw it crop up as an actual editing bug.

Feel free to dismiss the review or update with the fix as you prescribed!

Yep 👍 it's in 448c909

@sunmachine

sunmachine commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

@sunmachine seems to me like clamping the place name before use solves this issue right?

I think so! But I am broadly not keen on tying user-facing strings as IDs either (it's not a problem now but it's a localization smell eventually, assuming that's a thing we want to do one day). Good practice, not necessary for this "fix", just calling the smell as I saw it crop up as an actual editing bug.

Feel free to dismiss the review or update with the fix as you prescribed!

Yep 👍 it's in 448c909

Ohhh my bad I had no idea! The UI didn't annotate the commit in the first place like I expected it would, and didn't see the change. 🤪

@AdamTadeusz
AdamTadeusz merged commit dbcf135 into NeotokyoRebuild:master Aug 31, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Changes in neoAssets This PR depends on changes in the neoAssets repository. The relevant PR should be in the description Tournament Priority Issues to be prioritized for the upcoming NT;RE tournament UI/HUD Relates to the HUD, NeoUI, menus, etc

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants