.DAT Compiler

Started by RoughIngot, November 18, 2013, 02:14:35 AM

Previous topic - Next topic
November 18, 2013, 02:14:35 AM Last Edit: November 19, 2013, 04:17:32 AM by RoughIngot
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 RoughIngot@gmail.com or Cctechwiz@gmail.com

-RoughIngot


UPDATE: 11/18/13
   Typo found and fixed in DatCreationMenu.bat
   Added a line of text to clarify tile position

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.

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