Skip to content

Instantly share code, notes, and snippets.

@halamix2
Last active May 16, 2021 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save halamix2/89f9ba366585afc448c020dfa899d533 to your computer and use it in GitHub Desktop.
Save halamix2/89f9ba366585afc448c020dfa899d533 to your computer and use it in GitHub Desktop.
lego_island_dta_010_editor_template
//------------------------------------------------
//--- 010 Editor v11.0.1 Binary Template
//
// File: Lego Island DTA
// Authors: Piotr Halama(Halamix2)
// Version: 0.0.3
// Purpose: Lego Island DTA files
// Category: Game
// File Mask: *.dta
// ID Bytes: 03 00 00 00
// History:
//------------------------------------------------
struct subelement {
unsigned byte sub_name_length <fgcolor=0x00aa00>;
char sub_name[sub_name_length] <fgcolor=0x00dd00>;
// unknown 38 bytes
short unknown_sub [19];
};
struct element {
unsigned byte name_length;
char name[name_length] <bgcolor=0x00ff00>;
// I have no idea what this is, there are 26 bytes
// for now grouped like that for easier analysis
short unknown_general[9];
float maybe_floats[2] <comment="looked like floats in CUBEINF.DTA">;
unsigned byte subels_length;
subelement subels[subels_length] <optimize=false>;
};
// File definition starts here
int magic <comment="Version/magic? Seems consistent so far">;
unsigned short no_of_elements;
// don't optimize, different sizes of each element
element elements[no_of_elements] <optimize=false>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment