Author Topic: .DAT Compiler  (Read 11679 times)

0 Members and 1 Guest are viewing this topic.

  • Newbie
  • *
  • Posts: 1
    • View Profile
.DAT Compiler
« on: November 18, 2013, 02:14:35 AM »
Hello, RoughIngot here! First post on the forum and I wanted to share one of my creations.

I've created a .bat(BATCH file) to help in the creation of the .DAT files needed to import tilesets into Solarus. The only thing you need is a .png containing your tileset and any image editing software (i.e. GIMP, Photoshop, etc...).

To use the Compiler:
    Open your .png in your image editing software. Overlay a Grid of 32x32 pixels with 2 subdivisions lying on the 16 and 8 pixels.
    Run the .bat and follow any on-screen instructions. Refer to the gridded .png for (x,y) and size values.

I plan on recreating this with Eclipse and Kivy using Pything to obtain a better app with an enhanced user interface and graphical referencing abilities but for now the batch file should work well enough.

We're open to any suggestions on making this better!

The script was written in BATCH Script using Notepad++. The script is totally opensource and free-to-use for any personal or commercial use. Just let me know because I'd love to see your project.

Hopefully this helps in your .DAT creation!

Any questions can be sent to or


UPDATE: 11/18/13
   Typo found and fixed in DatCreationMenu.bat
   Added a line of text to clarify tile position
« Last Edit: November 19, 2013, 04:17:32 AM by RoughIngot »


  • Administrator
  • Hero Member
  • *****
  • Posts: 1195
    • View Profile
Re: .DAT Compiler
« Reply #1 on: November 19, 2013, 11:55:32 AM »
Looks nice (but windows only, I suppose?).
I guess for now it is probably less user-friendly than the official tileset editor, but if I understand correctly, there is already something the official tileset editor does not support: changing the position of an existing tile in the tileset. Integration in Eclipse would be nice indeed.

Remember that many files with different syntaxes have a .dat extension (maps, tilesets, sprites, dialogsā€¦), so this is not a general .dat tool but a tileset edition tool.


  • Full Member
  • ***
  • Posts: 151
    • View Profile
Re: .DAT Compiler
« Reply #2 on: December 19, 2019, 12:23:40 AM »
I looked at the content of the DatCreationMenu.bat script and tried it; it's not meant to save time in creating dat files for tilesets. In fact, you have to enter tile by tile the x and y coordinates, the width and the height, if it is traversable or other, etc ... The script is well written, but I don't see the point because we don't see what we do. Might as well go through the editor. It's still DOS, it's old school. :D