View Issue Details

IDProjectCategoryLast Update
0019281AI War 2Bug - OtherNov 4, 2017 2:11 pm
ReporterBadgerBadger Assigned Tokeith.lamothe  
Status resolvedResolutionfixed 
Product Version0.601 
Fixed in Version0.602 
Summary0019281: Save game thinks the first AI Type is "Tutorial"
DescriptionI am getting saved games that tell me that the Master AI Type is "Tutorial". I tweaked my version of the code to print all the various AI Type Names, but all the names are "tutorial"! Here's my tweaked code

You generate the AI type for the save game by the following code
        internal static string GetFirstAITypeName()
        {
            AITypeData firstAIType = null;
            for ( int i = 0; i < World_AIW2.Instance.Factions.Count; i++ )
            {
                Faction faction = World_AIW2.Instance.Factions[i];
                ArcenDebugging.ArcenDebugLogSingleLine( "Faction " + i + " type " + faction.AITypeData.Name, Verbosity.DoNotShow );
                if ( faction.Type != FactionType.AI )
                    continue;
                firstAIType = faction.AITypeData;
                break;

            }
            string firstAITypeName = firstAIType == null ? "nullAI" : firstAIType.Name;
            return firstAITypeName;
        }

And here's what my log generated
11/3/2017 3:44:04 PM Faction 0 type Tutorial 01
11/3/2017 3:44:04 PM Faction 1 type Tutorial 01
11/3/2017 3:44:04 PM Faction 2 type Tutorial 01

I am perplexed by this
TagsNo tags attached.

Activities

keith.lamothe

Nov 4, 2017 2:11 pm

administrator   ~0046574

Already fixed for 0.602; thanks :)

Issue History

Date Modified Username Field Change
Nov 3, 2017 3:46 pm BadgerBadger New Issue
Nov 4, 2017 2:11 pm keith.lamothe Assigned To => keith.lamothe
Nov 4, 2017 2:11 pm keith.lamothe Status new => resolved
Nov 4, 2017 2:11 pm keith.lamothe Resolution open => fixed
Nov 4, 2017 2:11 pm keith.lamothe Fixed in Version => 0.602
Nov 4, 2017 2:11 pm keith.lamothe Note Added: 0046574