Map Generator

Speak about everything in regards to Crossfire.

Moderator: Board moderators

Post Reply
Flank
Newbie
Posts: 4
Joined: Tue Dec 18, 2007 4:34 pm

Map Generator

Post by Flank »

I am looking to create a totally new world map for my server, is there any random world generator i can use to create the landscape? Or is there any pre-made map without dungeons, and cities?

Help much appreciated!
mwedel
Regular
Posts: 86
Joined: Tue Jul 17, 2007 5:23 am
Location: Santa Clara, CA, USA

Post by mwedel »

There isn't anything perfect out there.

The land.c program (in the maps directory, Info subdirectory) was used to make the base for the current world map. There are a bunch of different options that change behavior. However, that is really just designed to generate a fairly large single land mass. Also, the selection of train in that program is fairly simplistic - high terrain=mountains, medium=hills, lower=forest, lowest = swamp or grass, and then water.
Flank
Newbie
Posts: 4
Joined: Tue Dec 18, 2007 4:34 pm

Post by Flank »

Thanks that worked perfectly :)
Flank
Newbie
Posts: 4
Joined: Tue Dec 18, 2007 4:34 pm

Post by Flank »

Well i spoke to soon, i got the file compiled and it creates two files, pmap and lmap, what do i do w/ these files? they dont appear to be any type of map file
mwedel
Regular
Posts: 86
Joined: Tue Jul 17, 2007 5:23 am
Location: Santa Clara, CA, USA

Post by mwedel »

If you run the created binary with -m, it will write out crossfire formed maps.

The lmap file is in pbm format - most unix utilities (like ImageMagick's display) can understand the format. Often desirable to look at that lmap to see if the generated map looks sort of like what you want it to be like - if so, then you can re-run the program with the -m option to make the maps.
Post Reply