Skip to content
Rita Bártfai edited this page Jan 26, 2016 · 9 revisions

Welcome to the CodeMetropolis wiki!

Cumulative flow diagram: https://docs.google.com/spreadsheets/d/12WAAlJYf1H3XvC4GrA3H2rUUWhp40h-Pk7q3AH5ONwg/edit?usp=sharing

Let's see the whole progress in the following diagram:

Process of generating city from code

Running SourceMeter, we get the graph file, which is required for the Mapping Tool as input. The Mapping Tool will generate an XML file for the Rendering tool, which will generate an other XML from it for the Rendering Tool. Rendering Tool will produce the world, which can be played in MineCraft client. You can find the generated world in the output directory. You have to copy this folder to the “saves” folder in root of Minecraft. You can usually find it at “C:\Users<username>\AppData\Roaming.minecraft" directory.

The mapping file is an XML file, which contains the definition of different metrics:

Part of the mapping file

This is the input of the Mapping Tool. The output is also an XML, which will be the input of the Placing Tool:

Part of the mappingToPlacing.xml

The Placing tool generates an XML file, which will be the input of the Rendering Tool. This picture shows a part of it:

Part of the placingToRendering.xml

The output XML of Mapping and Placing Tool are very similar at first sight. The main difference between them is that the mappingToPlacing.xml contains only the structure and the main attributes of the city, while the second one describes the size of inner buildings, like floor and cellar.

Clone this wiki locally