Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Tiled error
Started by marcelopotty0 Sep 10 2018 10:05 PM

4 replies to this topic
tiled ponytiled

Best Answer richard11 , 11 September 2018 - 01:00 AM

I've not used Ponytiled myself, but when you export from Tiled, if you open the resulting file in a text editor you'll see the references to the sprite images use full paths. If Ponytiled works the same as Qiso, you'll need to edit those paths to just reference the filename as well as moving the files in to the same folder. I.e. make the paths relative to the directory you're packaging the assets into.

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

marcelopotty0

[GLOBAL: userInfoPane.html]
marcelopotty0
  • Observer

  • 11 posts
  • Corona SDK

I've being trying to put the map I made in tiled but I get an error: 

 ERROR: Tile layer encoding/compression not supported. Choose CSV or XML in map options.

I've already tried in lua, Json, putting the sprites and the file at the same folder, and I read some forums, but nothing works.

 
local tiled = require "com.ponywolf.ponytiled"
local physics = require "physics"
local json = require "json"


local mapData = require "mapa.streets"


local map = tiled.new(mapData) -- I also tried putting the path

 



[TOPIC: post.html]
#2

richard11

[GLOBAL: userInfoPane.html]
richard11
  • Contributor

  • 306 posts
  • Corona SDK

  Best Answer

I've not used Ponytiled myself, but when you export from Tiled, if you open the resulting file in a text editor you'll see the references to the sprite images use full paths. If Ponytiled works the same as Qiso, you'll need to edit those paths to just reference the filename as well as moving the files in to the same folder. I.e. make the paths relative to the directory you're packaging the assets into.



[TOPIC: post.html]
#3

marcelopotty0

[GLOBAL: userInfoPane.html]
marcelopotty0
  • Observer

  • 11 posts
  • Corona SDK

@richard11 Thank you so much!!, that worked, but now I have other problem, the images don't load in the simulator 



[TOPIC: post.html]
#4

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,246 posts
  • Enterprise

Most of the tiled engines that work with Corona require your tiles to be "external tilesets". You might want to check that.

 

Are you getting any errors in your Corona console log?

 

Rob



[TOPIC: post.html]
#5

marcelopotty0

[GLOBAL: userInfoPane.html]
marcelopotty0
  • Observer

  • 11 posts
  • Corona SDK

I solved, it was that I didn´t notice on X & Y positions and it was my error, sorry, but by the way, thank you so much!!




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: tiled, ponytiled