Pyxel Edit to Tiled

TheMnk Posts: 26
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.

Comments

  • CandyFaceCandyFace Posts: 548
    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.
  • TheMnk Posts: 26
    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.
  • CandyFaceCandyFace Posts: 548
    edited April 7
    When you reach the github page, click on "release" and choose Tyxel.zip, then you'll get a exe.
  • TheMnk Posts: 26
    Okay, I got it but it gives me an error.
    Have you tried it? Does it work?

  • CandyFaceCandyFace Posts: 548
    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
  • Ragath Posts: 5
    edited April 8
    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
  • TheMnk Posts: 26
    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
  • Ragath Posts: 5
    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.
  • TheMnk Posts: 26
    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 ?.
  • CandyFaceCandyFace Posts: 548
    There is no easy way to do it, you have to add them one by one to the canvas.
  • TheMnk Posts: 26
    Ouch !, then it's crazy right now for me to do a rendering of the tileset.
  • Ragath Posts: 5
    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!
  • CandyFaceCandyFace Posts: 548
    Oh.. pff that's right, hah good thinking Ragath.
  • TheMnk Posts: 26
    edited April 10
    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.
  • Ragath Posts: 5
    The *.json file in the output folder is an external Tiled tileset, so you have to add it to your map(s)
  • TheMnk Posts: 26
    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.
  • Ragath Posts: 5
    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.
  • TheMnk Posts: 26
    Thanks for the info.
    Hopefully soon Pyxel can export to Tiled.
Sign In or Register to comment.