Hello,
first off, I do not know German, so I am only able to use this site due to the magic of Google Translate. Sorry
for all you non-English readers.
I am trying to understand the code base. I'm stepping through the code in VS2008 and taking notes as I go.
Right now I'm looking at the Loader::LoadFilesAtStart method and seeing what the game loads and how it handles
the different file formats. Right now I understand than .BBM files contain color palettes, and that .ACT files
are color palettes as well. BMPs are images of course, and .DAT contain several different resources indexed by
IDX files. DAT is very complex because there are many different things it can contain, all of which are treated
very differently (fonts, bitmaps, etc.), so currently I'm looking at that and it's taking a lot of time.
I would like if some of the developpers could either point me to some documentation or give a high-level
overview of how the game works, to help me get up to speed more quickly. Also I have a very specific question:
in Loader.cpp at line 140 is the following code:
if(!LoadFile( i->c_str(), GetPaletteN("pal5"), load_always ) )
I wonder why is GetPaletteN("pal5") called there and what is the return value supposed to be used for. Why is
it always "pal5"?
Anyway, thanks for making your code open-source, this is very interesting. I've always wanted to understand how
Settlers 2 worked since I was a child.