Mineserver Community

Mineserver => Discussion => Topic started by: Kieran on December 07, 2010, 05:07:53 pm



Title: Map generation
Post by: Kieran on December 07, 2010, 05:07:53 pm
Hi. I just found this, and it seems really cool. I have a question though:

Without actually having tried the server yet, I was wondmering how it works regarding map generation?


Title: Re: Map generation
Post by: Nredor on December 07, 2010, 07:01:29 pm
Mineserver uses NBT map format (same that original minecraft server) and old maps can be used in it although there will be little offset where mineserver's mapgen starts to generate chunks.

Mapgeneration itself is still not fully complete but will be quite similar to what original server has. Later we plan to implement themes for mapgeneration.

If you have some more detailed questions about map generation I will happily answer those :)


Title: Re: Map generation
Post by: Hexorg on February 24, 2011, 07:43:57 pm
Nredor, from what I understand, the seed used for map gen never changes, right?

I'm just making sure, because I was experimenting with the server (love it so much XD) and it keeps generating exactly the same terrain each time, either covered with snow or grass, depending on the config file.


Title: Re: Map generation
Post by: Nredor on February 27, 2011, 11:26:27 pm
It actually should be random..
level["Data"]->Insert("RandomSeed", new NBT_Value((int64_t)(rand()*65535)));


Title: Re: Map generation
Post by: Ligustah on February 28, 2011, 01:00:37 pm
Then what is used to seed rand() ?


Title: Re: Map generation
Post by: Matt - Kerplunc on February 28, 2011, 03:34:56 pm
(http://imgs.xkcd.com/comics/random%5Fnumber.png)