#No C++ binding for tile_map_layer?

5 messages · Page 1 of 1 (latest)

coral dirge
#

Pretty new to Godot. I was using 4.2 with my C++ Extension which I passed a TileMap. I switched to 4.3 fine, but I noticed TileMap is deprecated. I changed my Godot code, but there doesn't seem to be a C++ binding for tile_map_later.hpp (i.e. nothing under godot_cpp).

How do I use a TileMapLayer and pass it to my C++ code?

worn wing
#

Did you also switch the branch of your godot-cpp repo to 4.3?

#

@coral dirge forgot to ping

coral dirge
# worn wing Did you also switch the branch of your `godot-cpp` repo to 4.3?

I'm an idiot. I forgot to update my CMakeLists.txt
GIT_TAG godot-4.2-stable

Why had we not got better build systems after all this time

~~Yeah I checked that.
$ git log -1 commit 77dcf97d82cbfe4e4615475fa52ca03da645dbd8 (HEAD, tag: 4.3-stable) Author: xxxxx Date: Thu Aug 15 01:00:16 2024 +0200

Also I thought maybe it's not being created even in a clean build, but removing the directory I get

[ 79%] Building CXX object _deps/gdextension-build/CMakeFiles/godot-cpp.dir/gen/src/classes/tile_data.cpp.obj [ 79%] Building CXX object _deps/gdextension-build/CMakeFiles/godot-cpp.dir/gen/src/classes/tile_map.cpp.obj [ 79%] Building CXX object _deps/gdextension-build/CMakeFiles/godot-cpp.dir/gen/src/classes/tile_map_pattern.cpp.obj [ 79%] Building CXX object _deps/gdextension-build/CMakeFiles/godot-cpp.dir/gen/src/classes/tile_set.cpp.obj

but godot has tile_map_layer.cpp
$ cd godot/ (base) tam@Abyss MINGW64 /d/git/godot ((4.3-stable)) $ find . -name tile_map* ./editor/plugins/tiles/tile_map_layer_editor.cpp ./editor/plugins/tiles/tile_map_layer_editor.h ./editor/plugins/tiles/tile_map_layer_editor.windows.editor.dev.x86_64.obj ./editor/plugins/tiles/tile_map_layer_editor.windows.editor.x86_64.obj ./scene/2d/tile_map.compat.inc ./scene/2d/tile_map.cpp ./scene/2d/tile_map.h ./scene/2d/tile_map.windows.editor.dev.x86_64.obj ./scene/2d/tile_map.windows.editor.x86_64.obj ./scene/2d/tile_map_layer.cpp ./scene/2d/tile_map_layer.h ./scene/2d/tile_map_layer.windows.editor.dev.x86_64.obj ./scene/2d/tile_map_layer.windows.editor.x86_64.obj

I assume someone has definetely got the
<godot_cpp/classes/tile_map_layer.hpp>

so the problem must be at my end?~~

worn wing