#multiple navigation layers in a tile map
1 messages · Page 1 of 1 (latest)
this naming convention kind of sucks
i think the layers are being squished down onto each other in the tile map instead of being seperate layers
even when i put them on different layers i still get an error for putting them on the same layer
E 0:00:01:426 _build_step_find_edge_connection_pairs: Navigation map synchronization error. Attempted to merge a navigation mesh polygon edge with another already-merged edge. This is usually caused by crossing edges, overlapping polygons, or a mismatch of the NavigationMesh / NavigationPolygon baked 'cell_size' and navigation map 'cell_size'. If you're certain none of above is the case, change 'navigation/3d/merge_rasterizer_cell_scale' to 0.001.
<C++ Source> modules/navigation/3d/nav_map_builder_3d.cpp:151 @ _build_step_find_edge_connection_pairs()
(heres the error i assume its for the reason i gave above)
Try asking in #🧭┃navigation , tends to be an advanced topic where all the experts usually don't hang out at #❓┃quick-help
oh ok thanks
Yw
@frank holly
@strong parcel have you used NavigationServer2D.map_create()?
no
well then you havent tried to debug it with chatgpt dumbass
thats the first thing he told me
say it
i cant bro
can you stop being rude
it's against the rules in this server
nah its fine
im sorry rice
michel just has a lot of personality hes not rude
btw chatgpt sucks at GDScript
can't properly differentiate between godot 3 and 4
😭
pretend youre gonna set him free
i think its cause youve never made anything harder than a 2d platformer
nuh uh
proof?
in any case you're burying the actual question
oh you just wait lil bro
have you looked into the NavigationServer2D thing
seemed promising when chatgpt said it.
thats for like uhhh
also for your information, posting AI-generated solutions is also against the rules here
you're not being helpful
So I'm a little confused as to the problem. I just took a minute to learn how Navigation2D works with TileMaps.
Add your two layers. Only add the navigation data to the layers which you want to be able to be pathed. I'll send some screenshots
nah but if he bothers you feel free to ping the moderators
I gotta go
i want 2 seperate areas to be pathed depending on the layer i select on the navigation agent
Oh sorry, I mean I had a hard time reproducing the issue you were experiencing. I understand what you are trying to do
well i dont know if this would work anyways
im just trying to find a way to have 2 seperate navigation layers on the same tile map
In this screen, you can see I've added two navigation layers to my tileset. In the Tileset, it's a little confusing, but Layer0 represents the Nav layer for which only Navigation group 1 is selected, and Layer 1 is the one where only group 2 is selected
I have only made a polygon around the brick for Layer 1, so only NavigationAgents which have Navigation Group 2 will path here
With this grass tile, Only those agents with Group 1 will path here
wait i think i get it
im so dumb
i should have 3 layers , 1 for things everyone can go to, 1 for air, and one for, ground
cause stacking layers breaks it i think
You shouldn't get an error, it should just work
here wait
in your example
let the one that walks on grass also walk on the stone
and i think youll get an error
the same one im getting
Sorry, I had the wrong idea.
But, you can achieve that functionality not by making it so that both layers have pathing, but by putting both layers on one navigationagent
Make sense?
This is saying that NavigationAgent2D # 1 is allowed to path on both group 1 and group 2. NavigationAgent2D # 2 can only path on group 2
Sure thing. Have fun! Hope I helped 😆
Myersguy did you just teach yourself 2d navigation real quick to help out?
I sure did
thats some dedication
Ehh I've already played with 3D nav. It was just learning the tilemaplayers mostly
still respect
michel vs learning
damn i fixed it, what a stupid issue, anyways, how do i change navigation_agent_2d.navigation_layers in the code?
like
idk what the format is
is it an array?
says int but like
how would that work
i need multiple layers active
oh wait
bit field
thats
thats a dumb way to format this
shouldve been an array