Random map generator
Moderator: Forum Moderators
Random map generator
I've gotten alot done on the random map generator I have been working on, it seems to generate mostly playable maps.
If anyone would like to give it a try it can be found at:
http://www.rpgworlds.com/~cowboy/ranmap.tar.gz
It's far from finished/far from perfect ect ect, I'm basically throwing it out for some feedback on what works, and what doesn't, and advice on how to go about various parts.
Oops - forgot to mention, you'll have to generate your own WML for the map to define the players/ect for now.
If anyone would like to give it a try it can be found at:
http://www.rpgworlds.com/~cowboy/ranmap.tar.gz
It's far from finished/far from perfect ect ect, I'm basically throwing it out for some feedback on what works, and what doesn't, and advice on how to go about various parts.
Oops - forgot to mention, you'll have to generate your own WML for the map to define the players/ect for now.
It just works. Had conversation with Cowboy at IRC [1] about features...
* Colorization (selectable) for better visualization of map to help evaluation (e.g. some scenario you have in your mind)
* Possibility to enable/disable terrains to use. e.g. I prefer manually selected places for villages and castles and maybe you might want random map without e.g. mountains.
Maybe something like this: './ranmap.pl -novillages -nocastles -nomountains -colorize'
- Miyo
[1] #wesnoth at irc.wesnoth.org
* Colorization (selectable) for better visualization of map to help evaluation (e.g. some scenario you have in your mind)
* Possibility to enable/disable terrains to use. e.g. I prefer manually selected places for villages and castles and maybe you might want random map without e.g. mountains.
Maybe something like this: './ranmap.pl -novillages -nocastles -nomountains -colorize'
- Miyo
[1] #wesnoth at irc.wesnoth.org
ranmap?miyo wrote:"ranmap" been added to CVS and it can be found under utils/
- Miyo
I found random_map.pl and I got this result when running it.
with my Debian/Linux v5.6.1
$ ./random_map.pl
./random_map.pl: use: command not found
./random_map.pl: use: command not found
./random_map.pl: line 38: syntax error near unexpected token `qw('
./random_map.pl: line 38: `use List::Util qw( shuffle );'
As miyo mentioned, I forgot to include the #!/usr/bin/perl line.gandalf wrote:ranmap?miyo wrote:"ranmap" been added to CVS and it can be found under utils/
- Miyo
I found random_map.pl and I got this result when running it.
with my Debian/Linux v5.6.1
$ ./random_map.pl
./random_map.pl: use: command not found
./random_map.pl: use: command not found
./random_map.pl: line 38: syntax error near unexpected token `qw('
./random_map.pl: line 38: `use List::Util qw( shuffle );'
If you're using perl < 5.8.0 you will also need List::Utils
apt-get install libscalar-list-utils-perl
Ya, that's required, but one day won't be.gandalf wrote:Thanks, with some editing in the multiplayer.cfg file I am now playing a random multiplayer scenario. Nicecowboy wrote: If you're using perl < 5.8.0 you will also need List::Utils
apt-get install libscalar-list-utils-perl
miyo added a bunch of command line switches today to the generator, and I'm cleaning up/optimizing logic further.
Any thoughts you have on the generator, bugs, suggestions, tiny little nitpicks would be very welcome as we try to improve it.
The following parameters could be interesting to play with.cowboy wrote: Any thoughts you have on the generator, bugs, suggestions, tiny little nitpicks would be very welcome as we try to improve it.
The number of tiles that are wood/water/hills (relative to the total number of hex tiles)
The number of villages
The number of enemies
The size of the map
* Latest version has been commited to CVS.
* Now the script contains '#/usr/bin/perl -w' so you can start it like './random_map....'
* You can get command-line switches with 'random_map -help'
- Miyo
ps. Cowboy you forgot to mention loads of bugs that I found and reported (have to maintain my reputation as bug-hunter) *grin*
* Now the script contains '#/usr/bin/perl -w' so you can start it like './random_map....'
* You can get command-line switches with 'random_map -help'
- Miyo
ps. Cowboy you forgot to mention loads of bugs that I found and reported (have to maintain my reputation as bug-hunter) *grin*