Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Using external tilesets (Tiled)
Started by Aatos Media Aug 30 2016 07:27 AM

2 replies to this topic
dusk tiled tileset external tsx json
[TOPIC CONTROLS]
This topic has been archived. This means that you cannot reply to this topic.
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Aatos Media

[GLOBAL: userInfoPane.html]
Aatos Media
  • Contributor

  • 126 posts
  • Corona SDK

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

 



[TOPIC: post.html]
#2

Caleb P

[GLOBAL: userInfoPane.html]
Caleb P
  • Corona Geek

  • 1,424 posts
  • Corona SDK

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



[TOPIC: post.html]
#3

Aatos Media

[GLOBAL: userInfoPane.html]
Aatos Media
  • Contributor

  • 126 posts
  • Corona SDK

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.




[topic_controls]
[/topic_controls]