Skip to content

Almost every RTV plugin clashes with this plugin on matchstart #356

@X-VIII

Description

@X-VIII

All RTV plugins are based on old base code which includes this part: (this example is taken from GG1MapChooser):

private void ResetData(string Reason)
    {
        Logger.LogInformation($"ResetData from {Reason}");
        IsVoteInProgress = false;
        nominatedMaps.Clear();
        mapsToVote.Clear();
        _selectedMap = null;
        _roundEndMap = null;
        MapToChange = "";
        _votedMap = 0;
        optionCounts = new Dictionary<string, int>(0);
        rtvRestartProblems = 0;
        roundsManager.InitialiseMap();
        GlobalChatMenu = null;
        GlobalWASDMenu = null;
        _timeLimitVoteRoundStart = false;
        _timeLimitVoteRoundEnd = false;
        TimeLimitExtends = 0;
        timeLimitStartEventTime = DateTime.MinValue;
    }

this part alone is triggered on last player disconnect (empty server) which basically ruins the map selection for the PugSharp plugin on matchstart and selects a default map (de_dust2 90% of the time, depends on plugin), anyway to override this at all ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions