The internal structure of particle binaries consists of 2 parts:
- Header buffer (8 bytes)
- Data buffer (variable amount of bytes)
Fixed-length buffer of 8 bytes. Contains the number of particles and an unknown value which seems to serve as a version number or a format identifier.
The header buffer for the default particle file looks like this:
Variable-length buffer. Contains all particle chunks. A particle chunk consists of 2 parts: its name and its data. This is how the first 2 particle names are stored:
And here's the data for the first particle (blood). This part is 188 bytes for every particle. Not much is known about the data itself as of now.
- Unknown (probably version or identifier)
- Particle count
For every particle:
- Particle name
- Particle data
- For every particle:
There is 1 file in Devil Daggers which uses this format. This is "particle".