Some semi-random thoughts on terrain generation
The ini files really should not have multiple values with the same name in a single section. And very specifically the order in which the lines appear must not be critical to the application, because the lines may be shuffled at any time.

Of course, MCServer has already broken the first rule, but I'd like to keep that breach to the minimum (currently only Plugins and Worlds). And we haven't breached the second rule at all. Actually we make it very important not to be broken - MCServer's parser already shuffles the lines, moving all the comments to the top of the section.
(11-12-2012, 01:07 AM)Taugeshtu Wrote: A veins of air

Otherwise known as caves Wink
Nicer syntax:
Code:
[Generator]
Structures=OreNests,...
OreNests=Iron,Gold,Air,Water

[OreNests_Iron]
BlockType=ironore
Size=8
Count=5
MaxHeight=63
Biomes=

[OreNests_Water]
BlockType=water
Size=12
Count=3
Biomes=Jungle,Swamp

...

Problems with the syntax:
- what if the orenest is declared in the [Generator].OreNests, but its corresponding section is not found?
- what is a parameter from the section is missing? What default to use? Especially for Size and Count
Reply
Thanks given by:


Messages In This Thread
RE: Some semi-random thoughts on terrain generation - by xoft - 11-12-2012, 01:12 AM



Users browsing this thread: 3 Guest(s)