Page MenuHomeFeedback Tracker

Scriptable Faction Manager + Dynamic Conflict Factions / Belligerents
Feedback, NormalPublic

Description

TLDR; add a scriptable API for FactionManager, replace all hardcoded checks for US/USSR campaign faction keys/labels with using faction manager as single source of truth for Conflict faction config

Currently there are tons of hardcoded checks against specific faction keys defined in the Conflict game mode (m_sBLUFORFactionKey, m_sOPFORFactionKey and m_sINDFORFactionKey) and other parts of logic for example HQ assignment only selects HQs for the 2 faction keys defined as BLUFOR and OPFOR. If you wanted to make a 3-way Conflict mod (say USvsUSSRvsCN) it's currently not possible due to how many aspects of Conflict and it's components are statically checking for only 2 participant factions.

Really the vanilla faction system (as integrated into Conflict and adjacent features) should be fully dynamic and refer to the runtime faction manager config as a single source of truth, all static checks against specific faction keys and indicies in places like campaign, base and radio managers/components should be checking the faction manager.
Then we can have scripts dynamically adding/updating factions according to our needs and they should all "just work" with all of the vanilla Conflict features (base building, capping etc).

This functionality is required for a lot of custom FFA/TvT game modes focused more around dynamic player groups than predefined scenario factions.
Mods like WasteLand, Rogue Extract, Everon Life etc could all benefit from the factions system being more dynamic and factions being creatable at runtime via scripts
Most of these kind of mods just have a work-around solution like repurposing squads/groups as player factions which kind of works for the most basic use cases but doesn't support all the capabilities that dynamic factions would for example integration with Conflict features and more powerful customization features like we could allow players to set icon colours, flag, which style of faction prefabs to use for bases built by their player group etc.

Details

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

Try adding a third participating faction to Conflict

Event Timeline

wyqydsyq created this task.Feb 6 2025, 1:26 AM
wyqydsyq updated the task description. (Show Details)
wyqydsyq updated the task description. (Show Details)Feb 6 2025, 1:52 AM
Geez changed the task status from New to Feedback.Feb 6 2025, 11:48 AM
wyqydsyq updated the task description. (Show Details)Feb 25 2025, 8:10 AM
wyqydsyq updated the task description. (Show Details)
wyqydsyq updated the task description. (Show Details)Feb 25 2025, 8:15 AM
wyqydsyq updated the task description. (Show Details)
wyqydsyq updated the task description. (Show Details)Feb 25 2025, 8:17 AM

Update:

I didn't realise this at the time of opening this ticket but according to Arkensor:

Not editable by script, configured at loadtime through the prefab on the map. You may request script api via feedback tracker if you can present a usecase that shows the need for it

Last paragraph of the ticket description provides usecases that shows the need for it :)

This functionality is required for a lot of custom FFA/TvT game modes focused more around dynamic player groups than predefined scenario factions.
Mods like WasteLand, Rogue Extract, Everon Life etc could all benefit from the factions system being more dynamic and factions being creatable at runtime via scripts
Most of these kind of mods just have a work-around solution like repurposing squads/groups as player factions which kind of works for the most basic use cases of grouping players but doesn't support all the capabilities that dynamic factions would for example integration with Conflict features and more powerful customization features like we could allow players to set icon colours, flag, which style of faction prefabs to use for bases built by their player group etc.

wyqydsyq renamed this task from Dynamic Factions / Conflict Belligerents to Scriptable Faction Manager + Dynamic Conflict Factions / Belligerents.Tue, May 13, 3:00 PM
wyqydsyq updated the task description. (Show Details)
wyqydsyq updated the task description. (Show Details)
wyqydsyq updated the task description. (Show Details)