Civ4 Save/Scenario/Map Editor

Zespri said:
If Civ4 is not installed on the computer, your program crashes with an obscure error. It would be nice if it displayed a message saying that you have to have civ4 installed in order to use this program. Thanks.

Thanks Zespri, good point. The latest version now does as you suggest.
 
This is strange. It is parsing the values in Interface\CIV4ColorVals.xml. For me, this file contains a series of color definitions with the colors defined by xml elements with the names fRed, fGreen, fBlue, fAlpha. In my file, these values are numbers between 0 and 1 indicating a percent of the color component. I am multiplying this value by 255 in order to get an integer between 0 and 255 to use .Net. It sounds like the value in your file is actually 100 instead of 1. Can you check if you have any numbers greater than 1 in your Civ4ColorVals.xml file? Thanks.

I dont have a value bigger than 1 in the file.
Here ist the filetext:

<?xml version="1.0"?>
<!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Bart Muzzin (Firaxis Games) -->
<!-- Sid Meier's Civilization 4 -->
<!-- Copyright Firaxis Games 2005 -->
<!-- -->
<!-- Color Vals -->
<Civ4ColorVals xmlns="x-schema:CIV4InterfaceSchema.xml">
<ColorVals>
<ColorVal>
<Type>COLOR_CLEAR</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>0.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_ALPHA_GREY</Type>
<fRed>0.1</fRed>
<fGreen>0.1</fGreen>
<fBlue>0.1</fBlue>
<fAlpha>0.45</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_WHITE</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_BLACK</Type>
<fRed>0.00</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_DARK_GREY</Type>
<fRed>0.25</fRed>
<fGreen>0.25</fGreen>
<fBlue>0.25</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_GREY</Type>
<fRed>0.5</fRed>
<fGreen>0.5</fGreen>
<fBlue>0.5</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_LIGHT_GREY</Type>
<fRed>0.75</fRed>
<fGreen>0.75</fGreen>
<fBlue>0.75</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_RED</Type>
<fRed>1.00</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_GREEN</Type>
<fRed>0.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_BLUE</Type>
<fRed>0.00</fRed>
<fGreen>0.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_CYAN</Type>
<fRed>0.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_YELLOW</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_MAGENTA</Type>
<fRed>1.00</fRed>
<fGreen>0.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_YIELD_FOOD</Type>
<fRed>0.99</fRed>
<fGreen>0.58</fGreen>
<fBlue>0.16</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_YIELD_PRODUCTION</Type>
<fRed>0.44</fRed>
<fGreen>0.56</fGreen>
<fBlue>0.74</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_YIELD_COMMERCE</Type>
<fRed>1.00</fRed>
<fGreen>0.94</fGreen>
<fBlue>0.08</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_CITY_BLUE</Type>
<fRed>0.07</fRed>
<fGreen>0.46</fGreen>
<fBlue>0.80</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_CITY_GREY</Type>
<fRed>0.35</fRed>
<fGreen>0.25</fGreen>
<fBlue>0.25</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_CITY_BROWN</Type>
<fRed>0.70</fRed>
<fGreen>0.45</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_CITY_GREEN</Type>
<fRed>0.18</fRed>
<fGreen>0.53</fGreen>
<fBlue>0.42</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_FONT_RED</Type>
<fRed>1.00</fRed>
<fGreen>0.30</fGreen>
<fBlue>0.15</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_FONT_GREEN</Type>
<fRed>0.10</fRed>
<fGreen>0.95</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_RESEARCH_STORED</Type>
<fRed>0.00</fRed>
<fGreen>0.90</fGreen>
<fBlue>0.20</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_RESEARCH_RATE</Type>
<fRed>0.00</fRed>
<fGreen>0.90</fGreen>
<fBlue>0.20</fBlue>
<fAlpha>0.60</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_CULTURE_STORED</Type>
<fRed>0.60</fRed>
<fGreen>0.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_CULTURE_RATE</Type>
<fRed>0.60</fRed>
<fGreen>0.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>0.60</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_GREAT_PEOPLE_STORED</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_GREAT_PEOPLE_RATE</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>0.60</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_NEGATIVE_RATE</Type>
<fRed>1.00</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>0.65</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_EMPTY</Type>
<fRed>0.0</fRed>
<fGreen>0.0</fGreen>
<fBlue>0.0</fBlue>
<fAlpha>0.40</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_POPUP_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_POPUP_SELECTED</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>0.75</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_TECH_TEXT</Type>
<fRed>0.50</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.10</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_UNIT_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_BUILDING_TEXT</Type>
<fRed>0.80</fRed>
<fGreen>0.80</fGreen>
<fBlue>0.85</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PROJECT_TEXT</Type>
<fRed>0.80</fRed>
<fGreen>0.80</fGreen>
<fBlue>0.85</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_HIGHLIGHT_TEXT</Type>
<fRed>0.40</fRed>
<fGreen>0.90</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_ALT_HIGHLIGHT_TEXT</Type>
<fRed>0.50</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.10</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_WARNING_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>0.30</fGreen>
<fBlue>0.30</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_POSITIVE_TEXT</Type>
<fRed>0.50</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.10</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_NEGATIVE_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>0.30</fGreen>
<fBlue>0.30</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_BROWN_TEXT</Type>
<fRed>0.40</fRed>
<fGreen>0.24</fGreen>
<fBlue>0.16</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_SELECTED_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>0.82</fGreen>
<fBlue>0.49</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_WATER_TEXT</Type>
<fRed>0.70</fRed>
<fGreen>0.70</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_MENU_BLUE</Type>
<fRed>0.28</fRed>
<fGreen>0.83</fGreen>
<fBlue>0.95</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_DAWN_OF_MAN_TEXT</Type>
<fRed>0.22</fRed>
<fGreen>0.09</fGreen>
<fBlue>0.03</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_TECH_GREEN</Type>
<fRed>0.16</fRed>
<fGreen>0.70</fGreen>
<fBlue>0.27</fBlue>
<fAlpha>0.50</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_TECH_BLUE</Type>
<fRed>0.21</fRed>
<fGreen>0.23</fGreen>
<fBlue>0.68</fBlue>
<fAlpha>0.50</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_TECH_WORKING</Type>
<fRed>0.21</fRed>
<fGreen>0.23</fGreen>
<fBlue>0.68</fBlue>
<fAlpha>0.50</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_TECH_BLACK</Type>
<fRed>0.00</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>0.50</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_TECH_RED</Type>
<fRed>1.00</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>0.50</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_BLACK</Type>
<fRed>0.13</fRed>
<fGreen>0.13</fGreen>
<fBlue>0.13</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_BLACK_TEXT</Type>
<fRed>0.8</fRed>
<fGreen>0.808</fGreen>
<fBlue>0.851</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_BLUE</Type>
<fRed>0.21</fRed>
<fGreen>0.40</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_BLUE_TEXT</Type>
<fRed>0.698</fRed>
<fGreen>0.776</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_BROWN</Type>
<fRed>0.39</fRed>
<fGreen>0.24</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_BROWN_TEXT</Type>
<fRed>0.898</fRed>
<fGreen>0.624</fGreen>
<fBlue>0.180</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_CYAN</Type>
<fRed>0.07</fRed>
<fGreen>0.90</fGreen>
<fBlue>0.86</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_CYAN_TEXT</Type>
<fRed>0.00</fRed>
<fGreen>0.831</fGreen>
<fBlue>0.788</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_BLUE</Type>
<fRed>0.16</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.64</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_BLUE_TEXT</Type>
<fRed>0.812</fRed>
<fGreen>0.749</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_CYAN</Type>
<fRed>0.00</fRed>
<fGreen>0.54</fGreen>
<fBlue>0.55</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_CYAN_TEXT</Type>
<fRed>0.6</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.973</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_GREEN</Type>
<fRed>0.00</fRed>
<fGreen>0.39</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_GREEN_TEXT</Type>
<fRed>0.561</fRed>
<fGreen>0.80</fGreen>
<fBlue>0.561</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_PINK</Type>
<fRed>0.69</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.38</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_PINK_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>0.00</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_PURPLE</Type>
<fRed>0.45</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.49</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_PURPLE_TEXT</Type>
<fRed>0.706</fRed>
<fGreen>0.302</fGreen>
<fBlue>0.741</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_RED</Type>
<fRed>0.62</fRed>
<fGreen>0.00</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_RED_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>0.02</fGreen>
<fBlue>0.02</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_YELLOW</Type>
<fRed>0.97</fRed>
<fGreen>0.75</fGreen>
<fBlue>0.0</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_DARK_YELLOW_TEXT</Type>
<fRed>0.973</fRed>
<fGreen>0.757</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_GRAY</Type>
<fRed>0.7</fRed>
<fGreen>0.7</fGreen>
<fBlue>0.7</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_GRAY_TEXT</Type>
<fRed>0.8</fRed>
<fGreen>0.8</fGreen>
<fBlue>0.8</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_GREEN</Type>
<fRed>0.49</fRed>
<fGreen>0.88</fGreen>
<fBlue>0.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_GREEN_TEXT</Type>
<fRed>0.486</fRed>
<fGreen>0.882</fGreen>
<fBlue>0.0</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_ORANGE</Type>
<fRed>0.99</fRed>
<fGreen>0.45</fGreen>
<fBlue>0.0</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_ORANGE_TEXT</Type>
<fRed>.996</fRed>
<fGreen>.459</fGreen>
<fBlue>0.0</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_PEACH</Type>
<fRed>0.60</fRed>
<fGreen>0.49</fGreen>
<fBlue>0.0</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_PEACH_TEXT</Type>
<fRed>0.761</fRed>
<fGreen>0.698</fGreen>
<fBlue>0.396</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_PINK</Type>
<fRed>0.98</fRed>
<fGreen>0.67</fGreen>
<fBlue>0.49</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_PINK_TEXT</Type>
<fRed>0.980</fRed>
<fGreen>0.353</fGreen>
<fBlue>0.224</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_PURPLE</Type>
<fRed>0.77</fRed>
<fGreen>0.34</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_PURPLE_TEXT</Type>
<fRed>0.831</fRed>
<fGreen>0.6</fGreen>
<fBlue>1.00</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_RED</Type>
<fRed>0.86</fRed>
<fGreen>0.02</fGreen>
<fBlue>0.02</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_RED_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>0.298</fGreen>
<fBlue>0.416</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_WHITE</Type>
<fRed>0.90</fRed>
<fGreen>0.90</fGreen>
<fBlue>0.90</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_WHITE_TEXT</Type>
<fRed>1.00</fRed>
<fGreen>.898</fGreen>
<fBlue>0.898</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_YELLOW</Type>
<fRed>1.00</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.17</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
<ColorVal>
<Type>COLOR_PLAYER_YELLOW_TEXT</Type>
<fRed>0.996</fRed>
<fGreen>1.00</fGreen>
<fBlue>0.173</fBlue>
<fAlpha>1.00</fAlpha>
</ColorVal>
</ColorVals>
</Civ4ColorVals>
 
