-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
godot_node_type and/or res_path are not loaded from property types file. #26
Comments
Can't reproduce this, it works in my tests. PS had an idea: |
@al0fdf try exporting the tmx file instead of just saving it |
@al0fdf : I've tested now different relative paths and that worked too. |
@Kiamo2 Here's my reproduction project. There is a In the Left object(edited properties): When running in-game, note that only the left object is correctly instanced, the right remains a static body. Here is the zip for the reproduction case: With the following folder structure:
|
Now it's going to be mysterious. Maybe it's indeed Linux behaving different...? |
Can't find anything and as the res_path entries in 'map_working.tmx' and 'repro.tiled-project' are identical it's no big surprise that it's working. |
I'm talking about running the godot project from the editor. |
Aah, you've changed the example zip. Could it be that you simply missed to specify the project file??? Please note, that for Custom Types to be supported the project file is neccessary! |
@Kiamo2 I have set the project file in the import defaults: However when creating a new inherited scene based on
When finding that line(around line if _ct != null:
_ct.merge_custom_properties(obj, "object")
+ print(_ct)
...
if godot_type == _godot_type.UNKNOWN:
if not _add_class_as_metadata and class_string != "" and not godot_node_type_prop_found:
print_rich("[color=" + WARNING_COLOR +"] -- Unknown class '" + class_string + "'. -> Assuming Default[/color]")
_warning_count += 1
... Godot's console output of the above code:
|
_ct being null is indicating that no project file has been loaded. You may have set it in the importer defaults, but after I loaded your example, the actual Tiled Project File option for map.tmx was empty. Maybe the importer defaults have no effect on the currently actually used import options. |
@Kiamo2 That seems to be the issue. The importer tab does not use the project's default import options. After re-importing the |
I took a closer look and found out:
I think, this explains the behavior and I consider the issue as resolved. |
Describe the bug
godot_node_type
and/orres_path
are not loaded from property types file, as a result, any objects with the relevant properties set, do not get instanced:To Reproduce
Steps to reproduce the behavior:
res_path
andgodot_node_type='instance'
properties.class
property set to above class.To work around
Double-click the
res_path
andgodot_node_type
for every object in the map, change them to non-default values, then change them to their default values, so they become un-greyed.Expected behavior
Objects with
godot_node_type='instance'
andres_path
set to a .tscn
file should be instanced in-game.Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Examle map (zipped)
A zip file containing a small but complete example to reproduce the issue.
This could accelerate resolving it.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: