Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3284530
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T20:09:54+00:00 2026-05-17T20:09:54+00:00

A couple of days ago, I asked how you could reverse engineer a file

  • 0

A couple of days ago, I asked how you could reverse engineer a file format. While that didn’t really work out, someone gave me the file format. (Click Here) Thank you Xadet.

I’m still quite new to all this, and I was wondering where I should go from here. I am guessing I will have to use inline-asm in C++ to use this format, but I wouldn’t know how to actually open the file using this, or insert data into it.

So the question would be, how do I use the file format to get or insert data? And the file format looks like asm, but I don’t want to start programming in pure ASM. I’ve seen people programming asm in C++ before, that’s why I think it would be a good choice

Any help would be greatly apreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T20:09:54+00:00Added an answer on May 17, 2026 at 8:09 pm

    I assume you don’t want to have a C++ program that reads that file format document when it starts, then parses the actual data file on that basis. Instead, you just want a C++ program dedicated to reading the current version of that file format? (This is much simpler and will run faster). You don’t need to use ASM. What you do need to do is work out the C++ types that are equivalent to the names used in the format file. For example, I think DWORD is used in Microsoft languages to refer to an integer of a specific size – maybe 32 or 64 bits. Track that stuff down, then create C++ structs with equivalent members.

    For example:

    #include <inttypes.h> // if on Windows, try __int32, __int64 etc. instead
    
    typedef int64_t DWORD;  // or whatever width you find it's meant to be
    typedef int32_t WORD;
    typedef ??? ZSTR;  // google it...?
    typedef float FLOAT;
    
    struct dds
    {
        ZSTR path;
        WORD is_skin;
        WORD alpha_enabled;
        WORD two_sided;
        WORD alpha_test_enabled;
        WORD alpha_ref;
        WORD z_write_enabled;
        WORD z_test_enabled;
        WORD blending_mode; // None = 0, Custom = 1, Normal = 2, Lighten = 3
        WORD specular_enabled;
        FLOAT alpha;
        WORD glow_type; // None = 0, NotSet = 1, Simple = 2, Light = 3, Texture = 4, TextureLight = 5, Alpha = 6
        FLOAT red;
        FLOAT green;
        FLOAT blue;
    };
    
    // point p at the entire input, which you'll have loaded into memory somewhere
    // (e.g. f/stat() the file size then allocate heap and read into it, or memory map)
    const char* p = input;
    DWORD mesh_count = *(const DWORD*)p;
    p += sizeof(DWORD);
    for (int i = 0; i < mesh_count; ++i)
    {
        const dds& d = *(const dds*)p;
        // you can use d.red, d.alpha etc. here to do anything you like
        p += sizeof dds;
    }
    
    // continue processing effect count etc... in same style
    

    HTH,
    Tony

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I asked a question a couple days ago about creating INSERTs by running a
I've experienced a couple of days ago, that a problem with the name of
A couple of days ago I asked a question about how to replace and
I asked this a couple of days ago on Server Fault but am getting
I asked this question <input type="hidden" functionality issue a couple of days ago and
I asked a similar question a couple of days ago, but I'm looking for
I asked a question a couple of days ago regarding installing numpy on the
This is similar to a question I asked a couple of days ago. However,
I've asked a question here couple days ago, about how to avoid a function
I have a problem with IE7, i just noticed couple days ago that my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.