Page MenuHomeFeedback Tracker

Script Errors in "SCR_GroupTileButton"
Awaiting internal Testing, NormalPublic

Description

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

Details

Severity
Tweak
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

Please include reproduction steps here!!!!

Event Timeline

R34P3R created this task.Oct 21 2024, 12:03 PM
Geez changed the task status from New to Awaiting internal Testing.Oct 21 2024, 2:24 PM