Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

Two Tribes File Formats

Featured Replies

  • Author
  • Localization

Savage, posted Thu Jul 07, 2016 6:27 pm (15101)


http://will.kirk.by/labs/tt/

Im interessed in how i can compile this one:

http://will.kirk.by/labs/tt/ttdev/etx

Quote:
// for engine version 18-03 (RUSH, some EDGE builds)
struct etx_file_t {
asset_header_t asset_header;
char data[]; // image in PNG format. No length provided, just read to the EOF.
};

// for engine version 18-04 (some EDGE builds)
struct etx_file_t {
asset_header_t asset_header;
short width;
short height;
int unknown1;
int data_length; // width * height * 4
char data[data_length]; // BGRA8888 in standard raster scan order
};

// for engine version 00-04 (Toki Tori 2 )
struct etx_file_t {
asset_header_t asset_header;
short width;
short height;
short depth; // 1 for non-volumetric textures
short mipmap_count;
short unknown1;
short format; // this might be a flags-based thing, I'm unsure.
// so far the only values I've seen are:
// 0x0006 = BGRA8888
// 0x0206 = A8 (alpha-only, used for lightmasks)
int data_length_dst;
int data_length_src;
char data[data_length_src]; // compressed with FastLZ.
// Decompresses to be of length `data_length_dst`
};

Looks the data uses FastLZ
  • Author
  • Localization

aluigi, posted Fri Jul 08, 2016 7:04 am (15113)


You forgot the sample file.
That's not code to compile, it's just a C structure.
Probably this is something for the Graphics section because etx -> textures.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.