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

tmx file refused to update in godot. problem is object.type is int #129

Open
strimmlarn opened this issue Jul 5, 2020 · 0 comments
Open

Comments

@strimmlarn
Copy link

strimmlarn commented Jul 5, 2020

Plugin version

Tiled importer 2.3 from asset library
Godot version 3.2.2.stable downloaded from steam

Issue description
Map doesn't update in godot because I get error.

When saving tmx file in tiled godot shows this error message:
res://addons/vnen.tiled_importer/tiled_map_reader.gd:945 - Invalid operands 'int' and 'String' in operator '=='
Line 945 in tiled_map_reader.gd is:
if object.type == "navigation" or object.type == "occluder":
If I print object it is:
{height:56, id:1, rotation:0, type:1, visible:True, width:128, x:0, y:0}

Steps to reproduce
Don't know what caused it. I was making a new tileset from a image that I used in another tileset becuse I wanted to change the tile height and width. Maybe that had something to do with it.

Sample map or tileset
tmxfile.zip

Steps to fix
I made a line before line 945 in tiled_map_reader.gd with the code:
object.type = str(object.type)
and it worked.

Maybe that can cause more problems, I don't know. But its working so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant