Packer and unpacker for the .res file in the game Sacred.