.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
  #11  
Old February 18th, 2009, 02:06 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: Nation Library

Quote:
Originally Posted by Aezeal View Post
Well I guess that means Gandalf will have to do it himself

I'll be awaiting the results
That might be a long wait.
I have many projects in the Map and Server categories which are higher on my list. Im moving thru them fairly quickly but the only mods I do tend to be either small or of more interest to me personally than this. This strikes me as mostly an MP mod. It also strikes me as a mod which would require occassional updates to stay current. Something I try to avoid.

So unless one of the "its really simple, do it yourself" suggesters provides a nice public domain example/template I will probably limit myself to encouraging others, and offering to host the results.
__________________
-- 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
  #12  
Old February 19th, 2009, 04:38 AM
lch's Avatar

lch lch is offline
General
 
Join Date: Feb 2007
Location: R'lyeh
Posts: 3,861
Thanks: 144
Thanked 403 Times in 176 Posts
lch is on a distinguished road
Default Re: Nation Library

Quote:
Originally Posted by llamabeast View Post
(trivial is something mathematicians say about things which are too faffy to actually do)
It's mathematician's code for "do it yourself if you really care", yes. With a bit of "it doesn't take much brains to do it, but it's time-wasting labor, and it bores me to tears".
__________________
Come to the Dom3 Wiki and help us to build the biggest Dominions-centered knowledge base on the net.
Visit my personal user page there, too!
Pretender file password recovery
Emergency comic relief
Reply With Quote
  #13  
Old February 24th, 2009, 10:06 AM

pyg pyg is offline
BANNED USER
 
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
pyg is on a distinguished road
Default Re: Nation Library

Quote:
Originally Posted by chrispedersen View Post
Many times, multiple people would like to play the same nation.

If each nation were defined in a mod, the game moderator could add however many nations in each game.

For example, you could have two lankas in a game - and three ulms.

For the ulmish civil wars, I have done ulm. Would anyone else be willing to help out with this project?
I've had mostly the same idea. Of particular interest to me is a game where all the banned nations can fight it out.

I disagree with the other posters that it's a trivial exercise. Duplicate copied nations have to be cleared and everything added back in including recruitables, fortresses, nationals, dom effects, pretenders, PD, etc. But once all that has been figured out and written down somewhere it is trivial to whip up a mod with the duplicate nations.

I have some interest in helping with the project, mostly with the automation part of it which I'm currently developing in python.
Reply With Quote
  #14  
Old February 24th, 2009, 11:51 AM
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: Nation Library

Edi's database covers that much of that territory. Listing the units per nation. And possibly the pretenders.

Python would be a good choice for such a program.

Gandalf Parker
--
per peer-pressure preoccupation
My maps, mods, and mullings can be found at
http://www.Dom3Minions.com
Reply With Quote
  #15  
Old February 24th, 2009, 05:33 PM

chrispedersen chrispedersen is offline
BANNED USER
 
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
chrispedersen is on a distinguished road
Default Re: Nation Library

Doh, wish I had known that... I did it manually.
Reply With Quote
  #16  
Old February 26th, 2009, 03:26 PM

pyg pyg is offline
BANNED USER
 
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
pyg is on a distinguished road
Default Re: Nation Library

So I have a prototype now with dmg (DomModGen) I used chrispedersen's UlmCivilWar mod as an example and wrote the equivalent of his second nation (Tolkein's) with dmg classes and methods. The last couple of lines wrap the nation in a mod and printing it lets you >file.dm or |more to test. This example is included in the dmg.zip if you want to mess with it. I've included variable names and snipped text for readability. Anyway just applying a loop, incrementing the slot, and changing name could generate chris's mod. Seems to be missing unique pretenders unless LA Ulm doesn't have any.... and dmg is missing it because there has not yet been a need This has not been well tested so bugs are probable but I started a game with it and it looked Ulmish.

Code:
#!/usr/bin/env python                                                                                                       
from dmg import D3MNation, D3M

era = 3
slot = 73

LA_Ulm = D3MNation(era,
                   slot,
                   name = "CountVonTolkien",
                   brief = "Ulm is a human kingdom... snipped ...trade in the arcane.",
                   summary = "Race: Stocky humans... snipped ...Priests: Weak.",
                   flag = None)
LA_Ulm.add_units([482,1013,1014,1015,1017,1034])
LA_Ulm.add_commanders([1016,1018,739,740,1023,1012])
LA_Ulm.set_PD(defcom1 = 1016,
              defcom2 = 739,
              defunit1 = 1013,
              defunit1b = 482,
              defunit2 = 1024)
LA_Ulm.add_site("The Ruined Keep")
LA_Ulm.add_site("Black Forest")
LA_Ulm.add_site("The Black Temple")
LA_Ulm.set_forts(castleprod = 25,
                 startfort = 3,
                 defaultfort = 8,
                 farmfort = 3,
                 forestfort = 35,
                 mountainfort = 6,
                 swampfort = 11)
LA_Ulm.set_startarmy(startcom = 1016,
                     startscout = 1018,
                     startunittype1 = 1013,
                     startunitnbrs1 = 8,
                     startunittype2 = 1015,
                     startunitnbrs2 = 8)
