View Issue Details
ID | Project | Category | Date Submitted | Last Update | |
---|---|---|---|---|---|
0016145 | AI War 1 / Classic | Bug - Other | Mar 22, 2015 4:33 pm | Mar 27, 2015 12:24 pm | |
Reporter | pumpkin | Assigned To | |||
Status | new | Resolution | open | ||
Product Version | 8.021 | ||||
Summary | 0016145: Lobby script error about AI opponent type | ||||
Description | In a lobby script, trying to execute the following cause a bug: SetFirstAIType("ZenithDescendant"); The LobbySetupScriptLog.txt file then contains (among some other minor stuff): TextScenarioOperation.Execute():operation type ChangeLobby with TextScenarioChangeType.SetFirstAIType, but first operand evaluated to '39', which is not an item in that dropdown. I guess some more AI types can have the same problem. | ||||
Tags | No tags attached. | ||||
Internal Weight | |||||
|
LobbySetupScriptLog.txt (2,825 bytes)
03/22/2015 21:28:34 Game v8023 Declared int variable 'RandomRoll' = 0 DeclareVariable("Int","RandomRoll"); at System.Environment.get_StackTrace() at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity) at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity) at TextScenarioOperation.Execute(.TextScenario Scenario) at TextScenario.ExecuteStartOfScenarioOperations() at LobbyOptions.<SubclassInit>b__1(.TextScenario NewSelection, .TextScenario OldSelection) at ArcenQueuedSingleSelectItemClickDelegate`1[[TextScenario, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].Execute() at ArcenGUIManager.DrawGUI() at MainCameraLogic.OnGUI() 03/22/2015 21:28:34 Game v8023 Changed int variable 'RandomRoll' : 0 => 202518091 SetIntVariableToRandom("RandomRoll",1,1999999999); at System.Environment.get_StackTrace() at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity) at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity) at TextScenarioOperation.Execute(.TextScenario Scenario) at TextScenario.ExecuteStartOfScenarioOperations() at LobbyOptions.<SubclassInit>b__1(.TextScenario NewSelection, .TextScenario OldSelection) at ArcenQueuedSingleSelectItemClickDelegate`1[[TextScenario, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].Execute() at ArcenGUIManager.DrawGUI() at MainCameraLogic.OnGUI() 03/22/2015 21:28:34 Game v8023 ------Error Encountered Executing Operation node ---Error message as follows: TextScenarioOperation.Execute(): operation type ChangeLobby with TextScenarioChangeType.SetFirstAIType, but first operand evaluated to '39', which is not an item in that dropdown. ---Original XML of Operation node as follows: SetFirstAIType("ZenithDescendant"); at System.Environment.get_StackTrace() at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Boolean IncludeStackTrace, Verbosity Verbosity) at ArcenDebugging.ArcenDebugLog(System.String Message, DebugLogDestination Destination, Verbosity Verbosity) at TextScenarioOperation.LogError(System.String Message) at TextScenarioOperation.Execute(.TextScenario Scenario) at TextScenario.ExecuteStartOfScenarioOperations() at LobbyOptions.<SubclassInit>b__1(.TextScenario NewSelection, .TextScenario OldSelection) at ArcenQueuedSingleSelectItemClickDelegate`1[[TextScenario, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]].Execute() at ArcenGUIManager.DrawGUI() at MainCameraLogic.OnGUI() |
|
I got it! The error is caused by the AI type disabled by disableaitypes.txt The best fix would be to allow lobby scripts to set even disabled AI types. The least would be to explain the "disabled trick" in the error report. |