mycophobia
Warlord
- Joined
- Oct 14, 2017
- Messages
- 100
I looked over darkpanda's excellent explanation of Civlization 1's map generation here: https://forums.civfanatics.com/threads/civ1-map-generation-explained.498630/ and wanted to adapt the landmass generation to a Civ 4 map script cuz I just like those kinds of maps. Rivers, features and resources are all handled by Civ 4's stock functions.
I implemented everything as accurately as I could and made it adaptable to any map size. One change is that I added a check for coastal mountains which will get replaced with regular land due to their impassibility. There is also an option to use the map size as a parameter by which to scale the number of map tiles to however many civs are in the game; meaning if you select Standard and leave the default number of civs (7) then you get a map size of 7 * 571.42 rounded down (3999), which is close to the normal Standard map size, however if you only add 4 civs with this option on then you get 4 * 571.42 (2285). So there's a good deal of versatility in terms of precise map sizes, from 18 civs on Duel yielding ~2571 tiles, roughly the size of the normal Small map, to 2 civs on Huge yielding 1714 tiles.
I implemented everything as accurately as I could and made it adaptable to any map size. One change is that I added a check for coastal mountains which will get replaced with regular land due to their impassibility. There is also an option to use the map size as a parameter by which to scale the number of map tiles to however many civs are in the game; meaning if you select Standard and leave the default number of civs (7) then you get a map size of 7 * 571.42 rounded down (3999), which is close to the normal Standard map size, however if you only add 4 civs with this option on then you get 4 * 571.42 (2285). So there's a good deal of versatility in terms of precise map sizes, from 18 civs on Duel yielding ~2571 tiles, roughly the size of the normal Small map, to 2 civs on Huge yielding 1714 tiles.
Attachments
Last edited: