View Issue Details

IDProjectCategoryLast Update
0016145AI War 1 / ClassicBug - OtherMar 27, 2015 12:24 pm
Reporterpumpkin Assigned To 
Status newResolutionopen 
Product Version8.021 
Summary0016145: Lobby script error about AI opponent type
DescriptionIn 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.
TagsNo tags attached.
Internal Weight

Activities

pumpkin

Mar 22, 2015 4:33 pm

reporter  

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()

LobbySetupScriptLog.txt (2,825 bytes)   

pumpkin

Mar 27, 2015 12:24 pm

reporter   ~0039938

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.

Issue History

Date Modified Username Field Change
Mar 22, 2015 4:33 pm pumpkin New Issue
Mar 22, 2015 4:33 pm pumpkin File Added: LobbySetupScriptLog.txt
Mar 27, 2015 12:24 pm pumpkin Note Added: 0039938