It’s been a while since I last spent time on The Settlers II maps. This is a return of a programmer so expect a lot of technical stuff that interests only few!
A year or so ago I was thinking about an online map generator, but I didn’t go very far with the idea as far as implementation goes. I have a constant issue of balancing my free time against my days spent in work, as work tends to take more off of me than I’d like it to. And my past history has shown me that I’m very bad at keeping myself continuously on just one or two projects. So how come I’m writing now?
So I’m again getting myself back on track with my project here and hopefully something nice comes out of it.
My current thoughts are based on the idea of PNG based map images that would provide the minimal required data. So far I’ve limited the needed map data to the following:
- Block 1: height map
- Block 2: texture 1
- Block 3: texture 2
- Block 5: object index
- Block 6: object type
- Block 12: resources
- Footer: animals
Leaving out the following parts of information that usually come with map files:
- Block 4: roads / empty (required only in savegames)
- Block 7: animals (use footer only?)
- Block 8: unknown / empty
- Block 9: buildable sites (can be calculated)
- Block 10: filled with 7 = empty
- Block 11: map editor cursor position / empty
- Block 13: gouraud shading (can be calculated)
- Block 14: passable areas (can be calculated)
At the moment I’m slightly stuck on getting myself to start writing the code. I guess I’m still exhausted from a very long period of work with no good vacations in between. I did have two weeks of my holidays early in the summer, and this is the second half of it right now. Other than that my days off of work have been minimal, only the few days off in spring like Easter and in winter like Christmas. This year is much better in that regard and I’ll have entire eleven days off in Christmas and New Year! Anyhow, it looks like I give my work far more energy than I should, but it also seems I’m unable to avoid giving my best at work. Tell me about it.
The next few days will show if I get my hands dirty with code. If I do, I hope what comes out of it will be useful for all of us in the community: be it the players of original The Settlers II or the folks enjoying Return to the Roots :)