Installing "Tiled" plugin

Hi

I’m only posting out of frustration to be frank…

Spent the past 2 hours now searching for any guides to setting up a “plugin” while using the Corona Project Manager to build my app.

I have absolutely zero coding experience, but i’m learning.

So I am trying to learn to use Tiled to build levels, I downloaded it here: http://www.mapeditor.org/

And I tried to run this sample code as a test/teaching myself: http://developer.coronalabs.com/code/corona-tiled

Running that sample code gave me some errors naturally, reading the debug errors I’m guessing I did not yet install/unpack/setup/integrate Tiled into my app. It’s trying to call and read from a few .dlls and such.

So can someone please, kindly please, point me in the right direction to getting this 3rd party tool set up? Any guides or links or even a direct answer here will be much appreciated.

Many thanks waiting eagerly~

Hi

I’m only posting out of frustration to be frank…

Spent the past 2 hours now searching for any guides to setting up a “plugin” while using the Corona Project Manager to build my app.

I have absolutely zero coding experience, but i’m learning.

So I am trying to learn to use Tiled to build levels, I downloaded it here: http://www.mapeditor.org/

And I tried to run this sample code as a test/teaching myself: http://developer.coronalabs.com/code/corona-tiled

Running that sample code gave me some errors naturally, reading the debug errors I’m guessing I did not yet install/unpack/setup/integrate Tiled into my app. It’s trying to call and read from a few .dlls and such.

So can someone please, kindly please, point me in the right direction to getting this 3rd party tool set up? Any guides or links or even a direct answer here will be much appreciated.

Many thanks waiting eagerly~

Can you be bit more specific like what exactly errors you are getting as debug errors. Might be than anyone could help you. right now it looks like you have errors from Tiled Installation. either it was misconfigured or was not completely set up.

not really sure what more specific i can get, here’s screenshots:

espq.jpg

the code in my main.lua is simply the sample code provided in the link i posted in my top post.

would you be kind enough to Download “Tiled” from the url provided in my top post, follow through to install the downloaded tool, and run the sample code? maybe that way you could see what steps i missed in between… i’m going nuts right now i’m about to quit developing and learning corona… wasting 1 whole day already I can’t find any leads on google nor youtube nor the corona guide collections nor Tiled’s readme nor Tiled’s documentation to help figure out how to “setup Tiled for Corona SDK/CPM” …

Tiled just creates level data - there is no requiring it.

You either need to write your own solution for importing that data and working with it - or use one of the third-party solutions available: MTE or I believe Caleb’s recently released Dusk engine handle this.

Looking at your original Code - Tiled (the Lua library on the Corona code exchange, not the map editor) was the first attempt at what has now become Dusk. You download that from GitHub and require that, the Lua library completely different to Tiled the map editor.

Hmm thank you finally @Segaboy for pointing me in the right direction now…

There’s no Lua Library for Tiled + Corona’s SDK https://github.com/bjorn/tiled/wiki/Support-for-TMX-maps

Guess I’ll ditch Tiled and instead look into Dusk now. So that code sample wasn’t enough to “importing the json data and working with it” then? I thought the only line that actually mattered in that sample was the

map = tiledMap:load (“usermap.json”)

and CPM/Corona would be able to understand that.

I’ll see what else I can find moving forward.

----update-

someone please help me out, I really want to continue working instead of waiting another whole day away before being able to continue work…

still getting same error as before with trying to call 3rd party libraries it seems, screenshots will explain more:

5efh.jpg

bump

Have you tried using another text editor? If you’ve just installed Dusk into your root directory and require()-ed it, and it’s still giving that error, it has to either be an error with Corona or with your IDE/text editor. It’s not an error with Corona (it works for me and everyone else who currently uses Dusk, as far as I know), so it’s got to be an error with your IDE. How about getting a trial version of Sublime Text? It’s the editor Corona officially sponsors, so if you have the same bug with that, you’ll know it’s something else :slight_smile:

  • C

okay got it working now. Dusk + Corona Editor plugin + sublime text 

loaded up the Tiled json file fine

only now I can’t find documentation in neither Tiled nor Dusk regarding maps being scaled across device resolutions… don’t know where to begin to figure this out, do i continue messing with Tiled/Dusk to handle the scaling or does Corona handle this fine? 

my config.lua

width 640

height 960

scaling letterbox

but the json map isnt scaling at all.

guess i’ll ask in a different thread.

thanks caleb.

Hi

I’m only posting out of frustration to be frank…

Spent the past 2 hours now searching for any guides to setting up a “plugin” while using the Corona Project Manager to build my app.

I have absolutely zero coding experience, but i’m learning.

So I am trying to learn to use Tiled to build levels, I downloaded it here: http://www.mapeditor.org/

And I tried to run this sample code as a test/teaching myself: http://developer.coronalabs.com/code/corona-tiled

Running that sample code gave me some errors naturally, reading the debug errors I’m guessing I did not yet install/unpack/setup/integrate Tiled into my app. It’s trying to call and read from a few .dlls and such.

So can someone please, kindly please, point me in the right direction to getting this 3rd party tool set up? Any guides or links or even a direct answer here will be much appreciated.

Many thanks waiting eagerly~

Can you be bit more specific like what exactly errors you are getting as debug errors. Might be than anyone could help you. right now it looks like you have errors from Tiled Installation. either it was misconfigured or was not completely set up.

not really sure what more specific i can get, here’s screenshots:

espq.jpg

the code in my main.lua is simply the sample code provided in the link i posted in my top post.

would you be kind enough to Download “Tiled” from the url provided in my top post, follow through to install the downloaded tool, and run the sample code? maybe that way you could see what steps i missed in between… i’m going nuts right now i’m about to quit developing and learning corona… wasting 1 whole day already I can’t find any leads on google nor youtube nor the corona guide collections nor Tiled’s readme nor Tiled’s documentation to help figure out how to “setup Tiled for Corona SDK/CPM” …

Tiled just creates level data - there is no requiring it.

You either need to write your own solution for importing that data and working with it - or use one of the third-party solutions available: MTE or I believe Caleb’s recently released Dusk engine handle this.

Looking at your original Code - Tiled (the Lua library on the Corona code exchange, not the map editor) was the first attempt at what has now become Dusk. You download that from GitHub and require that, the Lua library completely different to Tiled the map editor.

Hmm thank you finally @Segaboy for pointing me in the right direction now…

There’s no Lua Library for Tiled + Corona’s SDK https://github.com/bjorn/tiled/wiki/Support-for-TMX-maps

Guess I’ll ditch Tiled and instead look into Dusk now. So that code sample wasn’t enough to “importing the json data and working with it” then? I thought the only line that actually mattered in that sample was the

map = tiledMap:load (“usermap.json”)

and CPM/Corona would be able to understand that.

I’ll see what else I can find moving forward.

----update-

someone please help me out, I really want to continue working instead of waiting another whole day away before being able to continue work…

still getting same error as before with trying to call 3rd party libraries it seems, screenshots will explain more:

5efh.jpg

bump

Have you tried using another text editor? If you’ve just installed Dusk into your root directory and require()-ed it, and it’s still giving that error, it has to either be an error with Corona or with your IDE/text editor. It’s not an error with Corona (it works for me and everyone else who currently uses Dusk, as far as I know), so it’s got to be an error with your IDE. How about getting a trial version of Sublime Text? It’s the editor Corona officially sponsors, so if you have the same bug with that, you’ll know it’s something else :slight_smile:

  • C

okay got it working now. Dusk + Corona Editor plugin + sublime text 

loaded up the Tiled json file fine

only now I can’t find documentation in neither Tiled nor Dusk regarding maps being scaled across device resolutions… don’t know where to begin to figure this out, do i continue messing with Tiled/Dusk to handle the scaling or does Corona handle this fine? 

my config.lua

width 640

height 960

scaling letterbox

but the json map isnt scaling at all.

guess i’ll ask in a different thread.

thanks caleb.