Pyxel Edit Forum Archive
ArchiveGeneral

Pyxel Edit to Tiled

T
TheMnk
Apr 6, 2017 at 8:22 pm
Hello, how do I export a pyxel tilemap to Tiled ?.

The json format of pyxel is not recognized in Tiled, it gives me the following message:
Map orientation not supported: ""

I have the same tileset loaded in Tiled and in Pyxel, ok.
In pyxel I have a tilemap that I want to take to Tiled but I do not know how to do it.
CandyFace
Apr 6, 2017 at 10:39 pm
PyxelEdit doesn't export to Tiled, though i've seen a few converters lying around the net. https://github.com/Ragath/Tyxel
http://dustinauxier.com/pyxeledit-to-tiled-conversion-tool

The first has been updated recently, the second is oldish but it may still work.
T
TheMnk
Apr 6, 2017 at 11:06 pm
The tool in github, I do not know what I should do with it, how should I use it ?.

The second tool has an exe, I used it but it seems that it no longer works, the file obtained for Tiled does not look good when I opened in Tiled.
CandyFace
Apr 7, 2017 at 7:25 am
When you reach the github page, click on "release" and choose Tyxel.zip, then you'll get a exe.
T
TheMnk
Apr 7, 2017 at 5:43 pm
Okay, I got it but it gives me an error.
Have you tried it? Does it work?

I can not run it.

http://i.imgur.com/O0mhJ1X.png
CandyFace
Apr 7, 2017 at 6:18 pm
No I haven't, I just assumed it would work since it's been updated recently. You could try to let the developer know by making an issue here https://github.com/Ragath/Tyxel/issues
R
Ragath
Apr 8, 2017 at 3:19 pm
Hello, I'm the developer of Tyxel. The problem you guys have run into stems from not opening the Sample.json file bundled with Tyxel.exe, this file contains configuration settings that describe how to generate Tiled's tilesheet and which *.pyxel file to observe. I've added a description in the readme and updated the error message to give a more helpful response, but as of writing this response I have not yet packaged a new release containing this feature, so you'll only see it if you build from source. This feature has now been released: https://github.com/Ragath/Tyxel/releases/tag/v0.8.1-beta
T
TheMnk
Apr 8, 2017 at 4:05 pm
Hi, thanks, I can not make this file work, maybe it's a mistake ?.
I am using the latest version of pyxel.

http://https//www.dropbox.com/s/f9xj5hokfdpfo0c/menuInicial.pyxel?dl=0
R
Ragath
Apr 8, 2017 at 4:17 pm
This tool uses Pyxel's canvas to generate Tiled's tilesheet(this is because keeping Pyxel's tiles in order while drawing is problematic). Your *.pyxel file needs a layer called Sheet in order for it to work(must've missed that detail in the instructions). I did this edit to your file, attaching it here.
T
TheMnk
Apr 9, 2017 at 10:52 pm
Ok, in the layer that is called "sheet" I have to draw a copy of the tileset.

But I have many tiles, it's crazy to tile it because it would take me a long time.
Is there any way to do it quickly ?.
CandyFace
Apr 9, 2017 at 11:00 pm
There is no easy way to do it, you have to add them one by one to the canvas.
T
TheMnk
Apr 10, 2017 at 12:12 pm
Ouch !, then it's crazy right now for me to do a rendering of the tileset.
R
Ragath
Apr 10, 2017 at 4:53 pm
Actually there is an easy way to do it!

  1. Export your tileset to a single *.png
  2. Import the *.png back into Pyxel
  3. Profit!
CandyFace
Apr 10, 2017 at 5:55 pm
Oh.. pff that's right, hah good thinking Ragath.
T
TheMnk
Apr 10, 2017 at 8:42 pm
Edit: ok I understand !.

That helped me!, I already have the output folder.

Now what should I do in Tiled ?.
The json file in the "output" folder is not recognized in Tiled.
The other file is a png image with the tileset.
R
Ragath
Apr 11, 2017 at 4:04 pm
The *.json file in the output folder is an external Tiled tileset, so you have to add it to your map(s)
T
TheMnk
Apr 20, 2017 at 10:09 am
Ok, I can take the contents of the "sheet" layer to Tiled, but the content of this layer is the tileset.

Now I also want to take the tilemap that I have in Pyxel to be able to bring it to Tiled.

That is to say. I want everything in Tiled, tilemap and tileset, is it possible?

Currently with Tyxel you can have the tileset ("sheet" layer) in Tiled, but I also want the tilemap that is in the other layer in Pyxel.
R
Ragath
Apr 20, 2017 at 3:36 pm
Tyxel does not currently export any tile layers, doing so would either prevent placing tiles in Tiled(and defeat the purpose) or require duplex communication. Duplex communication is generally messy and error-prone, so i'm not looking at that as an option and it would prevent using a lot of features in Tiled that Pyxel cant support.
T
TheMnk
Apr 20, 2017 at 6:38 pm
Thanks for the info.
Hopefully soon Pyxel can export to Tiled.