Mape now supports new map scripts
Posted in Development on August 10th, 2014 by Pyrit – 5 CommentsDesigning an interesting landscape is one of the most crucial steps in designing a good scenario in Clonk. There are basically two kinds of landscapes in OpenClonk. Static ones and dynamic ones.
Static landscapes are defined by a simple bitmap in the scenario file. They are easy to create and can be really beautiful if they are done right. But one drawback can be that the landscape will always look the same every time you play the round.
If you look for more variety and a high replay value in your scenario you’ll probably choose to use dynamic landscapes. And Mape is the tool you want to use when it comes to creating dynamic landscapes for clonk. While you are editing the code that will generate the landscape Mape shows a little preview of the map in realtime in the bottom right corner. It also features syntax highlighting and reports eventual errors in the code.
Download Mape (Latest Snapshot)
The classic way to create dynamic landscapes is to define it with a special syntax in the Landscape.txt. This offers a limited amount of freedom in the creation of your landscape because there is a certain number of patterns you could use for composing the landscape and you gotta stick with those.
Starting with OpenClonk 4.0, Sven2 enabled users to create even more complex and interesting maps, using a simple C4Script in the Map.c. C4Script gives you full control and freedom over the dynamic landscape generation. If a certain pattern is not predefined, you can just define your own functions and do all sorts of crazy stuff that wasn’t possible before! For example, put a dynamically generated castle with rooms and corridors at a fixed (or also dynamic) position on top of a mountain.
The next logical step was to make this new way to generate landscape work with Mape, so users have a fast comfortable way of editing these scripts. Thanks to Clonk-Karl, Mape is now “insanely useful again”, as he implemented support for the new map scripts generator.
We are looking forward to see which great new maps these new features will give us.