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

This Month's Specials

The Star & the Crescent- Save $9.00
winSPWW2- Save $6.00

   







Go Back   .com.unity Forums > Illwinter Game Design > Dominions 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old June 13th, 2007, 05:34 AM

J Henry Waugh J Henry Waugh is offline
Corporal
 
Join Date: Feb 2004
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
J Henry Waugh is on a distinguished road
Default Dominions 3 Random Game Generator

http://hockeystory.com/dom3draw/index.php

Just a silly little script I composed to generate random Dominons 3 map/game settings.

The map settings are for the random map generator in the Game Tools menu.

Most of the values generated are on a "gaussian" curve � meaning, randomly they'll hover about the default. For instance, the "default" value for seapart is 30 so a 20 sided die is rolled 20 times and the number of times the value is less than or equal to 6 is tallied, then multiplied by 5, giving the setting. Similarly, for research speed, a three sided is rolled three times, and a the tally for the value one determines the setting (i.e., 0 for easy, 1 for standard, 2 for difficult, 3 for very difficult).

Some values are totally random � like the provinces per nation, which is a random mark between 10-20, and the choice of the three ages.

Makes for some interesting arrangements, given that most values will hover around default, but some will float a bit above/below. Granted, some combinations produced are implausible and unplayable (for instance, drawing 2 water nations on map that has no water provinces), but I've used it for quite a number of 1v1 skirmishes and it's taught me a bit about the game and the different nation strengths and weaknesses.
Reply With Quote
  #2  
Old June 13th, 2007, 12:02 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: Dominions 3 Random Game Generator

Interesting. I never did get the hang of PHP.
You should have it generate the command line so they can cut-n-paste it to run the game.

And maybe add random AIs which might be randomly allied against you.
__________________
-- 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
  #3  
Old June 13th, 2007, 12:54 PM

J Henry Waugh J Henry Waugh is offline
Corporal
 
Join Date: Feb 2004
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
J Henry Waugh is on a distinguished road
Default Re: Dominions 3 Random Game Generator

I have a command line version, though it's PHP5 (though PHP4 is on Mac OS X by default). Would probably rewrite in Ruby if I could ever figure out how to fire off my Dominions 3 from command line (I get some strange error, and I believe I need to cd into a proper directory, I think I had the same fiddling chore with Dom2).

And the command line options seem to have more granularity on map options (i.e., "ruggedness", v. all the settings not seen on the Game Tools Random Map AI).

I typically run Dom3 in windowed mode to easily create map and game (titled with random place name I generate)�

And when I get a moment will enable web user to choose # of players instead of it being random (a weighted random too)�
Reply With Quote
  #4  
Old June 13th, 2007, 02:35 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: Dominions 3 Random Game Generator

If you are going to get into choices, then you might want to look at this.
Feel free to copy it.
http://www.dom3minions.com/lab/MakeGame.htm

Thats as far as I got. I have a bad habit of only doing something up to the proof point. Its only interesting to me if I am wondering whether or not its possible. Then I lose interest and never finish it
__________________
-- 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
  #5  
Old June 13th, 2007, 05:05 PM

J Henry Waugh J Henry Waugh is offline
Corporal
 
Join Date: Feb 2004
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
J Henry Waugh is on a distinguished road
Default Re: Dominions 3 Random Game Generator

Quote:
Gandalf Parker said:

Thats as far as I got. I have a bad habit of only doing something up to the proof point. Its only interesting to me if I am wondering whether or not its possible. Then I lose interest and never finish it
Yes, I have that habit too�

I'll probably just add a few options - starting nation total (sometimes you X players or you just want to do 1v1 skirmish or maybe try something funny). Perhaps a Nation/Age select too�

�really just wrote it to inject variety and get cool playing maps (or at least variations) - and I had one for Dom2 as well as a random map creator that I could never load to the web -- it relied on Perl/ImageMagick (and C to do actually generate the terrain) because the shared host I was on at the time did not support ImageMagick or at least the version I had tested with on my local machine. But it did hex maps (though I created a cool combo fractal/map gen algorithm modified a tad from various other engine code I scryed upon�) and I used em for SP games.

I was pretty pleased with the Dom3 random map generator but noticed it trended to the same sort of maps unless you fiddled with the Game Tools yourself� �I like the maps it makes though I wish it could do both impassable mountains and mountain provinces (or is that a game engine limitation?).
Reply With Quote
  #6  
Old June 13th, 2007, 05:44 PM
paradoxharbinger's Avatar

paradoxharbinger paradoxharbinger is offline
Sergeant
 
Join Date: May 2004
Posts: 338
Thanks: 0
Thanked 0 Times in 0 Posts
paradoxharbinger is on a distinguished road
Default Re: Dominions 3 Random Game Generator

it's not a game engine limitation as far as i know, it has to do with how the neighbors are set up. impassable mountains just happen to be on a border and the link between the two provinces is not made.
__________________
ParadoxHarbinger's MapGen New Site!

Get The MapGen Alpha

Get The Dom3 Unit Maker

I'm shoulder high in crap, and my water-wings are flat!
Reply With Quote
  #7  
Old June 13th, 2007, 06:28 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: Dominions 3 Random Game Generator

What kindof maps? I like to generate maps with LOTS of chokepoints. Like this..
Tri-Mega map
I have considered writing a program to work around the mountains thing. You could generate a map with regular mountains. And then find/delete appropriate neighbors in the .map file. But the .map commands include a terrain setting for mountain and border mountain. Im not sure if the game itself treats that terrain setting different or not. They use the same icon but if you assign both to a province then when the player checks it he sees two mountain icons. I dont know if that gives double-mountain bonuses or not.

ImageMagick huh? Any good with it? The documentation sucks and its so jargon-heavy with graphic/paint/programming jargon that it seems like you have to be an expert in more than one thing to use it.

Ive used it to generate webpages. Like for the daily random maps I generate for Dom2. Dom2Minions.com daily random maps
I keep meaning to redo that for Dom3 and include new map generators, and new map versions such as ParadoxHarbinger's which can generate wraparound maps
Max One PHMAP
and Ballbarians SemiRandomizer
SemiRand
and other oddities such as my chaotizier or for Tower Maps
tower (hard to see in some browsers)

Unfortunately thats another of those "do it again because I did it before" projects that I cant seem to get motivated on. Just not enough challenge to it.
__________________
-- 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
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 05:15 PM.


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