Author Topic: .DAT Compiler  (Read 3967 times)

RoughIngot

  • 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 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
« Last Edit: November 19, 2013, 04:17:32 am by RoughIngot »

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1172
    • 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.