Skip to content

[Feature Request] Automatically add new cvars to plugins' AutoExec Configs #2427

@Dolly132

Description

@Dolly132

Help us help you

Is your feature request related to a problem? Please describe.

Yes, every time I update a plugin on the server (With new cvars), I have to either manually edit the generated auto exec cfg file of the plugin or remove it and let the new version of the plugin generate a new one (Not an idea solution because I could use my own values for cvars instead of defaults)

Describe the solution you'd like

Let sourcemod automatically add the new cvars to the generated config file if it exists.

Describe alternatives you've considered

Instead of letting sourcemod generate/write into the config file when the file originally doesn't exist, let sourcemod add the missing cvars to the file (In both cases where it exists and where it doesn't).
This would help preventing to manually edit/automatically generating new config files for the new versions of the desired plugin.

Additional context

There has to be a function to parse each cvar name that exists in the autoexec config file (if it originally exists), and based on this, sourcemod can add the new missing cvars to the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions