Kiamo2 / YATI

Addon to import Tiled maps into Godot 4
MIT License
140 stars 16 forks source link

Runtime package breaks when project is exported #51

Closed CurryOnRice closed 2 weeks ago

CurryOnRice commented 1 month ago

Describe the bug First of all, thank you very much for having made this amazing plugin! I believe the runtime package doesn't work after exporting the project. This is because Godot will not import the .tmx files, but will import the .png files that are used, which messes up the relative paths. For example, my floor spritesheet ended up being exported into this directory: image Whereas the .tmx don't get imported, so they stay in their original directory: image Which results in this error: image

Desktop (please complete the following information):

Kiamo2 commented 1 month ago

The runtime package was created at the special request of some people who explained that they would benefit from it. I have never used it myself and have no experience with exporting. So currently I'm not able to help here - sorry. I also can't really judge whether the runtime package is suitable for this use case at all.

Kiamo2 commented 2 weeks ago

Are there any new findings here? How could we proceed with the issue?

CurryOnRice commented 2 weeks ago

Are there any new findings here? How could we proceed with the issue?

Hi, although I don’t think it’s necessarily solvable because it’s a restriction from Godot itself, what I did was to un-import all my tilesheets (and import them at runtime too, that way they also keep the pathing). This probably makes sense for most cases, since if you want runtime maps, you probably also want runtime tilesheets. Thank you for your help and great job with the plugin!