Random Map Generator
PostPosted: 27 Feb 2017, 19:05
This script converts 1 number (it is called Seed) into totally new map. You can specify it in parameter INIT_SEED in the script file or let script to generate Seed randomly.
Download from
Short version: Seed -> random number generator (modification of xorshift32 - provide 2^31 original maps ) -> the modification of Diamond-square algorithm (initial grid of points instead of 4 points, works without noise) -> 1 cycle of cellular automata with specific rules (fixing shapes to secure smooth transition) -> shape detection and creation of biomes (secure balanced distribution of resources in map) -> tile and height assignment (huge performance impact) -> object creation.
Note: generated trees cannot be cutted down by woodcutters because of bug in command actions.ObjectSet (KaM version r6720). If you dont want generate initial forests change constant FORESTS to FALSE.
Download from
How it works?
Short version: Seed -> random number generator (modification of xorshift32 - provide 2^31 original maps ) -> the modification of Diamond-square algorithm (initial grid of points instead of 4 points, works without noise) -> 1 cycle of cellular automata with specific rules (fixing shapes to secure smooth transition) -> shape detection and creation of biomes (secure balanced distribution of resources in map) -> tile and height assignment (huge performance impact) -> object creation.
Note: generated trees cannot be cutted down by woodcutters because of bug in command actions.ObjectSet (KaM version r6720). If you dont want generate initial forests change constant FORESTS to FALSE.