Purpose of Colony modelling #1826
bevans2000
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@mokun I've come across a serious bug in the Colony modelling. But I'm puzzled why we have not seen this before as the code does not look new. The scenario is:
This has always been present so I believe the recent changes to the Reporting Authority has in some way made the Colony modelling start creating research projects. However when looking through the code is seem very "fresh", for example it specialises a Colonist to Researcher or Specialist but holds them in a single list; when drawing them out there is a potential for a ClassCast exception.
It's not visible to the end user either as there is no UI presence so it's just a bunch of log messages in the background consuming cycles.
So as well as fixing the NPE I'm going to add something to the Scenario that defines how many Colonies are created allowing us to set it to zero by default. When we develop it more we can change the default colony number.
Beta Was this translation helpful? Give feedback.
All reactions