cephalo
Deity
EDIT2: On thinking about this, a better approach would be to make a value scale. The first part is to make the behavior of self.hmWidth and self.hmHeight consistent. That is, their values should be Width = 144 and Height = 96, according to the current script. The '+1' to self.hmHeight for wrapping should be added in the 'wrap options' code. This leaves us the following table of values:
This map uses midpoint displacement to generate the landforms, so the hmWidth and hmHeight variables have to always be evenly divisible by the hmMaxGrain variable, which must be a power of 2. The max grain blocks must be repetitively divisible by 2 all the way down to 1. i.e. 16 - 8 - 4 - 2 - 1.