Using external tilesets (Tiled)

Hi,

Is it possible to use external tilesets with Dusk somehow? I’ll get an error if I have a level that uses external tilesets. If I add tileset info to the json document and don’t use external tilesets, everything works. I’m not sure what version of Dusk I’m using, but it isn’t 1.0.

18:15:14.027&nbsp; \Dusk\dusk\_core\misc\functions.lua:53: attempt to index local 'path' (a nil value) 18:15:14.027&nbsp; stack traceback: 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;\Dusk\dusk\_core\misc\functions.lua:53: in function 'getDirectory' 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;\Dusk\dusk\_core\load\tilesets.lua:52: in function 'get' 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;\Dusk\dusk\_core\core.lua:153: in function 'buildMap' 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;\Dusk\Dusk.lua:46: in function 'buildMap' 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;\map.lua:7: in main chunk 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;[C]: in function 'require' 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;?: in function 'require' 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;\game.lua:666: in function \<\game.lua:652\> 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;?: in function 'dispatchEvent' 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;?: in function '\_nextTransition' 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;?: in function \<?:1492\> 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;(tail call): ? 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;?: in function \<?:504\> 18:15:14.027 &nbsp;&nbsp;&nbsp; &nbsp;?: in function \<?:169\>

 

Dusk doesn’t currently support external tilesets. I know they’d be super convenient, but it’s a bit of a step. Definitely a full 1.0 feature, though. Can you make do right now without them?

  • Caleb

Thanks Caleb!

Actually external tilesets are a bit buggy in Tiled so we weren’t even sure in the first place if we would have used them. Luckily the tileset information is at the end of the each json file, so we can quite easily use replace options from Notepad++ or such. The developer of Tiled is currently writing from the scratch how the Tiled handles external tilesets. He said it’ll take a few months. But as you said, it would be great to have those work in Dusk also.

Dusk doesn’t currently support external tilesets. I know they’d be super convenient, but it’s a bit of a step. Definitely a full 1.0 feature, though. Can you make do right now without them?

  • Caleb

Thanks Caleb!

Actually external tilesets are a bit buggy in Tiled so we weren’t even sure in the first place if we would have used them. Luckily the tileset information is at the end of the each json file, so we can quite easily use replace options from Notepad++ or such. The developer of Tiled is currently writing from the scratch how the Tiled handles external tilesets. He said it’ll take a few months. But as you said, it would be great to have those work in Dusk also.