• Welcome to SC4 Devotion Forum Archives.

Color C040FF error

Started by regoarrarr, June 14, 2010, 04:58:38 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

regoarrarr

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?

Lowkee33

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/.  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

regoarrarr

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.

wouanagaine

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

New Horizons Productions
Berethor ♦ beskhu3epnm ♦ blade2k5 ♦ dmscopio ♦ dedgren ♦ emilin ♦ Ennedi ♦ Heblem ♦ jplumbley
M4346 ♦ moganite ♦ Papab2000 ♦ Shadow Assassin ♦ Tarkus ♦ wouanagaine
Divide wouanagaine by zero and you will in fact get one...one bad-ass that is - Alek King of SC4

regoarrarr

Thanks - the patch worked  :thumbsup: