I’m very happy to find ‘Tiled’ - this is really beautiful programm!
I’m rookie developer and working at online roguelike game Angband Online which is based at Angband.
In my game I got maps which consist of simple ascii maps, for example:
https://pastecode.xyz/view/b70cae17 - this is a town
https://pastecode.xyz/view/d239c105 - this is a map ‘legend’, so # is a wall, O is a road etc
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.