.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 3: The Awakening > Scenarios, Maps and Mods

Reply
 
Thread Tools Display Modes
  #1  
Old October 15th, 2006, 05: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 Themed maps

I dug out an old utility I made for Domininons 2 that creates themed, randomized versions of .map files and verified that it still works with Dominions 3.

The utility is a small Perl program that basically reads a .map file and a file with the description of the theme and generates a new .map file with a themed versions.

Now, the theme descriptions (.ran files) are perhaps a little convoluted to write (I don't know if anyone but me ever wrote one for Dominions 2), but they are extremely flexible and you can do a lot with them, and these themes are a very good way (perhaps even the best, save for hand-writing .map files) to "meet exotic, interesting people ... and kill them."

You can population types either completely at random or depending on terrain, assign various numbers and kinds of commanders to provinces depending on terrain and population type, assign magic items to commanders, assign troops and bodyguards to commanders and pre-create labs, temples, forts and magic sites in provinces.

The example themes included with the program does things such as adding a dragon commander with magic items to each province, the type of dragon depending on the terrain and the choice of items depending on the type of dragon; create a huborg realm where 80% of the provinces on land are huborg, and sets up "little people" commanders and troops; one that fills the map with cavalry troops; one that sets up vampire hunters in the land provinces and vampire and undead in the sea provinces; one that fills the map with troll and vettir -- all suitably equipped, of course.

Useage and description of how to write theme files are explained in the readme.txt file.

If anyone decides to play around with this, I'd be interested to hear your experiences, and I'd also be interest in any theme files you create.
Attached Files
File Type: zip 457776-RandomizeMap.zip (89.3 KB, 175 views)
__________________
"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 October 15th, 2006, 06:53 AM

Tortanick Tortanick is offline
Corporal
 
Join Date: Mar 2006
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Tortanick is on a distinguished road
Default Re: Themed maps

WOW that sounds COOL! I'll take a little look.

You know its not that unintuative. If I had any maps to design I reckon I could learn it reasonably fast
Reply With Quote
  #3  
Old October 15th, 2006, 12:05 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: Themed maps

I take it that these could actually be run multiple times against the same map? So if I wanted to gradually work my way thru the entire units list then I could create generic boostings, and then run some specialized ones such as 10% of swamp and 10% of forest? Do those replace or add additional groups?

Are the new terrain types supported? And the new units?
I can do a strings of the game file and pull a full units list I believe. Im guessing that numbering it starting at zero should match up properly.

Are there any updated lists you need that I can strip from the game? Castles? populations? equipment? terrain codes?
__________________
-- 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
  #4  
Old October 15th, 2006, 12:16 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: Themed maps

I seem to be having trouble. The examples are great but I need to work from simplest upward in order to grasp things. Does it support randoms?

Can you make me an example that is under 10 lines? Such as one commander/bodyguard/units set which is placed at 10% of the forest terrains? That would give me something to build off of.
__________________
-- 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 October 15th, 2006, 12: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: Themed maps

Oy. I haven't actually touched this thing for years, but I'll see what I can do.

I'll get back to your questions as soon as I remember the answers.
__________________
"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 October 15th, 2006, 12:58 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: Themed maps

Right, I've attached a small example like you asked for (except I used 90% rather than 10% to make sure I could see if it was working.)

Now, to your questions.

I don't quite understand your first question. If you're thinking about running two theme files in sequence to get a "combined theme," then no, you can't do that. The program only reads topographical information from the original .map file; it ignores anything else.

No, the program is unchanged since Dominions 2, and doesn't support new terrain types. However, it always refers to units by number, not name, so it will automatically support new units. (If any of the old units have changed number in Dom3 the old .ran files might be wrong, but the actual program itself doesn't need to be changed.)

A list of all magic items and sites would be useful.

Edit: Now with attachment.
Attached Files
File Type: zip 457876-Example.zip (553 Bytes, 142 views)
__________________
"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
  #7  
Old October 18th, 2006, 02:41 PM
PvK's Avatar

PvK PvK is offline
National Security Advisor
 
Join Date: Dec 1999
Posts: 8,806
Thanks: 54
Thanked 33 Times in 31 Posts
PvK is on a distinguished road
Default Re: Themed maps

Numbers work for magic items in mods. I haven't tested in map commands yet.
Reply With Quote
  #8  
Old October 18th, 2006, 06: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: Themed maps

Toss me some number matchups to unique items. I will try numbering that list and see if it matches up. That would be handy
__________________
-- 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 10:52 PM.


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