Skip to content

Suggestion for easier access to core.json's removeModItemsFromProfile and removeInvalidTradersFromProfile #799

Description

@sheepiest

SPT Version

4.1

Build Name

N/A

Project Type

No response

Expected Result

In SPT 4.0, when users uninstall a mod adding custom items and/or traders the server marks the profile as invalid and gives instructions to modify \SPT_Data\configs\core.json. The most common issue this causes is users leave removeModItemsFromProfile and removeInvalidTradersFromProfile enabled, which gives them the false impression further content mod removals will not have any effect on their profile, where in reality they are compounding any issues this might cause. The potential issue this might cause is either users editing the core.json incorrectly, or incentivizing further edits to SPT_Data files.

My suggestion is to add a way to either the new launcher or the SIC to do this. Ideally it would be a one-time toggle that would warn the user of its potential to not work, and recommending reinstalling the mod as the best approach to keep using the profile, which wouldn't stay enabled on subsequent mod uninstalls.
Another approach would be to have the server run the removals automatically with a message informing of its potential consequences. As the process risks breaking profiles it would need a way of either creating a backup or a copy of profiles before the removals so users can always go back to it and reinstall the removed mod instead.

Actual Result

N/A

Steps To Reproduce

N/A

Server Log

N/A

BepinEx Log

N/A

Client Log

N/A

Player Profile

No response

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bleeding edgeThis issue is for a bleeding-edge version.triageA fresh issue, yet to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions