Page MenuHomeFeedback Tracker

Log inconsistency - quotes around player names
New, UrgentPublic

Description

Occasionally the quotes around player usernames in the logs are missing or in single instead of double quotes (latter of those should have been fixed though with the fix of suicide log). This appears to happen when the user is cached as DayzDevil mentioned in the big log thread.

Details

Severity
Minor
Resolution
Open
Reproducibility
Sometimes
Operating System
Windows 7
Category
Server

Event Timeline

nxck69_ created this task.Nov 14 2023, 11:06 PM
nxck69_ added a comment.EditedJan 30 2024, 10:16 AM
		if ( identity ) 	// return partial message even if it fails to fetch identity 
		{
			//return "Player \"" + "Unknown/Dead Entity" + "\" (id=" + "Unknown" + " pos=<" +  m_PosArray[0] + ", " + m_PosArray[1] + ", " + m_PosArray[2] + ">)";
			m_PlayerName = "\"" + identity.GetName() + "\"";
			m_Pid = identity.GetId();
		}
		else
		{
			m_PlayerName = player.GetCachedName(); // should be "\"" + player.GetCachedName() + "\""
			m_Pid = player.GetCachedID();
		}

in pluginadminlog.c the quotes are missing in the else statement when getting the cachedname

The other issue with single quotes only happens when a suicide is logged in emotemanager.c