.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

Reply
 
Thread Tools Display Modes
  #21  
Old October 26th, 2006, 09:03 PM
Arralen's Avatar

Arralen Arralen is offline
Major General
 
Join Date: Nov 2000
Location: 500km from Ulm
Posts: 2,279
Thanks: 9
Thanked 18 Times in 12 Posts
Arralen is on a distinguished road
Default Re: Terrain effects-putting together the complete

Those are not the same as the randomly distributed sites. Those sites are pre-placed by the map generator and are visible on the map by little icons:

Code:

Decimal Bitmap (3byte?) 2^x Terrain
Number 321098765432109876543210

8192 000000000010000000000000 ="firesite" (vulcano)
16384 000000000100000000000000 ="airsite" (?)
32768 000000001000000000000000 ="watersite" (lake)
65536 000000010000000000000000 ="earthsite" (?)
131072 000000100000000000000000 ="astralsite" (?)
262144 000001000000000000000000 ="deathsite" (house)
524288 000010000000000000000000 ="naturesite" (?)
1048576 000100000000000000000000 ="bloodsite" (????)
2097152 001000000000000000000000 ="priestsite" (menhirs)

__________________
As for AI the most effective work around to this problem so far is to simply use an American instead, they tend to put up a bit more of a fight than your average Artificial Idiot.
... James McGuigan on rec.games.computer.stars somewhen back in 1998 ...
Reply With Quote
  #22  
Old October 26th, 2006, 11:37 PM
Ballbarian's Avatar

Ballbarian Ballbarian is offline
Colonel
 
Join Date: May 2005
Location: Kansas, USA
Posts: 1,538
Thanks: 289
Thanked 194 Times in 94 Posts
Ballbarian will become famous soon enough
Default Re: Terrain effects-putting together the complete

My impression is that they are randomly distributed sites, but random within a certain set of site types. I have not tested this, but it would appear to insure that the given province will contain at least one site out of the specified theme or grouping. I think I understand what you were saying though.

On a side note (for anyone interested) the bit math is really simple.
If you have terrain of plains (0) and want to flag it as containing a fire site (because you named it "The burning Plains"), then:
#terrain prvnbr 8192
0 + 8192 = 8192
To make that same province "nostart",
0 + 8192 + 512 = 8704

You can easily "decompile" it by simply looking at the list of values (that Gandalf kindly posted above ) and finding the largest value that will go into your terrain value and subtract it. Rinse and repeat until you have your complete list of terrain flags.

Pulled this terrain value from a random map:
524418
- "naturesite" 524288
= 130
- "forest" 128
= "large" 2

So the given province is a large forest province containing a random nature site.

(Sorry Corwin, I guess all of this really doesn't help you in your quest for modifiers.)
__________________
RanDom v2 - Map gen & Semirandomizer.
Province Editor - Custom province creation made easier.
God Editor - Custom pretender creation made easier.
Map Forge - Map editor
Reply With Quote
  #23  
Old October 27th, 2006, 06:21 AM
Corwin's Avatar

Corwin Corwin is offline
First Lieutenant
 
Join Date: Oct 2006
Location: Palo Alto, CA
Posts: 638
Thanks: 1
Thanked 3 Times in 3 Posts
Corwin is on a distinguished road
Default Re: Terrain effects-putting together the complete

Quote:
Arralen said:
This is from Dom2 - but there's no reason to assume values have changed
You can see from this that terrain does not give preference to sites of a specific path (who came up with that, anyway?), but that the sites themselves are individually restricted to some terrains. From this could result a 'preference' of e.g. nature sites in woods, simply from the fact that most sites which can appear in forests may be nature sites. That does not mean, though, that there's any 'dice bonus' for nature sites in forests.


But that exactly what I was asking about. In your example the net result is that forest provinces are more likely to have forest sites than mountain ones.

I never meant that there is a dice bonus. I simply want to put together the list of all terrain types and the most likely magic site types that they can contain. Like forest for nature, waste for death, mountain for earth, etc.

Quote:

################################################## #########

MAGIC SITE FREQUENCY
Kristoffer O posted 03 April, 2004 10:46

Not sure of the exact numbers.
(I'm not sure of the specifics. Waste might be 30, swamp and mountain 20. 'just a guess.)
I guess it works like this:

Magic: (site freq) + 30
Waste: (site freq) + 20
Swamp: (site freq) + 20
Mountain: (site freq) + 10
Forest: (site freq) + 10
Farm: (site freq) - 20

Only the most beneficial counts.

If site: Check what site. Random.
If site not possible: Reroll.
If site unique and already in the game: Reroll.
If site possible and rare: Reroll once.

Many nature sites are common but restricted to forests etc.

Unique sites are also rare or common. Inkpot end is unique and common. Crown of Darkness is rare.

No blood under water IIRC. Not sure about unholy.
################################################## ##########

Thanks Arralan. But I saw that post earlier however, before I started this thread.

It explains mechanics nicely, but it doesn't give exact numbers. (or rather Kristoffer wrote some but said that he is not sure of exact values, and that the values that he wrote are just a guess)


And I really would like to know the exact values. To know, for example, which province should I search first - swamp or mountain. (I always thought mountain tend to have the most sites, but in Kris's list it has lower chance than waste/swamp)
Reply With Quote
  #24  
Old October 27th, 2006, 06:39 AM
Corwin's Avatar

Corwin Corwin is offline
First Lieutenant
 
Join Date: Oct 2006
Location: Palo Alto, CA
Posts: 638
Thanks: 1
Thanked 3 Times in 3 Posts
Corwin is on a distinguished road
Default Re: Terrain effects-putting together the complete

Quote:
Gandalf Parker said:
The method is probably the same, but the terrains have expanded. Here is the new terrain chart and you can see that there are some important changes pertaining to magic sites.

"small" 1
"large" 2
"sea" 4
"somewater" 8
"mountain" 16
"swamp" 32
"waste" 64
"forest" 128
"farm" 256
"nostart" 512
"manysites" 1024
"deep" 2048
"cave" 4096
"firesite" 8192
"airsite" 16384
"watersite" 32768
"earthsite" 65536
"astralsite" 131072
"deathsite" 262144
"naturesite" 524288
"bloodsite" 1048576
"priestsite" 2097152
"edgemount" 4194304

The numbers are something called "bit math" in programming. It means that a province can be assigned more than one of these settings. So a province could be a large, no start, forest farm, earth site province.
Interesting. Now all we need to know is what are actual magic site chance modifieres for all these terrain types.

Any thoughts?
Reply With Quote
  #25  
Old October 27th, 2006, 02:07 PM
solops's Avatar

solops solops is offline
Sergeant
 
Join Date: Dec 2001
Location: Texas
Posts: 305
Thanks: 0
Thanked 0 Times in 0 Posts
solops is on a distinguished road
Default Re: Terrain effects-putting together the complete

To have a TEC would be a huge help. Right now I mostly just stumble around and ignore terrain because there are so few clues as to what terrain effects are and how significant they are.

BTW, do rivers do anything at all?
__________________
solops

All that is necessary for the triumph of evil is that good men do nothing. Edmund Burke
Liberty lies in the hearts of men and women; if it dies there, no constitution, no law, no court can save it. Judge Learned Hand
Just because you're paranoid doesn't mean that They are not out to get you.

Reply With Quote
  #26  
Old October 27th, 2006, 05:50 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: Terrain effects-putting together the complete

i think, at the least rivers restrain movement
__________________
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
  #27  
Old October 27th, 2006, 06:23 PM
Unwise's Avatar

Unwise Unwise is offline
Corporal
 
Join Date: Jan 2004
Location: Virginia
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Unwise is on a distinguished road
Default Re: Terrain effects-putting together the complete

What rivers are you talking about? You can assign a province the "fresh water" attribute, but I don't think it has any influence on movement.

The rivers in Jason Lutes' maps constrain movement because some provinces are set up not to be adjacent across the graphic of a river, but that's due to the design of the map, not the province properties.
Reply With Quote
  #28  
Old October 27th, 2006, 06:30 PM
Corwin's Avatar

Corwin Corwin is offline
First Lieutenant
 
Join Date: Oct 2006
Location: Palo Alto, CA
Posts: 638
Thanks: 1
Thanked 3 Times in 3 Posts
Corwin is on a distinguished road
Default Re: Terrain effects-putting together the complete

Oh, and BTW - it looks like in Dominions there are 3 types of magic sites - "common"/"uncommom"/"rare" (plus "unique" flag), according tio the new table that QM sent me yesterday.

Kristoffer's post only mention two types - normal ("Common") and "Rare" magic sites. He said that "rare" site, if randomly chosen, gets re-rolled one more time.

What about "uncommon" sites?
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 11:45 PM.


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