Further resources investigation

I still haven’t got enough information, but it’s already much more than I expected from a first quick look. Aircraft configs are pretty much exposed by debug scripts, which, for some reason, were left in the game’s data. Did the developers wanted to make life easier for those who would dig through game’s resources, or they just didn’t give a fuck? Who knows. Horizon uses DDS as a texture format, so I will not have problems with textures at least.horizon_texture

So at this phase I only need to know how to load meshes and map files. I asked a friend of mine to use PIX  to collect some information about render
plane_aabbthat could be useful in resource format research, but he returned depressed and exhausted, constantly repeating«so many batches… so many state changes… each camo layer bound as a separate texture…», so it won’t be a lot of help. Anyway, fhm file consists of 48byte header, uint32 chunks_count, chunk infos and chunks itself. NDXR-labeled chunk contains vertices and indices. I’ll post some already known data structure after I’ll obtain more info. I also found out that AH render uses triangle strips. The format is kinda odd and it’s difficult to understand their logic sometimes, but I managed to load and view various data. Some files render correctly and some looks like a complete mess, which provides me with another bit of useful information and gradually increases my understanding.probably_plane

Well, that’s definitely not a bird nor a superman.

QDF data file

The games stores its resources inside six files: datafile.qdf, datafile.qdf1 … datafile.qdf5. The structure of qdf file is pretty obvious: first comes file header, then a set of structures that describe packed files (containing file names, offsets, and sizes), and then raw files’ data. Only the first file (datafile.qdf) contains header and files information. Each qdf file has no more than 1572864000 bytes of data. So, a single packed game file could be split among multiple qdfs, which we should take into account when reading data.datafile.qdf

Assault Horizon open implementation

I decided to write an open source implementation of Ace Combat: Assault Horizon‘s render and flight model.

So far, my goal is to write an open platform for further gameplay experiments.

ace_combat_assault_horizon

I love Ace Combat series and want to be able to play it in the way I want. And I want to see the guts: solving mystery of how does it work will be my special pleasure in this project. I’m using PC version’s resources in development.

In short, the plan is:

Phase one:

  • Initial game resources’ data structure research
  • Basic renderer, to allow visual testing of flight model
  • Flight model reconstruction, with aim to get it as close as possible to the original game

After this phase, prospects of the project will be much clearer.

Phase two:

  • Clean code rewrite under MIT license
  • Further resources’ formats research
  • Advanced renderer, attempt to recreate original AH’s eye-candy graphics.

As long as I will not provide original AH resources in my releases and will not use disassembly to get original algorithms, I hope it will not violate original game creator’s license.