Aures -> Planets with 20b+ of a single race in game editor (10/13/2010 3:43:19 PM)
|
Here is a method of producing a DataGridView Default Error Dialog in 1.0.6.0: 1) Find a planet with over 20 billion population of a single race; 2) Open the game editor; 3) Double click on the planet; 4) Click on the amount column for a race that has over 20 billion population (not the overall total population) in the population grid. The text of the dialog is as follows:
The following exception occurred in the DataGridView:
System.ArgumentOutOfRangeException: Value of '20345600000' is not
valid for 'Value'. 'Value' should be between 'Minimum' and 'Maximum'.
Parameter name: Value
at System.Windows.Forms.NumericUpDown.set_Value(Decimal value)
at
DistantWorlds.Controls.DataGridViewNumericUpDownCell.InitialiseEditi
ngControl(Int32 rowIndex, Object initialFormattedValue,
DataGridViewCellStyle dataGridViewCellStyle)
at
System.Windows.Forms.DataGridView.InitialiseEditingControlValue(Dat
aGridViewCellStyle$ dataGridViewCellStyle, DataGridViewCell
dataGridViewCell)
To replace this default dialog please handle the DataError event.
The actual value 20345600000 comes from the population of the colony I got the example from and is always equal to the colonies population of the race you click on. I have tested it with several colonies and have only had issues with those that have more than 20 billion of a single race. If you ok the error the population changes to 1 million (change does not stick unless you change the population before leaving the cell). I believe the relevant value is 20 billion because 20,000,000,000 using the editor and I have tested it pretty close to the 20 billion mark. I have tested it with worlds that have multiple race populations. There is no issue if the total population is over 20 billion as long as no individual race has more than 20 billion. If one race has more than 20 billion only that race will cause the issue, clicking on other races at the same colony works as expected. I am running under 64 bit Windows 7 (although I don't believe that or other system details matter for this issue). I can provide further info if required. BTW kudos for actually representing the population down to the individual level and tracking the different races. Most grand scale games I have played have population units of a thousand, a million etc and none have separate figures for different races. Also you have got some nice programming conventions judging by the names in the stack dump.
|
|
|
|