Skip to content
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

Can't import a map if any objects have \n in a custom property #135

Open
TeamRobostar opened this issue Dec 31, 2020 · 1 comment
Open
Labels

Comments

@TeamRobostar
Copy link

Plugin version
Plugin 2.3, from GitHub.
Godot 3.2.3
Tiled 1.4.3

Issue description
If an object in the map has a custom property containing the newline escape character \n, the map fails to import with the following errors:
Missing information in custom properties (around line 0).
res://addons/vnen.tiled_importer/tiled_xml_to_dict.gd:111 - Invalid get index 'properties' (on base: 'int').
Tiled Importer: Error parsing map file 'res://Assets/Maps/Example.tmx'.
editor/editor_file_system.cpp:1801 - Error importing 'res://Assets/Maps/Example.tmx'.

Steps to reproduce
Open a map in Tiled; create an object with a custom property and set it to "Hello\nWorld".

Sample map or tileset

Example.zip

@Bauxitedev
Copy link

Running into the same issue here. Trying to switch to JSON instead of XML map file format didn't work either, because somehow custom properties don't even seem to be read at all if the map is in JSON format?

@vnen vnen added the bug label Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants