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

This Month's Specials

Raging Tiger- Save $9.00
World Supremacy- Save $9.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
  #7  
Old April 19th, 2004, 05:29 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:
ok, so if I would like to execute a perl script on my machine, what perl (&where) interpreter should I fetch?
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.
__________________
"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
  #8  
Old April 19th, 2004, 05:50 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #9  
Old April 21st, 2004, 02:58 PM
Gandalf Parker's Avatar

Gandalf Parker Gandalf Parker is offline
Shrapnel Fanatic
 
Join Date: Oct 2003
Location: Vacaville, CA, USA
Posts: 13,736
Thanks: 341
Thanked 479 Times in 326 Posts
Gandalf Parker is on a distinguished road
Default 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.
__________________
-- DISCLAIMER:
This game is NOT suitable for students, interns, apprentices, or anyone else who is expected to pass tests on a regular basis. Do not think about strategies while operating heavy machinery. Before beginning this game make arrangements for someone to check on you daily. If you find that your game has continued for more than 36 hours straight then you should consult a physician immediately (Do NOT show him the game!)
Reply With Quote
  #10  
Old April 21st, 2004, 03:25 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 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.
Heheh. And for my next trick, I will add support for magic items and magic sites to the .ran files - without a safety net.
__________________
"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
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 08:06 AM.


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