This tool loads an existing (empty) map file and an existing "biomap", then fills the map with objects, items and units according to the biome at the coordinates (one pixel on the biomap is a 64 by 64 square in game). It then writes the generated map, ready to be loaded in the editor.
Palm tree forest, desert, meadow, ocean, bank, mountain, ... I tried to gather "biome-like entities" in sets, and gave them a probability to appear within the given biome.
In the first example picture, deep blue is ocean, yellow is palm beach, green is forest, dark green is fir forest, light green is meadow, light blue is bank, ...
Last steps are done within the editor, where one has to put objects on the ground and energies to defined values.
I haven't dealt yet with infos or states, so there's no logic in the generated map: no spawn, no triggers, ...
The reason behind this, is I couldn't find such consistency with random maps generated by the game, and as there are maps for height, grass and color, I wanted a map for these "biomes".
For java source code, it is included in the zip file. Feel free to explore, add new features, ... Or reuse the classes that read and write map files. I tried to code as clean as possible, but I didn't take the time to make it a full app that you can run with args or config files.
Zip file content:
- S2MapEdit folder: java source code for biomes generator
- maps folder contains two maps:
--- BioGenerated.s2 and its biomap, for 3 islands and mixed biomes
--- Biomes-Isles.s2 and its biomap, for separated biomes (aka proof of concept)
Enjoy!
edited 3×, last 25.04.11 12:41:51 am
Approved by DC
Download
1.29 mb, 885 Downloads