.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Dominions 2: The Ascension Wars (http://forum.shrapnelgames.com/forumdisplay.php?f=55)
-   -   Better randomization in my DomScripts (http://forum.shrapnelgames.com/showthread.php?t=18807)

Leif_- April 19th, 2004 09:31 AM

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.

liga April 19th, 2004 10:47 AM

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 ...

Leif_- April 19th, 2004 11:41 AM

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 ...
<font size="2" face="sans-serif, arial, verdana">No, it actually comes from a (real) Norwegian traffic sign - "Warning, Troll Crossing"

Pocus April 19th, 2004 12:09 PM

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?

Leif_- April 19th, 2004 12:24 PM

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?

<font size="2" face="sans-serif, arial, verdana">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.

Pocus April 19th, 2004 05:16 PM

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?

Leif_- April 19th, 2004 05:29 PM

Re: Better randomization in my DomScripts
 
Quote:

Originally posted by Pocus:
ok, so if I would like to execute a perl script on my machine, what perl (&where) interpreter should I fetch?
<font size="2" face="sans-serif, arial, verdana">Just download the most recent one from http://www.perl.org/

I must admit I've never installed it on windows, but it shouldn't be too hard. Ask your nearest windows guru if you need any help.

Gandalf Parker April 19th, 2004 05:50 PM

Re: Better randomization in my DomScripts
 
Very nice. At first I wasnt sure if it was much different than downloading my code and pulling down yabasic to run it. But you have added some nice features in the .ran files.

Gandalf Parker April 21st, 2004 02:58 PM

Re: Better randomization in my DomScripts
 
Ahhhh. VERY interesting. You have started adding .map files using your .ran files. Not only did I get a Random_5.map I also got an AgeofHoofs.map and a HoburgMadness.map
Very nice.

Maybe I should start adding Poke and RandomAI's style maps to mine. Im still working at getting your prettyfier script to work as part of my map generations. http://forum.shrapnelgames.com/images/icons/icon7.gif

Leif_- April 21st, 2004 03:25 PM

Re: Better randomization in my DomScripts
 
Quote:

Originally posted by Gandalf Parker:
Ahhhh. VERY interesting. You have started adding .map files using your .ran files. Not only did I get a Random_5.map I also got an AgeofHoofs.map and a HoburgMadness.map
Very nice.

<font size="2" face="sans-serif, arial, verdana">Heheh. And for my next trick, I will add support for magic items and magic sites to the .ran files - without a safety net.


All times are GMT -4. The time now is 01:23 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.