Harrdy said:
I dont have a value bigger than 1 in the file.
Here ist the filetext:

Well, thanks for checking. I don't know what it could be. Does it produce a stack trace for you? That would help me track down where this is happening.
 
Harrdy said:
I dont have a value bigger than 1 in the file.
Here ist the filetext:

I tried changing one of the 1.00 values in my Civ4ColorVals.xml to 100 and I got the exact same exception you reported. If you download the latest version, if you still get the exception it will appear in a dialog that will also display the path to Civ4. Is there any possibility you had a beta version of Civ4 installed at one time? Or another version, anyway? Either way, please verify that the path to Civ4 that the exception window displays matches where you know Civ4 to be installed to.
 
kswoll said:
This looks like you're missing a dll. Is there any chance you copied the EXE file from the folder it was installed to? The exe must be run from the folder it was installed to and should not be moved.

I have tried running the program from th eshortcut it creates and form the icon in the folder where the .dll's reside. All with the same result.:sad:
 
Value of '25500' is not valid for 'red'. 'red' should be greater than or equal to 0 and less than or equal to 255.

This is what i get if i try V1.0.18...
 
Kswoll, I really like your program. Very nice...

Exspecially useful I feel once a map is created. Plot starting location, cities and even units. yea... I did have trouble with that last bit. The plotting units gave me an error but I think that is under construction(Can't see the full name).

Well I look forward to watching this application develope. The map drawing portion I'm try to stay away from on this one. Between using bmp's to create maps based off of pictures and then the Atlas project I think that portion is covered. At least for the time ;). Your app though has huge potentional though in all these aspects and could even lead the way if all aspects get fully developed. It plotted my rivers on my map using the bmp convertor and the map displayed perfectly on yours. Which I have many rivers on a large 72x144 map.

I look forward to the scenario features devloping. :goodjob:

Tbear2520
 
Just had to unistall and reinstall (I had previously just overwritten the earlier installs). Can now create my own WBS and save and open it but get the following message when opening a WBS saved in Civ4.

Unable to cast object of type 'Civ4EditorModel.Wbs.PlayerImpl' to type 'System.IConvertible'.

at Civ4EditorModel.Wbs.Persist.SmallDetailContainerAdapter`4.Load(Civ4PersistenceLoadContext loadContext, ConceptBase concept)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(Civ4PersistenceLoadContext context, C concept)
at Civ4EditorModel.Persist.EmbeddedConceptAdapter`2.Load(Civ4PersistenceLoadContext loadContext, ConceptBase concept)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(Civ4PersistenceLoadContext context, C concept)
at Civ4EditorModel.Wbs.Persist.EmbeddedContainerAdapter`2.Load(Civ4PersistenceLoadContext loadContext, ConceptBase concept)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(Civ4PersistenceLoadContext context, C concept)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(Stream stream, C concept, PersistenceTypeConverter converter, ProgressHost progressHost)
at Civ4EditorModel.Wbs.Persist.Civ4Persistence`1.Load(String file, C concept, PersistenceTypeConverter converter, ProgressHost progressHost)
 
