Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Planets with 20b+ of a single race in game editor

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Tech Support >> Planets with 20b+ of a single race in game editor Page: [1]
Login
Message << Older Topic   Newer Topic >>
Planets with 20b+ of a single race in game editor - 10/13/2010 3:43:19 PM   
No New Messages
Aures
Matrix Veteran


 

Posts: 343
Joined: 9/13/2010
Status: offline
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.
Post #: 1
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Distant Worlds 1 Series >> Tech Support >> Planets with 20b+ of a single race in game editor Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

4.500