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.
Zero Tolerance for Disrespect

Primitive wars .mcs .dat extract

Featured Replies

  • Localization

Hi everyone: I’m looking for help deciphering the image compression used in Primitive Wars (2001).

I am trying to extract textures and UI bitmaps from the .mcs and .dat files-

Can anyone help me with a QuickBMS or Python script to extract the images?

I’ve attached a RAR file containing two files and the information an AI managed to glean from the game executable.

COPY

RGB565 (16 bits per pixel, no palette—which explains why Mousec.dat wasn't a palette; it has high entropy because it's something else entirely, likely unrelated to the textures)

32×32 pixels, stored in column-major order (by columns, not rows)

100 frames of 2048 bytes each = the complete file

32-byte header: [16=bpp, 100=frames, 32=width, 32=height, 1,1=hotspot, 0,0=reserved]

UNCOPY

Thanks in advance!

primitive wars mcs dat.rar

Solved by Hazza12555

  • Localization
  • Solution

mcs is a simple uncompressed file holding raw 16-bit RGB565 pixels

for the .dat i'm unsure if it's encrypted or compressed.

if you could, send over the .exe and some more .dat samples

here is a script for the mcs files for now

mcs_extract.py

Edited by Hazza12555

  • Author
  • Localization

Hi @Hazza12555 ! Thanks so much again for all the times you've helped me! It worked perfectly! Now I can replicate the script with other MCs and extract the textures correctly. You're a genius—I really appreciate it, Hazza!

Create an account or sign in to comment

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.