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 Export] Objects using a template missing the name #1854

Closed
witlock opened this issue Jan 9, 2018 · 2 comments
Closed

[TMX Export] Objects using a template missing the name #1854

witlock opened this issue Jan 9, 2018 · 2 comments

Comments

@witlock
Copy link

witlock commented Jan 9, 2018

Is there a reason the name is no longer added to objects which are using a template?
Not sure if I'm missing something or not, but it doesn't seem to hurt to include it.

<object id="800" name="mygate2" template="Templates/gate/gate-door.tx" type="gate" x="510" y="1511"/>

@bjorn
Copy link
Member

bjorn commented Jan 17, 2018

Not sure if I'm missing something or not, but it doesn't seem to hurt to include it.

Well, the name is included, if you override it for that instance. So, including it would tell Tiled that the name has been overridden, in which case it will no longer change when you change the name of the template.

The same happens with the type attribute, and essentially all other aspects of the object.

Btw, you mentioned "CSV Export" in the title, but you're only talking about the TMX format, right?

@witlock
Copy link
Author

witlock commented Jan 18, 2018

Yeah I was talking about TMX. Interesting - now that I changed the name to "gatex", saved and renamed back to "gate" it appeared in the file.

Edit: Also had to edit and re-save the width for it to appear.

@witlock witlock closed this as completed Jan 18, 2018
@witlock witlock changed the title [CSV Export] Objects using a template missing the name [TMX Export] Objects using a template missing the name Jan 18, 2018
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

2 participants