SS14 Loadout Authoring
Use this skill as a working standard for the job-loadout system in SS14 :)
Goal: keep role equipment in one predictable graph job -> roleLoadout -> loadoutGroup -> loadout, without external references and without being out of sync with startingGear.
Area of responsibility
- This skill covers
roleLoadout,loadoutGroup,loadout,startingGearand job prototypes that issue equipment. - This skill does not cover the naming of the entire project. For general naming rules, check
ss14-naming-conventions. - This skill does not replace
ss14-upstream-maintenance: when copying vanilla prototypes to a fork, still keep the changes isolated inside_ProjectName.
Source of truth
- The source of truth for visible roles is the current loadout prototype graph of the fork.
- The default source of truth for hidden roles is the existing
startingGear, unless the user has explicitly asked to migrate them too. - The source of truth for visibility in preferences is the current UI logic:
- job is hidden if
setPreference: false; - department is hidden if
editorHidden: true; - department is also not shown in the character editor if there is no role in it with
setPreference: true.
- Do not consider the loadout copy complete until all links from the fork roles are closed to local fork prototypes.
Mental model
loadout- one specific variant of an item in a specific slot.loadoutGroup- a set of options for one slot or general concept; This is where mandatory is set viaminLimit.roleLoadout- list of groups available to a specific role.startingGear- either a legacy layer for hidden roles, or a synchronized default snapshot of the loadout system.- For visible roles, do not keep the required equipment in both
startingGearand the activeroleLoadoutat the same time: this quickly leads to duplicates and out of sync.
Decision Tree
- Is the role or department hidden in the preferences?
- Yes: do not create a new default loadout binding; leave or restore
startingGear. - No: consider the loadout system as the target source of truth.
- Does the fork role refer to vanilla or someone else's
loadoutGroup?
- Yes: copy it locally to the fork and rewrite the link.
- Does local
loadoutGrouprefer to vanilla or foreignloadout?
- Yes: copy local
loadoutand rewrite the link in the group.
- Is the required item only in
startingGear?
- Yes: transfer it to the loadout system.
- Does the role already have a group for this slot?
- Yes: demand to take one item from the group, and not force the old item from
startingGear. - No: create a hidden/required group for the slot and add it to
roleLoadout.
- Is
startingGearneeded only as default compatibility?
- Yes: synchronize it with loadout slots.
- No: unbind
startingGearfrom job after completed migration.
Naming
Prototype ID
loadout:ScpLoadout+ItemPrototypeId.loadoutGroup:<ForkName(Sunrise, Scp, or another)>LoadoutGroup+ slot name or generic group name.roleLoadout:Job<RoleId>.- If the same
ItemPrototypeIdis needed in two different contexts and without the suffix there will be a collision, add a short context tail:ScpLoadoutFlashlightLanternCargo,ScpLoadoutFlashlightLanternEngineering. - Do not leave new local IDs without a fork prefix.
Group naming
- Prefer generic group names that are not tied to a position if the group is actually reusable between roles.
- Use job-specific group name only if:
- the role has a unique set of options;
- the role has another obligation (
minLimit); - the group needs role-specific semantic.
- Do not name the general group by the vanilla position if the role has already been renamed in the fork.
File naming and placement
- File names are
snake_case. - The local path must mirror the original path inside the fork folder.
- Don't put copies in technical dumps like
Imports/Sunriseif you can put them in a normal mirror path. - If the file refers to a specific role or fork department, use the name of the role and fork department, not the vanilla name.
Workflow
1) Fix the migration area
- Find all
_Projectjob prototypes that the task concerns. - Divide them into two groups:
- visible in preferences;
- hidden (
setPreference: false,editorHidden: true, department without visible roles).
- For hidden roles, do not create a new loadout binding without an explicit user request.
2) Isolate the graph of loadout links
- Collect all
roleLoadoutreferenced by fork roles. - Check each
loadoutGroupreferenced byroleLoadout. - If the group is not local to the fork, create a copy in the fork and overwrite the role’s link.
- Check all
loadoutwithin the group. - If
loadoutis not local to the fork, create a copy in the fork and rewrite the link in the group. - Repeat until the fork roles have no references to vanilla or other fork prototypes.
3) Transfer mandatory equipment from `startingGear`
- For visible roles, consider the loadout system to be a priority.
- Complete all
equipmentand the required container items fromstartingGear. - If an item is already covered by an existing group for the same slot, don't create a new point loadout just for the sake of the old default.
- If a slot is already covered by a group, but the role must have it mandatory, make it mandatory through the group (
minLimiton the group itself or role-specific override of the group). - If the slot is not covered by any groups, create a hidden group with a mandatory selection and one local
loadout. - If only one role needs to change the requirement, do not break the shared group for everyone: create a role-specific override.
- After complete migration, unlink
startingGear:from job so as not to duplicate the output.
4) Maintain synchronization `startingGear`
Use this step when the project is still in hybrid state or the user explicitly asks to synchronize the default spawn.
- Each significant equipment slot that is in
roleLoadoutmust have a compatible default instartingGearif the role retainsstartingGear. - If
startingGearalready contains an item from the corresponding group, leave it. - If the slot is empty, but there is a group, select default like this:
- first the old item from
HEAD startingGear, if it is part of the current group; - otherwise the most neutral, simple and undecorative item from the group;
- if there is both a hidden technical group and a regular visible group for one slot, for
startingGearprefer regular role-playing clothing rather than a technical item; - do not fill in personal/cosmetic groups like
trinkets,bra,pants,socks, unless there is a separate project policy.
- Synchronize
storageandinhandonly when the task clearly requires them.
5) Working with hidden roles/departments
- For jobs with
setPreference: falseby default, leavestartingGear. - For departments with
editorHidden: trueby default, do not create newroleLoadout. - If department is not hidden, but the UI hides it because it doesn't have any roles with
setPreference: true, treat it the same as hidden. - If someone has already created a loadout binding for hidden roles, and the task does not require this, delete the extra
roleLoadoutand returnstartingGear. - Do not create new per-role loadout files for hidden roles just for the sake of mechanically copying the old
startingGear.
6) Check before completion
- Make sure that all
_Project roleLoadout -> loadoutGroup -> loadoutlinks are local. - Make sure there is no missing
loadoutGroup. - Make sure there is no missing
loadout. - Make sure that new
roleLoadoutare not accidentally created for hidden roles unless they were asked to migrate. - If the role leaves
startingGear, check that the key equipment slots are no longer empty if there are loadout groups on these slots. - Run YAML linter.
Patterns ✅
- Copy the external
loadoutGroupto the local fork path and immediately rewrite the role’s link. - Copy the outer
loadoutafter the group until the graph becomes completely local. - Give
loadoutID in the formatScpLoadout<ItemPrototypeId>. - Give
loadoutGroupID in the formatScpLoadoutGroup<SlotOrConcept>, and not according to the historical copy source. - Reuse common groups between roles if the slot and semantics really match.
- Do role-specific override groups if only one role requires a different
minLimitor another set of options. - Transfer required items from
startingGearto hidden required groups and then removestartingGearfrom the job. - Synchronize
startingGearthrough existing groups, and not through new one-time copies of items. - When choosing a default for an empty slot, choose the most neutral and least decorative option.
- In case of a dispute between a technical hidden item and regular clothing for one slot, choose the regular clothing of the role for
startingGear.
Anti-patterns ❌
- Leave the
_ForkNamerole to refer to the vanilla one or_SunriseloadoutGroup. - Copy loadout files to
Imports/...instead of the mirror local path. - Give new local IDs vanilla names without a fork prefix.
- Name files and prototypes by vanilla position, if the role has already been renamed in the fork.
- Create a new single-item group for a slot that is already covered by a normal shared group.
- Change the shared group for the sake of one role and accidentally break the remaining roles.
- Keep the required item simultaneously in the active
roleLoadoutand instartingGearif the role has already been completely migrated. - Automatically migrate hidden jobs/departments to the loadout system without an explicit request.
- Synchronize
startingGearwith cosmetics simply because the role has such groups. - Consider the migration complete without checking the full link graph and YAML linter.
- Forgetting to migrate linen from Loadout to
startingGear
Examples
Example 1: Required slot transfer
- type: loadout
id: ScpLoadoutKeyCardMedicalSpecialist
equipment:
id: KeyCardMedicalSpecialist
- type: loadoutGroup
id: ScpLoadoutGroupIdKeyCardMedicalSpecialist
name: loadout-group-id
minLimit: 1
loadouts:
- ScpLoadoutKeyCardMedicalSpecialist
- type: roleLoadout
id: JobMedicalSpecialist
groups:
- ScpLoadoutGroupIdKeyCardMedicalSpecialist
Comment: The required ID card moves from startingGear to the hidden required group and becomes part of the loadout graph.
Example 2: the slot is already covered by the group, do not force the old item
- type: loadoutGroup
id: ScpLoadoutGroupMedicalShoes
name: loadout-group-shoes
loadouts:
- ScpLoadoutClothingShoesColorWhite
- ScpLoadoutClothingShoesBootsWinterMed
- type: startingGear
id: MedicalSpecialistGear
equipment:
shoes: ClothingShoesColorWhite
Comment: if the role already has a shoe group, just set startingGear to a compatible default. Don't create a separate hidden group just for old white shoes.
Example 3: hidden role do not migrate without request
- type: job
id: JudicialInspector
setPreference: false
startingGear: JudicialInspectorGear
Comment: This default role remains at startingGear. A new roleLoadout is not needed for it unless the task explicitly requests otherwise.
Example 4: a shared group should remain shared
- type: loadoutGroup
id: ScpLoadoutGroupSecurityBackpack
name: loadout-group-backpack
loadouts:
- ScpLoadoutClothingBackpackSecurity
- ScpLoadoutClothingBackpackSatchelSecurity
- ScpLoadoutClothingBackpackDuffelSecurity
Comment: if the set is the same for several security roles, do not duplicate the group for each position. Make a new group only if one role needs a different set or another requirement.
Checklist before PR
- All new IDs correspond to the scheme
ScpLoadout*/ScpLoadoutGroup*/Job<RoleId>. - All new files are located in the mirror local path and are named in
snake_case. - Fork roles do not have references to vanilla or other fork-loadout prototypes.
- For visible roles, mandatory equipment is not left only in
startingGear. - By default, no extra loadout binding is created for hidden roles.
- If
startingGearis left, its equipment slots are synchronized with loadout groups. - YAML linter passes.
Extension rule
- Add to this skill only what relates specifically to authoring the loadout graph.
- If there is a large separate topic like UI loadout window, effect-based loadouts or automatic validation scripts, move it to a separate skill or
references/. - When changing local naming rules, update this skill and
ss14-naming-conventionsin a consistent manner.