NavMesh Place name support - #2092
Conversation
|
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. |
|
Ok fixed some last minute issues and included a video showing the feature |
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>
…ide and textXPos textYPos
…adeusz/neo into 376_navPlaceNameHudSupport
…averageCenter, reference places, cap off placename string with a null terminator, increment navAreaCount beforehand
sunmachine
left a comment
There was a problem hiding this comment.
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.
|
@sunmachine seems to me like clamping the place name before use solves this issue right? |
|
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 |
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. 🤪 |
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