Difference between revisions of "Custom Factions"
(For next update, will be adding to this.) |
m |
||
Line 13: | Line 13: | ||
== Replacing Factions == | == Replacing Factions == | ||
+ | {| class="wikitable" | ||
+ | |+ | ||
+ | !Property Name | ||
+ | !Type | ||
+ | !Description | ||
+ | !Template | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |- | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | | | ||
+ | |} | ||
+ | |||
== Configuration Settings == | == Configuration Settings == |
Revision as of 14:57, 25 July 2023
This page refers to a community made workshop mod created by User:Elf . For support using the mod, you can request support on the official holdfast discord in #Server-Owners.
This mod allows for players to replace the in-game assets to create custom factions by overriding existing factions.
Setting up the Mod
- Install the Holdfast SDK
- Install a code editor (eg Visual Studio) . This is required for the SDK to correctly build script-based mods.
- Make sure the SDK has your code editor linked. This can be found from edit -> Preferences -> External Tools and then selecting the correct External Script Editor.
- Create a new empty mod.
- Download and copy files from github into the mod folder. The scripts MUST be in the mods folder or they will not be included in the build.
Replacing Factions
Property Name | Type | Description | Template |
---|---|---|---|
Configuration Settings
By default the mod will assign one Custom faction to one existing factions. However sometimes you may need more faction replacements than factions which exist in the game. For example the naval gamemode only has two ingame factions. Therefore by the config you can define which faction to override based on the attacker and defender name.
This will use custom factions based on ID instead of faction.
mod_variable xmg_rating:UseCustomFactions:true
This will replace <faction ID>
for the attacking or defending faction.
mod_variable xmg_rating:CustomAttackerFactionID:<faction ID> mod_variable xmg_rating:CustomDefenderFactionID:<faction ID>
Example
For the melee community, a mod allows different national teams to be selected. The mod has 10+ factions which would not be possible without custom ID's. The following will replace the attacking faction with the NA custom faction and the defending faction with the Scandinavia custom faction.
mod_variable_local xmg_rating:UseCustomFactions:true mod_variable_local xmg_rating:CustomAttackerFactionID:NA mod_variable_local xmg_rating:CustomDefenderFactionID:Scand