Page MenuHomeFeedback Tracker

FactionIdentifier methods return nothing when used outside of Faction class
Awaiting internal Testing, NormalPublic

Description

Game Version number: 1.2.1.127
Modded?: (Yes/No) No

Issue Description:

  1. When FactionIdentifier being created in custom non-Faction class, GetSoundIdentities, GetVisualIdentities, GetSocialIdentities returns nothing, thus not allowing to use identities in custom code (see reproduction steps).
  2. FactionIdentity is readonly field and couldn't be changed/overriden, so you can't to get workaround for this issue by overriding faction identity/setting some new value for that in-engine field.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce
  1. Create custom config class
[BaseContainerProps(configRoot: true)]
class SCR_MyNotFaction
{
[Attribute()]
protected ref FactionIdentity m_FactionIdentity;
}
  1. Assign existing faction identifier config (for example, {46413880217C8196}Configs/Identities/FactionIdentity_FIA.conf) to this attribute.
  2. Try to obtain some identities from that faction identifier:
array<ref VisualIdentity> visIdentities = {};
m_FactionIdentity.GetVisualIdentities(visIdentities);
PrintFormat("VisCount %1", visIdentities .Count());

array<ref VisualIdentity> soundIdentities = {};
m_FactionIdentity.GetSoundIdentities(soundIdentities);
PrintFormat("SoundCount %1", soundIdentities .Count());

PrintFormat("Social %1",m_FactionIdentity.GetSocialIdentities());

Event Timeline

Socrates created this task.Oct 27 2024, 3:59 PM
Socrates updated the task description. (Show Details)Oct 27 2024, 4:06 PM
Geez changed the task status from New to Awaiting internal Testing.Oct 29 2024, 2:20 PM