Comments (2)
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.
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)
- Add support for tiles normal maps HOT 2
- godot 4 (alpha) support? HOT 5
- Wiki Documentation for Tile Names, Animations, Custom Materials, and Z index features
- Save Tiled Properties for single tile not working HOT 1
- Invalid get index 'name' when importing tileset with save_tiled_properties enabled
- Invalid get index 'properties' (on base: 'Dictionary'). when importing tmx file with save_tiled_properties enabled HOT 1
- warning appears when importing the tmx file "core/image.cpp:2051 - Loaded resource as image file, this will not work on export:"
- can you submit one example where you use Area2d the tiled map and the godot project. on godot 3.4 because old version do not work whit new android rulers
- Tiled Editor has updated and Type is now called Class HOT 5
- "Child" class attributes not mapped in Godot as metadata
- Setup unit tests
- Object collisions are no longer positioned correctly in the Y in Godot 3.5.
- Objects are positioned incorrectly after import HOT 2
- New Class property (vs older Type property) : Area generates StaticBody2D instead of Area2d
- Maps cannot be imported at runtime?
- Import objects as tscns? HOT 4
- Feature request: Importing labels
- TMX import crash with 3.6
- Animated Tiles and Godot 4 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godot-tiled-importer.