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

This Month's Specials

BCT Commander- Save $7.00
winSPWW2- Save $5.00

   







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

Reply
 
Thread Tools Display Modes
  #21  
Old July 5th, 2008, 09:26 AM
Kristoffer O's Avatar

Kristoffer O Kristoffer O is offline
General
 
Join Date: Aug 2003
Location: Sweden
Posts: 4,463
Thanks: 25
Thanked 92 Times in 43 Posts
Kristoffer O is on a distinguished road
Default Re: Images of Westeros, somebody make a map out of

Placing 2500 individual provinces in a map would take huge amounts of time. I can't see how anyone could finish making a map where thy intend to place 2500 provinces, which i assume one would do if one made the westeroes map playable.

I would probably not play a map of similar proportions, but I imagine there are those who would. But playing might be more rewarding then placing and naming provinces.
__________________
www.illwinter.com
Reply With Quote
  #22  
Old July 5th, 2008, 09:33 AM

Sombre Sombre is offline
BANNED USER
 
Join Date: Feb 2007
Posts: 5,463
Thanks: 165
Thanked 324 Times in 190 Posts
Sombre is on a distinguished road
Default Re: Images of Westeros, somebody make a map out of

The westeroes map doesn't inherently have 2500 provinces. If you look at the boardgame version it has like 50.

It can have as many provinces as the mapper wants it to have. I think 100 or so would fit well on the map.
Reply With Quote
  #23  
Old July 5th, 2008, 07:52 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: Images of Westeros, somebody make a map out of

As much as I love huge maps, and do play 1500 maps, I would advise against increasing the size again. The last increase involved far more than we expected. The game crashed over some of the strangest things and we had to increase many arrays that we did not expect to be affected.
__________________
-- 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
  #24  
Old July 6th, 2008, 02:00 AM

Atreides Atreides is offline
Corporal
 
Join Date: Jan 2007
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Atreides is on a distinguished road
Default Re: Images of Westeros, somebody make a map out of

I am definitely a fan of large maps, and thank you Ich for that province count. How did you determine the number approximately? I figured I was over, but fortunately I am OCD enough and love A Song of Ice and Fire enough that I'll just redraw it with fewer provinces Probably on the image you posted too. It's much cleaner, maybe add in some of the labels that are on the image I used. Oh well, back to work.
Reply With Quote
  #25  
Old July 6th, 2008, 06:49 AM
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: Images of Westeros, somebody make a map out of

The Oeridia (sp?) map has 1225 provinces, and is freaking enormous, complex, and lots of fun, but perhaps a bit much.
Reply With Quote
  #26  
Old July 8th, 2008, 10:00 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: Images of Westeros, somebody make a map out of

Quote:
Atreides said:
thank you Ich for that province count. How did you determine the number approximately?
I counted the white pixels, then rounded towards the next largest number.

To get the number of pixels of any color, you could do the following for example:
- install ImageMagick
- run it like 'identify -verbose Westeros.bmp'
- look for the row titled "(255,255,255) #FFFFFF white" in the color histogram, the number in front is the pixel count

(If you're on *nix: 'identify -verbose Westeros.bmp | grep white')
__________________
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
  #27  
Old July 8th, 2008, 12:40 PM
Edratman's Avatar

Edratman Edratman is offline
First Lieutenant
 
Join Date: May 2007
Location: Reading, PA
Posts: 724
Thanks: 93
Thanked 37 Times in 27 Posts
Edratman is on a distinguished road
Default Re: Images of Westeros, somebody make a map out of

Quote:
PvK said:
The Oeridia (sp?) map has 1225 provinces, and is freaking enormous, complex, and lots of fun, but perhaps a bit much.
I agree entirely. I've been playing this map almost exclusively for a few months, but I end up quitting because of the turn times. I believe it has about 1200 provinces, and this appears to be my limit. I put 30 to 40 opponents in it (all eras mod) and it is fun, up to a point. Larger maps would just result in more start variety, but the same time problems after 50 or 60 turns. There just would be more provinces and foes out of reach.
__________________
Men do not quit playing because they grow old; they grow old because they quit playing.
Oliver Wendell Holmes
Reply With Quote
  #28  
Old July 8th, 2008, 01:19 PM
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 Getting the number of provinces in an image

Ok, apparently the solution that I provided to count the number of provinces doesn't work because ImageMagick refuses to generate a histogram for an image as big as Westeros.bmp.

What I used to count the number of pixels was some small Python program. It uses PIL, the Python Imaging Library.

Here's my code:

Code:
from PIL import Image

img = Image.open("Westeros.bmp")
(xdim, ydim) = img.size
# yeah, this is a hackish way to do things
channels = len(img.getbands())
white = tuple([255]*channels)

count = 0
if Image.VERSION >= "1.1.6":
data = img.load()
for y in range(ydim):
for x in range(xdim):
if data[x,y] == white:
count += 1

else:
data = img.getdata()
for y in range(ydim):
for x in range(xdim):
if data[x+y*xdim] == white:
count += 1

print count, "provinces"


This takes about 30 seconds to complete, because of the for loops which do the pixel checks. There are ways to speed this up. First, you could consider mapping to the luminance:
Code:
from PIL import Image
count = list(Image.open('Westeros.bmp').convert('L').getda ta()).count(255)
print count, "provinces"


This takes half as long, but the conversion from the internal PIL format to Python data containers still takes too long. If you want to make full use of the underlying C code that PIL is built on, then you can do the following:
Code:
from PIL import Image
count = Image.open('/home/lch/dominions3/maps/Westeros.bmp').convert('L').histogram().pop()
print count, "provinces"


This takes less than a second on the Westeros.bmp for me.

The way that I am getting the information that I want here, over histograms, can be done with image editing programs, too. Just look where your image editing program has the Histogram function, and set it to Luminance/Value. Then enter a range of 255-255 (or pick the pure white color) and it should tell you the number of provinces. GIMP seems to have a bug, though: Although it does work correctly with other map images that I have tried, it reports something like 12038 pure white pixels here, which clearly is wrong.

Instructions for GIMP:
- open image
- open Histogram: either through "Colors > Info > Histogram" or "Dialogs > Histogram"
- change channel to "Value"
- enter 255 as left and right limit
- look at "Count" value

Workaround for GIMP:
- open image
- choose "Select > by color" (Shift+O)
- select a pure white pixel
- choose "Edit > Copy" (Ctrl+C)
- choose "Edit > Paste as > New Image"
- do the above, but with 0 and 255 as limits for the range
__________________
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

Last edited by llamabeast; June 7th, 2009 at 06:00 AM..
Reply With Quote
  #29  
Old July 8th, 2008, 04:28 PM

Atreides Atreides is offline
Corporal
 
Join Date: Jan 2007
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
Atreides is on a distinguished road
Default Re: Getting the number of provinces in an image

Thanks Ich, that'll help a lot when I'm redrawing the map. Much appreciated.
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:47 AM.


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