#multiple navigation layers in a tile map

1 messages · Page 1 of 1 (latest)

strong parcel
#

i add another navigation layer and it starts freaking out

#

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)

fiery owl
#

Try asking in #🧭┃navigation , tends to be an advanced topic where all the experts usually don't hang out at #❓┃quick-help

strong parcel
#

oh ok thanks

fiery owl
#

Yw

strong parcel
#

@frank holly

worn sedge
#

@strong parcel have you used NavigationServer2D.map_create()?

strong parcel
#

no

worn sedge
#

well then you havent tried to debug it with chatgpt dumbass

#

thats the first thing he told me

strong parcel
#

michael

#

forgive me

#

youre uhhh

#

nv

#

m

worn sedge
#

say it

strong parcel
#

i cant bro

frank holly
#

it's against the rules in this server

strong parcel
#

nah its fine

worn sedge
#

im sorry rice

strong parcel
#

michel just has a lot of personality hes not rude

frank holly
#

can't properly differentiate between godot 3 and 4

worn sedge
#

for me he can

#

you just have to motivate him enough

strong parcel
worn sedge
#

pretend youre gonna set him free

strong parcel
worn sedge
#

nuh uh

strong parcel
#

proof?

frank holly
#

in any case you're burying the actual question

worn sedge
worn sedge
#

seemed promising when chatgpt said it.

strong parcel
frank holly
#

you're not being helpful

strong parcel
#

damn

#

at this rate michel is getting banned

#

you need to cool it buster

worn sedge
#

damn

#

okay but tahts just racist

#

and its not a solution its something to look into

split lodge
#

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

frank holly
#

I gotta go

strong parcel
split lodge
#

Oh sorry, I mean I had a hard time reproducing the issue you were experiencing. I understand what you are trying to do

strong parcel
#

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

split lodge
#

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

strong parcel
#

hmmmm

#

ohhhh

split lodge
strong parcel
#

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

split lodge
#

What? No no no

#

Well maybe, depending on what you are doing

strong parcel
#

yeah

#

im only getting an error when a tile has 2 nav layers at the same time

split lodge
#

You shouldn't get an error, it should just work

strong parcel
#

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

split lodge
#

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?

strong parcel
#

uhhhh

#

wait let me try some things for a little

split lodge
#

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 😆

worn sedge
#

Myersguy did you just teach yourself 2d navigation real quick to help out?

split lodge
#

I sure did

worn sedge
#

thats some dedication

split lodge
#

Ehh I've already played with 3D nav. It was just learning the tilemaplayers mostly

worn sedge
#

still respect

strong parcel
#

michel vs learning

strong parcel
#

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