Game Version number: 1.2.1.86 EXP
There are 2 problems in "SCR_GroupTileButton" -> "SetupPlayerTile()" Line 582
SCR_EditorTask gmTask = SCR_EditorTask.Cast(taskExecutor.GetAssignedTask()); SCR_BaseTask baseTask = taskExecutor.GetAssignedTask(); // <----------------------- ScenarioFramework Task! Will not be processed further SCR_CampaignBaseTask task = SCR_CampaignBaseTask.Cast(taskExecutor.GetAssignedTask()); if(gmTask || baseTask || task && playerFaction == localPlayerFaction) // <----------------- baseTask is available, but will not processed { m_wTaskLayout.SetVisible(true); m_wTaskLayout.SetColor(localPlayerFaction.GetFactionColor()); wGroupTaskName = RichTextWidget.Cast(playerTile.FindAnyWidget("TaskDescription")); if(task) // When task is assigned and when player has the same faction with entry faction for campaign. { m_wIconSymbol.LoadImageFromSet(0,TaskIconImageset,task.GetIconName()); m_sTaskText = task.GetTaskListTaskText(); task.SetTitleWidgetText(wGroupTaskName, task.GetTaskListTaskTitle()); } if(gmTask) // When task is assigned and when player has the same faction with entry faction for Game Master. { m_wIconSymbol.LoadImageFromSet(0,TaskIconImageset,gmTask.GetIconName()); m_sTaskText = gmTask.GetTaskListTaskText(); wGroupTaskName.SetTextFormat(gmTask.GetTitle(), gmTask.GetLocationName()); } if(task.IsPriority()) // <---------------------------------------------------------- if baseTask exists, "task" is NULL ! { wBackground.SetColor(m_sfactionCol.GetOutlineFactionColor()); m_wOutline.SetColor(m_sfactionCol.GetFactionColor()); m_wIconSymbol.SetColor(m_sfactionCol.GetFactionColor()); } }
Fixed Version: from Line 634
if(gmTask || baseTask || task && playerFaction == localPlayerFaction) { m_wTaskLayout.SetVisible(true); m_wTaskLayout.SetColor(localPlayerFaction.GetFactionColor()); wGroupTaskName = RichTextWidget.Cast(playerTile.FindAnyWidget("TaskDescription")); if(task) { // REAPER: SCR_CampaignBaseTask will be handle here m_wIconSymbol.LoadImageFromSet(0,TaskIconImageset,task.GetIconName()); m_sTaskText = task.GetTaskListTaskText(); task.SetTitleWidgetText(wGroupTaskName, task.GetTaskListTaskTitle()); if(task.IsPriority()) { wBackground.SetColor(m_sfactionCol.GetOutlineFactionColor()); m_wOutline.SetColor(m_sfactionCol.GetFactionColor()); m_wIconSymbol.SetColor(m_sfactionCol.GetFactionColor()); } } else if(baseTask) { // REAPER: SCR_BaseTask will be handle here m_wIconSymbol.LoadImageFromSet(0,TaskIconImageset,baseTask.GetIconName()); m_sTaskText = baseTask.GetTaskListTaskText(); baseTask.SetTitleWidgetText(wGroupTaskName, baseTask.GetTaskListTaskTitle()); if(baseTask.IsPriority()) { wBackground.SetColor(m_sfactionCol.GetOutlineFactionColor()); m_wOutline.SetColor(m_sfactionCol.GetFactionColor()); m_wIconSymbol.SetColor(m_sfactionCol.GetFactionColor()); } } if(gmTask) { // REAPER: SCR_EditorTask will be handle here m_wIconSymbol.LoadImageFromSet(0,TaskIconImageset,gmTask.GetIconName()); m_sTaskText = gmTask.GetTaskListTaskText(); wGroupTaskName.SetTextFormat(gmTask.GetTitle(), gmTask.GetLocationName()); } }