LA_Ulm.copy_national(spell = "Sanguine Heritage",
                     new_name = "Tolkien's Taking",
                     new_desc = "And so it is given, One from another, for time immemorial.")

new_mod = D3M(era = era, modname = "LA_Ulm Test")
new_mod.add_nation(LA_Ulm, slot = slot)

print new_mod
Reply With Quote
The Following 2 Users Say Thank You to pyg For This Useful Post:
  #17  
Old February 27th, 2009, 02:24 AM

chrispedersen chrispedersen is offline
BANNED USER
 
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
chrispedersen is on a distinguished road
Default Re: Nation Library

You guys never cease to amaze me.

I did make a bug in the original mod (obviously not your fault). The corrected mod adds 4 new spells, you can grab it from the Ulm Civil War thread.

Note however I was lazy on the spell descriptions.
Reply With Quote
  #18  
Old February 27th, 2009, 01:47 PM

pyg pyg is offline
BANNED USER
 
Join Date: Jan 2009
Location: a small farm
Posts: 340
Thanks: 73
Thanked 103 Times in 42 Posts
pyg is on a distinguished road
Default Re: Nation Library

I hope it's not abuse to paste in another big chunk of code, but I rewrote the ulm.py example to actually do chrispedersen's whole mod in 46 lines although some of the description text is snipped. This is the terse version. I've attached the actual output as ulm.dm.zip.

Code:
#!/usr/bin/env python                                                                                                       
# -*- Mode: Python; tab-width: 4 -*-                                                                                        

from dmg import D3MNation, D3M

era = 3
slot = 72
players = [("BlackChris", "BlackChris"),
           ("Tolkien", "CountVonTolkein"),
           ("CountSzendry", "CountSzendry"),
           ("SteurmMithras", "SteurmMithras"),
           ("PrinceLaveare","PrinceLaveare"),
           ("AdjuctantDedas","Adjuctant Dedas"),]
new_mod = D3M(era=era, modname = "UlmCivilWar")

for player, nation in players:
    LA_Ulm = D3MNation(era, slot, nation,
		       brief = "Ulm is a human kingdom... snipped ...trade in the arcane.",
		       summary = "Race: Stocky humans... snipped ...Priests: Weak.")
    LA_Ulm.add_units([482,1013,1014,1015,1017,1034])
    LA_Ulm.add_commanders([1016,1018,739,740,1023,1012])
    LA_Ulm.set_PD(1016, 739, 1013, 482, 1024)
    LA_Ulm.add_site("The Ruined Keep")
    LA_Ulm.add_site("Black Forest")
    LA_Ulm.add_site("The Black Temple")
    LA_Ulm.set_forts(25, 3, 8, 3, 35, 6, 11)
    LA_Ulm.set_startarmy(1016, 1018, 1013, 8, 1015, 8)
    LA_Ulm.copy_national(spell = "Sanguine Heritage",
                         new_name = player + "'s Taking",
                         new_desc = "And so it is given, One from another, for time immemorial.")
    LA_Ulm.copy_national(spell = "Iron Darts",
                         new_name = player + "'s Darts",
                         new_desc = "And so it is given, One from another, for time immemorial.")
    LA_Ulm.copy_national(spell = "Iron Blizzard",
                         new_name = player + "'s Blizzard",
                         new_desc = "And so it is given, One from another, for time immemorial.")
    LA_Ulm.copy_national(spell = "Pack of Wolves",
                         new_name = player + "'s Wolves",
                         new_desc = "And so it is given, One from another, for time immemorial.")
    LA_Ulm.copy_national(spell = "Sloth of Bears",
                         new_name = player + "'s Bears",
                         new_desc = "And so it is given, One from another, for time immemorial.")
    new_mod.add_nation(LA_Ulm, slot)
    slot += 1
print new_mod
Attached Files
File Type: zip ulm.dm.zip (1.0 KB, 53 views)
Reply With Quote
  #19  
Old February 27th, 2009, 02:18 PM

chrispedersen chrispedersen is offline
BANNED USER
 
Join Date: May 2004
Posts: 4,075
Thanks: 203
Thanked 121 Times in 91 Posts
chrispedersen is on a distinguished road
Default Re: Nation Library

Hmmm... I *think* I'm willing to keep working on this with you pvg. We can include the NationalLibrary as part of ChrisCBM...

If we do one nation a day.. well be done in two months....
Reply With Quote
  #20  
Old February 27th, 2009, 02:38 PM
Endoperez's Avatar

Endoperez Endoperez is offline
National Security Advisor
 
Join Date: Sep 2003
Location: Eastern Finland
Posts: 7,110
Thanks: 145
Thanked 153 Times in 101 Posts
Endoperez is on a distinguished road
Default Re: Nation Library

If you do EA Kailasa next, you could get a proof-of-concept game underway. Omnirizon, RDonJ, Hadrian II and Executor have expressed interest in all-Kailasa game. Look at page 5 of the "Kailasa guide" thread on the main forum, if you haven't already.

Nice work, both of you. I might help with a couple of nations, but not right now. I'm away from my Dominions installation for a week.

Last edited by Endoperez; February 27th, 2009 at 02:47 PM..
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:31 PM.


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