Dido...same error

Unable to cast object of type 'Civ4EditorModel.Wbs.PlayerImpl' to type 'System.IConvertible'.

It only happens to maps that where edited in Civ4....the maps that are just generated but not edited load fine.
 
i have a problem while launching your program:


Input string was not in a correct format.

at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt)
at System.Double.Parse(String s, NumberStyles style, NumberFormatInfo info)
at System.Double.Parse(String s)
at Civ4MapGenerator.GameInfo.GameInfoProvider.LoadColors()
at Civ4MapGenerator.GameInfo.GameInfoProvider.Preload(ProgressHost progressHost)
at Civ4MapGenerator.SplashScreen.Start(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)
 
tbear2520 said:
Kswoll, I really like your program. Very nice...

Exspecially useful I feel once a map is created. Plot starting location, cities and even units. yea... I did have trouble with that last bit. The plotting units gave me an error but I think that is under construction(Can't see the full name).

Yes, I haven't spent much time with this section since stubbing it out. I'll look into it more soon.

tbear2520 said:
Well I look forward to watching this application develope. The map drawing portion I'm try to stay away from on this one. Between using bmp's to create maps based off of pictures and then the Atlas project I think that portion is covered. At least for the time ;).

I think the bmp converter is a great program, but personally, I'm not sure I agree with the approach. They acknowledge this to an extent in their document, "the fact that when you draw a map and start placing resources and cities on it, you can’t turn back. Let’s suppose that while placing the cities, you realize that one continent should be shifted one tile left (with all the cities, units and resources in it)…..good luck."

I think ideally, your maps should be saved as a Civ4WorldBuilderSave file and edits should be made directly to that. Fortunately, with my editor, you can in fact move the entire map one tile to the left, right, or any other spot by using the copy and paste feature. Furthermore, I found the tool required quite a lot of steps, including manipulation of several copies of your file.

However, I've found it really easy to use my program to create these maps and have them come out perfectly rendered with moutains, hills, forests, coasts, rivers, etc. all in exactly the right place and all by directly modifying the Civ4WorldBuilderSave

tbear2520 said:
Your app though has huge potentional though in all these aspects and could even lead the way if all aspects get fully developed. It plotted my rivers on my map using the bmp convertor and the map displayed perfectly on yours. Which I have many rivers on a large 72x144 map.

I look forward to the scenario features devloping. :goodjob:

Tbear2520

I appreciate the kind words and look forward to implementing the scenario features.
 
