Saturday 19 September 2009 - Filed under Uncategorized
I was hacking on Age of Empires (the first/decent one) again this week, and have decided to open up my DRS and SLP parsers for whoever wants to use them.
So here’s libaof, a lightweight C API for efficient DRS and SLP access. It uses MapViewOfFile on win32, and can be easily adapted to use mmap on POSIX systems.
The SLP (compressed sprite) renderer is nowhere near complete, and quite broken, but everything else works rather well. The DRS stuff is rather solid – too simple to be broken?
If anyone wants to use this library, they are welcome to – within the terms of the GPL3. (Edit: Removed some unnecessary comments on BSD vs GPL). FreeAOE, if you’re still alive, go nuts. Similarly, contributions (particularly to add more data formats, or to fix the bugs in the SLP opcode parser) are very welcome.
2009-09-19 » admin