.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 2: The Ascension Wars

Reply
 
Thread Tools Display Modes
  #1  
Old April 19th, 2004, 09:31 AM

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 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]
Reply With Quote
  #2  
Old April 19th, 2004, 10:47 AM

liga liga is offline
Second Lieutenant
 
Join Date: Apr 2001
Location: Modena, Italy
Posts: 412
Thanks: 0
Thanked 0 Times in 0 Posts
liga is on a distinguished road
Default 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 ...
__________________
##############
www.liga3m.it
##############
Reply With Quote
  #3  
Old April 19th, 2004, 11:41 AM

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 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]
Reply With Quote
  #4  
Old April 19th, 2004, 12:09 PM

Pocus Pocus is offline
Lieutenant Colonel
 
Join Date: Apr 2003
Location: Nuts-Land, counting them.
Posts: 1,329
Thanks: 1
Thanked 0 Times in 0 Posts
Pocus is on a distinguished road
Default 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.
Reply With Quote
  #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
  #6  
Old April 19th, 2004, 05:16 PM

Pocus Pocus is offline
Lieutenant Colonel
 
Join Date: Apr 2003
Location: Nuts-Land, counting them.
Posts: 1,329
Thanks: 1
Thanked 0 Times in 0 Posts
Pocus is on a distinguished road
Default 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.
Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 02:28 AM.


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