Instead of posting the series of screenshots to show the one line at a time error messages, the contents of the python error log would probably be better.
Anyhow, it looks like you have a unit class that has a default unit specified that does not exist.
My first guess is that you probably use the value NONE in the unit class, then in the civilization files it has one or more civilizations that get a unit type assigned to that unit class (making it a unique unit for them). This is the easy way to make an entire unit class unique to some subset of civs. But BUG apparently doesn't like it.
If you are not using a default unit type of NONE from some unit class, then you need to check them to make sure that the specified unit types are all valid.
If you are using a default unit type of NONE for some unit class the fix would need to be one of two things:
A) Use the other method for doing this, which apparently BUG wants you to use: give the class a valid default unit and add an entry for each civ that doesn't get a unit of that class which specifies the unit type of NONE.
or
B) (A solution which might lead to other problems in the BUG code that need fixing) Modify the file Python\BUG\UnitUtil.py by changing the code around line 73 from this:
to something like this:Code:else: BugUtil.debug(" unique of %s", gc.getUnitInfo(eGenericUnit).getDescription())
Code:else: if eGenericUnit != -1: BugUtil.debug(" unique of %s", gc.getUnitInfo(eGenericUnit).getDescription ()) else: BugUtil.debug(" unique of NONE")
Note: I have not tried this code change. It is possible that somewhere else in BUG there is code that does not like unit classes to have default unit types of NONE. That would lead to more changes in the BUG code being needed (or switching to fix A).
I've implemented the B fix (The reason for this is that every ship for every civ is in effect a unique unit. The only common units are the Colony, Construction, Planetary defence and Stealth ships.)but am now getting crashes at end of turn 47 start of turn 48. I've attached the PythonDBug Log, hope this helps. I've added another Debug log from a different playtest in th hopes that an additional log will enable greater fault analysis of the problem.