Code Monkey home page Code Monkey logo

q3_weap's Introduction

Quake 3 engine weapon file 'decompiler'

as you know, cod sort of 'compiles' weapon files (probably for compressing to faster process in interpreter) and is single line file

this little console application takes filenames as program arguments and reads it then writes to new file with prefixed "fix_" on same folder as source file is with much readable content.

it simply translates

var\val\var\val

to

var:val
var:val

format.

Usage:

compilation: make CC[your_compiler_here] defaults to 'clang'

running: ./weaponfix file_to_be_decompiled -file_to_be_recompiled file_to_be_decompiled -file_to_be_recompiled you can use anything as file but file will be placed next to its original one with prefix decompilation prefix default: fix_ recompilation prefix default: comp_ if you decomp c4_mp it will be fix_c4_mp when you recomp it (fix_c4_mp), name will be comp_fix_c4_mp - before your filename specifies it should be 'recompiled'

notes:

  • note: first variable is not a variable, just a header 'WEAPONFILE' so it skips that, else? You will get wrong combinations
  • note: you may notice some variables has no value, you can assume they're null. I tried on Cod2 and Cod4, MW2 has files in .ff (fast file) so i couldn't tried yet but since same engine (Q3) is under the hood, it should work on all Q3 games, Cod, Wolfenstein, Doom etc...

q3_weap's People

Contributors

spacelatte avatar

Watchers

 avatar  avatar

Forkers

prashant-jonny

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.