Skip to content

Instantly share code, notes, and snippets.

@rhulha
Created December 13, 2020 23:12
Show Gist options
  • Save rhulha/695a63647b559a3608cff5146f9ca444 to your computer and use it in GitHub Desktop.
Save rhulha/695a63647b559a3608cff5146f9ca444 to your computer and use it in GitHub Desktop.
010 Editor Binary Template for the blocks of a Diabotical rbe map file.
LittleEndian();
char signature[4];
uint32 version;
uint64 u1a;
uint64 u1b;
char material_count;
uint32 u2;
uint32 block_count;
typedef struct
{
uint32 x;
uint32 y;
uint32 z;
char type;
char u1[12];
char mats_front;
char mats_left;
char mats_back;
char mats_right;
char mats_top;
char mats_bottom;
char u2;
char mat_offs_front_x;
char mat_offs_front_y;
char mat_offs_left_x;
char mat_offs_left_y;
char mat_offs_back_x;
char mat_offs_back_y;
char mat_offs_right_x;
char mat_offs_right_y;
char mat_offs_top_x;
char mat_offs_top_y;
char mat_offs_bottom_x;
char mat_offs_bottom_y;
char orient;
char u3;
} block_t;
block_t blocks[block_count];
uint32 u3_count;
uint32 entity_count;
uint32 audio_count;
uint32 u4;
uint32 minimap_layer_count;
uint32 audio_prop_count;
@rhulha
Copy link
Author

rhulha commented Dec 13, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment