Each ascii tile at the map got graphical tile which is bound to it. So user got an option - to play in pure ascii or with tileset.
I’ve installed ‘Tiled’, created new .tmx with proper size and imported there graphical tileset as .tsx. Now I’m able to draw everything with tiles, not with ascii characters and it’s great! The problem is:
how to export my map which I’ve made in ‘Tiled’ as a pure ascii map (examples of which I linked above)?
I’ve read the ‘Tiled’ documentation and noted the option to export as .csv while having ‘name’ property with acsii symbol for each tile. But it using commas between symbols and also fills empty spots with ‘-1’ (and I need to leave them empty). The only way to solve it (which I found) is to replace ‘-1’ and commans in text editor with spaces which isn’t really comfortable as I need a lot of testing during maps drawing. Also I’ve checked .tmx file format documentation (which also uses .csv), but I failed to understand - is there way to solve this issue there…
Please help, guys! Are there any way to customize output to pure and simple ascii map without additional symbols? So each tile (picture) would have one property (ascii character) at output file; and the same time output file won’t have commas and empty spots would be marked as spaces.
The example in the docs shows a basic example, pretty much the same as a csv. All you would have to do is slightly modify that script to do what you want. Now, depending on how familiar you are with coding (and the Python language), you may find this to be difficult to understand. If you need any assistance, let me know!
Tryed it with the example script. Working on windows with Tiled v. 1.2.2, Python 3.7. installed.
Added script to C:\Users\ <user> \.tiled nothing seems to happen. No new export option in Export As dialog.
Also I see this in plugins:
The Python scripting is relatively hard to get working since the upgrade to Python 3, because you need exactly the version of Python that Tiled was built against installed on your system (and it needs to match the architecture of the Tiled you installed - 32 or 64 bits).