Get SEG-Y said:
Just had to unistall and reinstall (I had previously just overwritten the earlier installs). Can now create my own WBS and save and open it but get the following message when opening a WBS saved in Civ4.

Unable to cast object of type 'Civ4EditorModel.Wbs.PlayerImpl' to type 'System.IConvertible'.

I'm surprised you had to explicitly uninstall. There is a property on the installer "RemovePreviousVersion" that I have set to true and it's been working for me. Go figure.

But thanks for reporting the bug. The stack trace was a big help. The latest version should fix this problem.
 
black_imperator said:
i have a problem while launching your program:

Input string was not in a correct format.

Please download the latest version and try again. If you still get the error, it should provide more detail as to what it's specific complaint is.
 
after downloading the new version , this is the error:

Error parsing alpha component '0.00' of COLOR_CLEAR in Interface\CIV4ColorVals.xml

Exception
at Civ4MapGenerator.GameInfo.GameInfoProvider.LoadColors()
at Civ4MapGenerator.GameInfo.GameInfoProvider.Preload(ProgressHost progressHost)
at Civ4MapGenerator.SplashScreen.Start(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)
 
I got error-message: Value of '25500' is not valid for 'red'. 'red' should be greater than or equal to 0 and less than or equal to 255.

Stack trace:
ArgumentException
at System.Drawing.Color.CheckByte(Int32 value, String name)
at System.Drawing.Color.FromArgb(Int32 alpha, Int32 red, Int32 green, Int32 blue)
at Civ4MapGenerator.GameInfo.GameInfoProvider.LoadColors()
at Civ4MapGenerator.GameInfo.GameInfoProvider.Preload(ProgressHost progressHost)
at Civ4MapGenerator.SplashScreen.Start(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)


I've installed patch 1.09 and my XML "colorfile" contains no numbers above 1:confused:
 
Hi.

I love the usefulness of your program.

I made a map using WBS-BMP converter and used your utility to view the map. It was very useful as I don't have a computer capable of running the game as yet, and actually seeing the map was a godsend.

I did have one problem though. I loaded my map, and all river plots came out as expected; however, many of the arrows, although shown on the map, did not show up under plot information as rivers. These were usually ones pointing in one of the northern directions. Anyhow, I saved the game after making some adjustments to the game variables. Upon reopening, many of the river plots had disappeared, this time on the map; I suspect these to be the plots that the program had previously not designated as such under plot information (although had shown graphically).

Anyhow, something is not quite working regarding the rivers, and it is only in particular directions in which the river is flowing... the graphic is working and shows on the map, but in certain directions, this is not being attributed to the actual plot information.

Hope this helps.

Great job.
 
Harko said:
I got error-message: Value of '25500' is not valid for 'red'. 'red' should be greater than or equal to 0 and less than or equal to 255.

Stack trace:
ArgumentException
at System.Drawing.Color.CheckByte(Int32 value, String name)
at System.Drawing.Color.FromArgb(Int32 alpha, Int32 red, Int32 green, Int32 blue)
at Civ4MapGenerator.GameInfo.GameInfoProvider.LoadColors()
at Civ4MapGenerator.GameInfo.GameInfoProvider.Preload(ProgressHost progressHost)
at Civ4MapGenerator.SplashScreen.Start(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)
I have the same problem.:( :(
 
black_imperator said:
after downloading the new version , this is the error:

Error parsing alpha component '0.00' of COLOR_CLEAR in Interface\CIV4ColorVals.xml

Exception
at Civ4MapGenerator.GameInfo.GameInfoProvider.LoadColors()
at Civ4MapGenerator.GameInfo.GameInfoProvider.Preload(ProgressHost progressHost)
at Civ4MapGenerator.SplashScreen.Start(Object param)
at Civ4MapGenerator.TaskScreen.RunThread(Object host)

To all who have been getting this exception (and, presumably, all of you are Europeans, or at least not American) please try the latest version. I had forgotten that parsing a number in Europe using the default methods expects a "," as the decimal separator instead of a ".". i.e. It's expecting "0,00" instead of "0.00". I'm now using the US culture info to parse, so this should be fixed. However, since I don't have a computer using European culture info, it's hard for me to test. Let me know how it goes.
 
Top Bottom