Page 1 of 1

[Request] Expose map configuration

Posted: Mon Jan 26, 2015 2:24 am
by kosievdmerwe
As part of working around the bug where water spawns outside the starting area I created a mod that replaces water outside the starting area, when you are on a ribbon or column map. However, doing it perfectly was impeded by the fact that my mod doesn't know any of the following information:
  • Whether I'm playing a scenario or free play map
  • The size (width and height) of the map
  • What the configuration of the water (or other ores) is.
  • The size of the starting area
In case anyone is interested, I got around these, by assuming I'm always playing on free play, looking at tiles 50 tiles from the center in each direct and seeing if they were 'out-of-map' (if any were then the map is considered a ribbon/column map), assuming water is only restricted to the starting area on ribbon/column maps and that the starting area is 100 by 100. Clearly this is sub-optimal but good enough for my purposes.