Giter VIP home page Giter VIP logo

wad_packer's Introduction

WAD Packer

WAD3 packer and unpacker

WAD3 is file format for Half-Life 1, Counter-Strike 1.6, etc that built on GoldSrc engine. This project made for unpacking textures from WAD files. Also it can pack them back if it is needed. This can be useful for creating your own logos.

Features:

  • Encode BMP files to WAD
  • Decode from WAD to BMP files
  • Support of most common WAD type 43.

Requiremets for encoding BMP files to WAD:

  • BMP should have 256 or lesser color palette
  • BMP should be 8-bit bits per pixel
  • BMP shouldn't have compression
  • BMP width and height should be divisible by 16
  • BMP full size mustn't be greater than 12288 pixels
  • You have to create also BMP files with mipmaps. These are reduced copies of original images. Mipmap1 should have half the width and height of the original image. It should be named as original BMP + "_mip1" postfix. Mipmap2 should have four times less than the original image. It should be named as original BMP + "_mip2" postfix. Mipmap3 should have eight times smaller than the original image. It should be named as original BMP + "_mip3" postfix.
  • Requirements for mipmaps the same as for original image.
  • Texture name length should be 16 or lesser letters

To do:

  • Support of 40, 42 and 46 types of WAD files
  • Support WAD2

Build:

  • cd src
  • mkdir build && cd build
  • cmake ../
  • make

Usage:
  For unpacking:
    ./wad_packer.exe file.wad
    BMP files will be stored in folder with name: file.wad
  For packing:
    ./wad_packer.exe file.wad [--path path] file1.bmp path/file2.bmp path/file3.bmp
    path prefix needed if --path option is not used.
    file.wad will be stored in the same directory as wad_packer.exe.

wad_packer's People

Contributors

gbalog avatar

Stargazers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.