|
|
|
|
April 19th, 2004, 09:31 AM
|
Sergeant
|
|
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Better randomization in my DomScripts
Over easter I improved the randomization code of my small scripts for generating dominion maps, and perhaps more importantly, I've finished a proper read-me which describes how to create configuration files (.ran files) for the randomization process.
The updated files, together with two example .ran files can be found at http://home.Online.no/~rmoldskr/Domi...DomScripts.zip and I've also adde the automatic generation of extra .map files to my daily generated maps. So if you want to see the result of the two .ran files included with DomScripts.zip, just download any of the random maps from http://home.Online.no/~rmoldskr/Domi...nion_maps.html
The two .ran files I've created so far is pretty much just a brief example of how to do things, and of what can be done. I'm sure people can create .ran files which makes much more interesting and balanced maps. But even if you just create .ran files for amusing maps, please send them to me so I can include them with the map-generation.
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
|
April 19th, 2004, 10:47 AM
|
Second Lieutenant
|
|
Join Date: Apr 2001
Location: Modena, Italy
Posts: 412
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Better randomization in my DomScripts
Hi,
I'm reading the readme.txt and the code of your randomization ... it's really great!
I hope people will start to prepare scenarios just like .ran files ...
thank you
Liga
Ps. does your avatar comes from the boardgames "greyhawk wars" ? It really looks like one of the units in the game ...
|
April 19th, 2004, 11:41 AM
|
Sergeant
|
|
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Better randomization in my DomScripts
Quote:
Originally posted by liga:
Ps. does your avatar comes from the boardgames "greyhawk wars" ? It really looks like one of the units in the game ...
|
No, it actually comes from a (real) Norwegian traffic sign - "Warning, Troll Crossing"
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
|
April 19th, 2004, 12:09 PM
|
Lieutenant Colonel
|
|
Join Date: Apr 2003
Location: Nuts-Land, counting them.
Posts: 1,329
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: Better randomization in my DomScripts
I must say I'm impressed by the cleverness of your randomizer. have you started from scratch, or is the idea deriving from a known operating procedure?
pl means its a perl script? Do you plan to make a windows exe of your code?
__________________
Currently playing: Dominions III, Civilization IV, Ageod American Civil War.
|
April 19th, 2004, 12:24 PM
|
Sergeant
|
|
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Better randomization in my DomScripts
Quote:
Originally posted by Pocus:
I must say I'm impressed by the cleverness of your randomizer. have you started from scratch, or is the idea deriving from a known operating procedure?
pl means its a perl script? Do you plan to make a windows exe of your code?
|
A little of this, a little of that. The basic algorithm of the randomization process is pretty close to some pseudo-code Gandalf posted a while ago (although simplified in some areas and expanded in others) and the sets are basically standard mathematical sets with an added notation to handle weights. I guess the most important design-factor was the decision that things should be as configurable as possible - after that, things sort of took their own direction.
Yes, .pl means that it is a perl script (and there's also a couple of .pm files which are perl modules.) I'm afraid I'm not going to make an executable for windows (for one thing, I figure that most people that want to make use of the scripts will alter or adapt them to their own ends), but it's only a matter of installing perl and then writing "perl randomize_map.pl map_file.map ran_file.ran" to run it.
__________________
"Freefall, my old nemesis! All I have to do is activate my compressed gas rocket boots and I will cheat you once again! Belt control ON!…On?" [i]Othar Trygvasson[i]
|
April 19th, 2004, 05:16 PM
|
Lieutenant Colonel
|
|
Join Date: Apr 2003
Location: Nuts-Land, counting them.
Posts: 1,329
Thanks: 1
Thanked 0 Times in 0 Posts
|
|
Re: Better randomization in my DomScripts
ok, so if I would like to execute a perl script on my machine, what perl (&where) interpreter should I fetch?
__________________
Currently playing: Dominions III, Civilization IV, Ageod American Civil War.
|
Thread Tools |
|
Display Modes |
Hybrid Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|