GithubHelp home page GithubHelp logo

picalines / godot-ldtk-import-mono Goto Github PK

View Code? Open in Web Editor NEW
9.0 9.0 3.0 259 KB

LDtk importer for Godot (mono)

License: MIT License

C# 100.00%
csharp-library godot godot-addons godot-plugin importer ldtk

godot-ldtk-import-mono's People

Contributors

picalines avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

godot-ldtk-import-mono's Issues

[PLUGIN BUG] Object reference not set to an instance of an object (FindOrCreateBaseNode Owner check)

I just started using Godot and LDtk today, and your plugin looks like the most well thought out solution to using them together.
But alas, there seems to be a Plugin Bug. I tried troubleshooting what was going on, but I couldn't get anywhere.

 modules/mono/glue/gd_glue.cpp:249 - [PLUGIN BUG] Object reference not set to an instance of an object
  at Picalines.Godot.LDtkImport.Importers.BaseSceneImporter.FindOrCreateBaseNode[TNode] (Godot.Node parent) [0x00021] in <07644612e0eb45c4ba1deac2ec736434>:0 
  at Picalines.Godot.LDtkImport.Importers.TileMapImporter.Import (Picalines.Godot.LDtkImport.Importers.LevelImportContext context, Picalines.Godot.LDtkImport.Json.LevelJson+LayerInstance layerJson, Godot.Node layerNode) [0x000ae] in <07644612e0eb45c4ba1deac2ec736434>:0 
  at Picalines.Godot.LDtkImport.Importers.LevelImporter.AddLayers (Picalines.Godot.LDtkImport.Importers.LevelImportContext context, Godot.Node levelNode) [0x00153] in <07644612e0eb45c4ba1deac2ec736434>:0 
  at Picalines.Godot.LDtkImport.Importers.LevelImporter.Import (Picalines.Godot.LDtkImport.Importers.LevelImportContext context) [0x00073] in <07644612e0eb45c4ba1deac2ec736434>:0 
  at Picalines.Godot.LDtkImport.Importers.LDtkImporter.ImportLevels (System.String ldtkFilePath, Picalines.Godot.LDtkImport.Json.LDtkImportSettings importSettings, Picalines.Godot.LDtkImport.Json.WorldJson worldJson) [0x00073] in <07644612e0eb45c4ba1deac2ec736434>:0 
  at Picalines.Godot.LDtkImport.Importers.LDtkImporter.Import (System.String ldtkFilePath, System.String settingsFilePath) [0x000b9] in <07644612e0eb45c4ba1deac2ec736434>:0 
  at Picalines.Godot.LDtkImport.LDtkEditorPlugin.ImportProject (System.String ldtkFile) [0x0008c] in <07644612e0eb45c4ba1deac2ec736434>:0 

#keepTileSprite on tile doesn't work?

I have an example project demonstrating the bug, using a LDtk template edited to add a ladder tile entity.
The problem, to be specific, is that the importer isn't finding the Sprite and setting its texture.

testproject.zip
(I was debugging the error myself, because apparently that's possible with Godot addons, which is why there's an extra print statement in your code.)

UPDATE: It seems to work only if I make the Sprite the scene root.

Callback on LDtkField set?

I discovered today that LDtkField cannot be used on a property that executes custom logic.
I don't know how trivial that would be to change, so here is my request:
I would like to be able to run a method of my choice when the LDtkField bound property is set by reimport, much like I can with Exported properties in Tool scripts.

Is there a way to access the World/Level bounds programmatically on import?

Basically, I have an entity that I would like to overlap the entire world, but only the parts that exist in LDtk.
Is there a way to access each level's bounds programmatically upon import?
This way I wouldn't have to put a Rect on top of my entire level.
(Alternatively, this could be part of some sort of support for post-import logic, linked to in the json?)

A way to specify TileMap settings

I completely forgot that collision layer & mask are set in TileMap node, not TileSet resource. Maybe plugin should look for a TileMap node inside base layer and duplicate it for all tile layers?

EDIT: (now there are base nodes)

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.