Giter Site home page Giter Site logo

Trouble setting up plugin about yati HOT 9 CLOSED

kiamo2 avatar kiamo2 commented on August 26, 2024
Trouble setting up plugin

from yati.

Comments (9)

Kiamo2 avatar Kiamo2 commented on August 26, 2024

The (tiled) save format should be no issue, both formats (.tmx and .tmj) are supported.
Please be a bit more specific about your problem

  • Which version are you using, C# or GDScript and is the plugin successfully enabled?
  • At which point what fails to happen? Are there specific error messages?

from yati.

MythgardStudios avatar MythgardStudios commented on August 26, 2024

So I am using the GDscript version. Sorry for not explaining that part. When i go into Project settings>plugins. it does not show up to enable. So i guess thats where my first error is occurring.

from yati.

MythgardStudios avatar MythgardStudios commented on August 26, 2024

Okay so i got the plugin to show up withing the project settings area, i put the map and its used tilesets in the godot project folder. i reloaded the project, but i didnt see anything different besides a red X being beside the tiled map.

from yati.

MythgardStudios avatar MythgardStudios commented on August 26, 2024

res://addons/YATI/TilemapCreator.gd:152 - Invalid call. Nonexistent function 'sort_custom' in base 'Nil'.
Error importing 'res://test tiled yati plugin.tmx'.

from yati.

Kiamo2 avatar Kiamo2 commented on August 26, 2024

Hmm, ok, I suspect that the function tileset_creator.get_registered_atlas_sources() returned nothing.
Despite the fact that this error could be handled better, there must be some quite unusual condition in your Tiled design.
I was not able to reproduce such a behaviour.
Would it be possible for you to zip the Godot project and append it here?

from yati.

MythgardStudios avatar MythgardStudios commented on August 26, 2024

well i got it working then it broke again, ill sed you what i have, ive tested a lot of possible issues, but im not sure why it works one second then refuses the next, if you do find out what im doing wrong let me know. I had to start a brand new project to get the plugin to function correctly, and the file im sending you will be that exact project that is breaking now. I do appreciate the help. Its an awesome plugin. Sending Zip next

from yati.

MythgardStudios avatar MythgardStudios commented on August 26, 2024

Tiled Yati Test.zip

from yati.

Kiamo2 avatar Kiamo2 commented on August 26, 2024

The Tiled design inside the Godot project turned out to be inconsistent i.e. several .tsx files and .png files were wrongly located.
As soon as I loaded RoM.tmx into Tiled it looked like this:
RoM_loaded_into_Tiled

Please note that for all files Tiled is using their names and (mostly relative) paths are stored inside the .tmx and .tsx files.
(You can see that by loading .tmx or .tsx files into a text editor, paths can be found at the beginning of the file)
-> If you copy a Tiled project to another location better keep it's directory and file structure.
Luckily that can be repaired inside Tiled by relocating the missing resources.

And that's what I've done.

  1. First I shifted all .tsx files into the (empty) folder 'Tsx Files' and all .png files into folder 'Png Files' to clean up
  2. I restarted Tiled and loaded RoM.tmx
  3. I relocated all references by clicking through the missing messages and using 'Locate...' (right at the bottom)
  4. I saved all changed files.

After that the project imported smoothly into Godot.
Appended is the repaired Project.
Tiled Yati Test (repaired).zip

from yati.

Kiamo2 avatar Kiamo2 commented on August 26, 2024

Since no further comments were made, the issue appears resolved.

from yati.

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.