SC4D Homepage
BSC File Exchange
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length


Author Topic: Color C040FF error  (Read 915 times)

0 Members and 1 Guest are viewing this topic.

Offline regoarrarr

  • *
  • Posts: 13
  • Reputation: 0
Color C040FF error
« on: June 14, 2010, 05: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?

Sim City 4 Devotion Forums

Color C040FF error
« on: June 14, 2010, 05:58:38 PM »

Re: Color C040FF error

Offline Lowkee33

Re: Color C040FF error
« Reply #1 on: June 14, 2010, 06: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/.  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

Sim City 4 Devotion Forums

Re: Color C040FF error
« Reply #1 on: June 14, 2010, 06:17:48 PM »

Re: Color C040FF error

Offline regoarrarr

  • *
  • Posts: 13
  • Reputation: 0
Re: Color C040FF error
« Reply #2 on: June 14, 2010, 08: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.

Sim City 4 Devotion Forums

Re: Color C040FF error
« Reply #2 on: June 14, 2010, 08:42:39 PM »

Re: Color C040FF error

Offline wouanagaine

  • *
  • *
  • *
  • Posts: 2841
  • Country: 00
  • Reputation: 43
  • CL: :computer: SC4 CodeMaster
Re: Color C040FF error
« Reply #3 on: June 15, 2010, 12:45:12 AM »
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

Sim City 4 Devotion Forums

Re: Color C040FF error
« Reply #3 on: June 15, 2010, 12:45:12 AM »

Re: Color C040FF error

Offline regoarrarr

  • *
  • Posts: 13
  • Reputation: 0
Re: Color C040FF error
« Reply #4 on: June 15, 2010, 12:22:51 PM »
Thanks - the patch worked  :thumbsup:

Sim City 4 Devotion Forums

Re: Color C040FF error
« Reply #4 on: June 15, 2010, 12:22:51 PM »

 


If you experience visual glitches in our site, we strongly suggest you to use Firefox to browse the forums. Also a 1024*768 or higher resolution is highly recommended to view this site