Reading a Binary Game Format in Ruby

When you say “I’m going to reverse-engineer a binary file format,” people picture C, or Python with struct , or Kaitai. Nobody pictures Ruby. Ruby is for web apps and DSLs and being pleasant; it is not, in the popular imagination, for byte-banging floats out of a 2003 racing game. That popular imagination is wrong. The reader for Codemasters’ BIGF archive format — the container that holds the AI…