Map editor

Page 4/4
1 | 2 | 3 |

By MsxKun

Paragon (1030)

MsxKun's picture

26-09-2021, 14:55

sd_snatcher wrote:

Weird. I tried the script made by MsxKun, but while it does show up in the export menu, it doesn't save any file. At least on macOS.

I checked anmd the code I posted is the one I'm used on Tiled. Dunno why doesn't save on your Mac. When the code returns the buffer, Tiled saves.
Maybe it needs to have one layer selected and if you don't select any it won't work?

By MsxKun

Paragon (1030)

MsxKun's picture

26-09-2021, 15:00

theNestruo wrote:

I prefer to have my tools outside Tiled because I can integrate them in a makefile or in a build script (but other people may prefer otherwise!)

Many ways to do things, and all are good if they serve the purpose. Just choice the one who fits your needs better and makes you be more productive, or it's more handy... Smile
At this point I just can use Gimp for GFX and export to MSX direct from there, and Tiled for maps, but I still kinda prefer TileStudio, cause it's both in one.
And I still have the outside tools, some custom, some purely standard. In the end no tool is ever finished as it's always evolving and changing depending on the actual needs Tongue
But hell, it's much better than when we only had MSX-Basic to make sprites using DATA or ,as much, some Aacko Draw & Paint (or similar) to make GFX and save into unlabeled tapes Tongue

So yay for big number of choices!

By Grauw

Ascended (10055)

Grauw's picture

26-09-2021, 16:34

Anyone using LDtk?

By MsxKun

Paragon (1030)

MsxKun's picture

26-09-2021, 16:49

Grauw wrote:

Anyone using LDtk?

No, but looks cute. I'm going to try it, thx! Cause try new stuff is part of the fun of development :D

By sd_snatcher

Prophet (3470)

sd_snatcher's picture

26-09-2021, 16:50

@MsxKun

Do you know how do I debug this with VSCode? IOW, what do I need to do so the VSCode debugger can connect with the export script, running inside Tiled, at the correct time?

By MsxKun

Paragon (1030)

MsxKun's picture

26-09-2021, 17:21

sd_snatcher wrote:

@MsxKun

Do you know how do I debug this with VSCode? IOW, what do I need to do so the VSCode debugger can connect with the export script, running inside Tiled, at the correct time?

No, sorry. Maybe Tiled has some sort of command line (like BMP2MSX had) where you can say to export some file, but I never checked that. Usually (almost always 99,99% times) when I do maps I do maps, export, and assemble later to update. And once maps are done I don't need to care. Lazy as I am, never tried to make it all at once Smile Yet.

But, after a quick search i found this: https://discourse.mapeditor.org/t/command-line-arguments/623

[bjorn@thor ~]$ tiled --help
Usage:
  tiled [options] [files...]

Options:
  -h --help           : Display this help
  -v --version        : Display the version
     --quit           : Only check validity of arguments
     --disable-opengl : Disable hardware accelerated rendering
     --export-map     : Export the specified tmx file to target
     --export-formats : Print a list of supported export formats

So it seems doable.

Page 4/4
1 | 2 | 3 |