Page MenuHomeFeedback Tracker

[1.10.153507] There is no difference in .ADM file for shelters after creating
New, NormalPublic

Description

Player "PR9INICHEK" (id=... pos=<10103.9, 7859.0, 194.2>) built Shelter Site with Shelter Site - ShelterStick
Player "PR9INICHEK" (id=... pos=<10096.5, 7858.6, 194.5>) built Shelter Site with Shelter Site - ShelterFabric

Please change Shelter Site to unique class name

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Config

Event Timeline

PR9INICHEK updated the task description. (Show Details)
PR9INICHEK added a comment.EditedOct 27 2020, 8:46 PM

1.10.153518

22:44:39 | Player "PR9INICHEK" (id=... pos=<10595.9, 8044.1, 210.3>) placed Shelter Kit
22:46:11 |  built ShelterFabric with Hands 
22:46:11 | Player "PR9INICHEK" (id=... pos=<10595.1, 8045.0, 210.3>) built Shelter Site with Shelter Site

...

Sorry but it's not good decision add new strings into 4_world\entities\itembase\basebuildingbase\sheltersite.c

I think need add some statements into GetAdminLogMessage function (4_world\classes\useractionscomponent\actions\continuous\actionbuildpart.c)

@Geez please send it to devs

Just add next code in scripts\4_World\classes\useractionscomponent\actions\continuous\actionbuildpart.c

override string GetAdminLogMessage(ActionData action_data)
{
  if (action_data.m_Target.GetObject().GetDisplayName() == "Shelter Site")
  {
    string part_name = BuildPartActionData.Cast(action_data).m_PartType;

    if (part_name != "")
    {
      string shelter_type = "";
      switch (part_name)
      {
        case "leather": 
          shelter_type = "ShelterLeather";
        break;
        
        case "fabric": 
          shelter_type = "ShelterFabric";
        break;
        
        case "stick": 
          shelter_type = "ShelterStick";
        break;
          
        default: {};
      }
      return " built " + shelter_type + " with Hands";
    }
    else
    {
      return " built " + action_data.m_Target.GetObject().GetDisplayName() + " with " + action_data.m_MainItem.GetDisplayName();
    }
  }
  else
  {
    return " built " + action_data.m_Target.GetObject().GetDisplayName() + " with " + action_data.m_MainItem.GetDisplayName();
  }
}