SC4 Devotion Forum Archives

Sim City 4 Devotion Tools => Tools - General Discussion => SC4Mapper => Topic started by: regoarrarr on June 14, 2010, 04:58:38 PM

Title: Color C040FF error
Post by: regoarrarr on June 14, 2010, 04:58:38 PM
I'm trying to create a new region from greyscale in SC4M

I have used this region before, but now I'm trying to use a config.bmp that I used.

https://dl-web.dropbox.com/get/config.bmp?w=60f3d7f2 is a link to the config.bmp I'm using

When I run, I get the error in the log


Traceback (most recent call last):
  File "SC4MapApp.pyo", line 331, in CreateRgn
  File "SC4MapApp.pyo", line 521, in CreateRgnFromGrey
  File "rgnReader.pyo", line 585, in __init__
  File "rgnReader.pyo", line 560, in WorkTheconfig
  File "ImageDraw.pyo", line 245, in rectangle
  File "ImageDraw.pyo", line 148, in _getink
  File "ImageColor.pyo", line 100, in getcolor
  File "ImageColor.pyo", line 96, in getrgb
ValueError: unknown color specifier: 'C040FF'

Seems to be finding a non RGB color in my bmp but I can't find one.

Any ideas?
Title: Re: Color C040FF error
Post by: Lowkee33 on June 14, 2010, 05:17:48 PM
Are you sure that your config is the right size?  After that I would use a third party program to make a config of all the same color.  Tryhttp://members.shaw.ca/scracc/ (http://members.shaw.ca/scracc/).  This is program has worked wonders for me, as sometimes region making can be a three program deal.  This program will also tell you if your grayscale is somehow the wrong size.  Good luck
Title: Re: Color C040FF error
Post by: regoarrarr on June 14, 2010, 07:42:39 PM
Yeah I'm pretty sure my config.bmp is the right size.  It's 69x45, and my image is 4417x2881.  It doesn't complain when I give any other 69x45 BMPs.

I think I have that scracc utility and will give that a whirl if nobody else has any other suggestions.
Title: Re: Color C040FF error
Post by: wouanagaine on June 14, 2010, 11:45:12 PM
Did you download the SC4Mapper patch ? I think I've fixed this kind of error in the patch
http://www.sc4devotion.com/csxlex/lex_filedesc.php?lotGET=1963
Title: Re: Color C040FF error
Post by: regoarrarr on June 15, 2010, 11:22:51 AM
Thanks - the patch worked  :thumbsup: