View Single Post
  #5  
Old April 19th, 2004, 12:24 PM

Leif_- Leif_- is offline
Sergeant
 
Join Date: Sep 2003
Location: Norway
Posts: 346
Thanks: 0
Thanked 0 Times in 0 Posts
Leif_- is on a distinguished road
Default 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]
Reply With Quote