Solarus Forum

Community => Your projects => Topic started by: RoughIngot on November 18, 2013, 02:14:35 am

Title: .DAT Compiler
Post by: RoughIngot 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
Title: Re: .DAT Compiler
Post by: Christopho 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.
Title: Re: .DAT Compiler
Post by: froggy77 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