GithubHelp home page GithubHelp logo

Comments (2)

bitbrain avatar bitbrain commented on May 28, 2024

The main problem is that class-specific information is only stored within the .tiled-project file which currently is not parsed anywhere. As a result, this plugin is unable to set the default values for those. I'd actually expect us not to parse the .tiled-project file but rather on tiled map export, those class default values being auto-populated inside the templates and objects, however, this is currently not the case.

This seems to be indeed a bug within the Tiled editor itself: mapeditor/tiled#3411

The only workaround for this is to manually set the attributes on each node, unfortunately.

from godot-tiled-importer.

eishiya avatar eishiya commented on May 28, 2024

This seems to be indeed a bug within the Tiled editor itself: mapeditor/tiled#3411

The linked bug is only about properties that are classes, Tiled doesn't correctly resolve their members, plain custom properties like the ones in OP's example are correctly resolved with the resolve properties export option in Tiled. The issue in this thread is unrelated.

However, OP mentioned the "type" on the object is null - could this perhaps be related to the change from "type" to "class" in 1.9? Is the importer perhaps looking for the "type" attribute that no longer exists? Try setting the 1.8 compatibility mode in the project settings in Tiled, and see if saving the files with that enabled helps. (Though their screenshots seem to be from 1.8 or earlier, so maybe that's not it.)

Lastly, the class (type) information can be exported into JSON and XML files that work the same as objecttypes.xml did in older versions, as well, so if someone wanted to extend the importer to support default values, parsing the entire project is not necessary.

from godot-tiled-importer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.