Texture regions

I just wanted to know which parts of textures are actually drawn by the game. So it uses two simple triangles and both triangles use the same texture. On flat surface the triangle is within roughly a 31 x 30 rectangle, but it can stretch by one additional pixel to both directions to 32 x 31 when drawing slopes.

The image below is most helpful when looking at it with some additional zoom. Things to note:

  • Barely any water pixels are drawn; the ones that are drawn are leaked from the right side of the texture
  • Most of yellow comes from the right side of the triangles, barely any from left side
  • Top right magenta pixel makes an appearance
  • Top right green pixel below magenta doesn’t
  • Magenta midpoint pixels don’t make an appearance
  • Green pixel above right one does; the one below doesn’t

Texture triangles

This is only interesting if making texture mods or adjusting RttR rendering, but at least it has now been researched and somewhat documented :)

A new upcoming settlerish game

Dot Age (.Age) is a village simulator that combines itself with a roguelike. It doesn’t really look or feel like a Settlers game, but it has some similarities:

  1. You build things
  2. You gather resources
  3. People do their things

Everything else is quite different. Dot Age is turn based and does not have a competing player. Your enemy is the nature: diseases and events will throw the challenge at you. Also, it is a bit funny when you game over to mass diarrhea.

Dot Age buildings

A few of Dot Age’s many buildings; you get random ones on each playthrough

The game has been greenlighted on Steam a month ago and the dev is aiming for end of the year release.

Campaign mission tool released

Nick Beer has made a nice command line tool for creating your own missions, including simple victory conditions and story. There are still many missing features and it isn’t particularly user friendly as it is now, as you can’t just run it and magic happens, but it is the first tool available in years for making missions that is also free to use! If I recall correctly all the previous tools have been payware and only available in German language.

Go ahead and download S2 Map2Mission and read how to set it up and use it!

As a side note: our online Map Generator does not currently support harbor generation. Adding the support is possible, but I’d rather make it “properly” instead of just quickly hacking it in. Doing it well makes it impossible for you to generate harbor maps that aren’t truly playable.

DOSBox emulation soon viable in a browser!

Internet Archive has published quite a few MS-DOS games on their website, ready to be played! Some of the notable titles include Jazz the Jackrabbit, Commander Keen 5, Tyrian and Stunts. Yup, there is no Settlers II, at least not yet.

However since things are looking quite good there is a possibility for the future: it may be possible to generate maps and run an immediate trial of it on demo version of The Settlers II right here on this site! I hope things advance nicely during this year so that DOSBox running in a browser no longer lags too much and won’t cut music as much as it does now. Mouse may also be a bit of an issue right now, at least it didn’t follow my actions properly when I tried to play Triplane Turmoil.

Anyway, great new possibilities are clearly going to happen this year, or soon enough!

Happy New Year 2015 to everyone!

Bugs in the original game

Just some random bugs that I’ve noticed while playing.

  • You can control the number of soldiers that you have in all of your military buildings. If you don’t have enough soldiers and you set the setting to maximum and then back to minimum the game will keep on moving soldiers back and forth until each building has been visited by the requested number of soldiers. Ie. if you have only one extra soldier it will keep moving back’n’forth between a military building and your Headquarters until it has visited every military building as many times as there are missing slots.
  • If you pause the game and load a game the pause will remain in effect, except that the game will play. You just can’t control it and the screen is dark. You can do this multiple times until you can’t really make any sense of what you see on the screen.
  • Sometimes the game allows more soldiers to go into a military building than it has slots for soldiers.
  • Soldiers can get stuck facing each other when they’ve been on an attack mission.
  • Fisher and stonemason won’t give a notice that there is no more accessible fish/stone if the site where there still is a resource is blocked by terrain (ie. swamp) or indestructible object (pine tree, or a tree that was falling when woodcutter’s hut was destroyed). FYI: Settlers II.net Map Generator has been written so that these conditions won’t happen!

Have you noticed any interesting bugs? We can’t really get any fixes these anymore, but knowing about these bugs may be nice-to-know information when implementing similar game mechanics in other games (such as Return to the Roots, Widelands and maybe other future projects).

One thing I’ve noticed while playing GoG.com version of the game is that I don’t really have crashes with it. Or maybe the maps generated by Map Generator avoid bugs in the game? I haven’t really played any other maps recently.

Map Generator improvements this week

There have been some nice changes during the past week, although not many of them as visible as some people might like them to be.

  • Development has branched to a new GitHub version.
  • Old version has been made available as well.
  • Maps are now perfectly compatible with The Settlers II.
  • Some very nice speed optimizations that make generating a map 100% faster than it was.
  • Also some bugs have been fixed while doing the optimizations.
  • Height map generation has been improved, better looking mountains (less “rings”).
  • There is more variety in landscape: coasts and swamps have been implemented, and there is mountain meadow around mountains.

Up next:

  • Improve user interface!
  • Bring more customization options back!
  • Provide different kind of presets to make it easier to generate maps to one’s liking.

Visit the Map Generator! Or try the older one if you want to play around with more options.

Important milestone!

The map generator now generates maps that are playable right away in RttR! Resources, trees and granite are now placed on the map so there is something to play with. Some final touches are still needed to make sure the compatibility with old game is established. In the meanwhile the original Map Editor can be used to load and then save the map and then the map becomes playable in the original game as well!

Once the project can save proper maps that also work on S2 directly with no assistance from an another tool I will put it on GitHub. Hopefully there are developers out there with a passion for better experiences :) There are many things that can be improved and I can’t wait to see ideas other than my own that make up a good map generator!

Generate maps!