Raised This Month: $32 Target: $400
 8% 

[CS:GO] SimpleMapEnforcer


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Sarrus
Member
Join Date: May 2020
Location: France
Plugin ID:
7351
Plugin Version:
v1.0
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A simple plugin that makes sure the nextlevel convar is what you want it to be.
    Old 10-26-2020 , 08:09   [CS:GO] SimpleMapEnforcer
    Reply With Quote #1

    Simple Map Enforcer



    Description:

    A simple plugin that makes sure the nextlevel convar is what you want it to be.
    This is useful for 24/7 server which want to reset their maps every games, i.e servers which have
    Code:
    mp_match_end_changelevel
    enabled.
    For some reason it would switch to stock maps if you were using workshop maps.


    Installation:

    Simply download the .smx from the github link below and add the file to your plugins folder.
    Restart the server and go to cfg/sourcemod where you will find a config file named SimpleMapEnforcer.cfg
    Edit the value of the
    Code:
    sm_forced_nextmap
    Cvar and restart your server.

    GitHub
    __________________
    Discord Coding Server | Steam Profile | Community Website | Github Profile

    Taking paid requests (add me on Discord)

    Last edited by Sarrus; 10-26-2020 at 08:10. Reason: Forgot description
    Sarrus is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 10-27-2020 , 21:35   Re: [CS:GO] SimpleMapEnforcer
    Reply With Quote #2

    Hi.
    First for all, I'm not rude to you, I want share my info.
    Second, I haven't test your plugin, I can't say nothing about that. I assume it works perfectly.


    But this situation, to try fix problem with extra plugin, just because not to look more deep what cause this problem.
    And with extra unnecessary plugin(s), someone may get more problem in future, then appear new forum topic "help me" with lacking post "Can't play other maps".
    Like for example.


    To say, CS:GO does have complicated map cycle compare to other games.
    This why not all SourceMod basic plugins work 1:1 with this game.

    SourceMod console variable: sm_nextmap
    - SourceMod create powerful cvar called sm_nextmap ,
    when this cvar has map name set, it will override next map on map change state.
    You usually see this log message when it happens at map change:
    L 10/27/2020 - 23:41:14: [SM] Changed map to "cs_office"
    As long as there is map name set into sm_nextmap, it will cycle to that map only. Need to clear sm_nextmap "" to stop it.

    SourseMod plugin: nextmap, randomcycle, mapchooser, etc. etc. plugin code SetNextMap()
    - By default, basic SourceMod plugins not read CS:GO mapgroup and workshop collection.
    Most games have mapcyclefile cvar, SourceMod plugins can read that default mapcycle.txt file, look all maps from maps folder or read another custom map list.
    Plugins like nextmap and randomcycle change cvar sm_nextmap on map start automatically.
    This is common problem with people in CS:GO server when they want use mapgroup instead.
    What they see and expect in next map, on map change it is another map.
    They need remove those plugins and after that clear cvar sm_nextmap "" or restart server.

    CS:GO disable map cycle:
    Code:
    "mapcycledisabled" = "0"
    FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
    - repeats the same map after each match instead of using the map cycle
    This will stop cycle maps from mapcycle.txt or mapgroup list. Repeat same map.

    CS:GO workshop maps:
    - Use webapi_authkey.txt or
    Set Steam API key -authkey code in server launch option (and +map de_dust2)
    In ...cfg/autoexec.cfg
    need set both cvars
    host_workshop_collection 770500357
    host_workshop_map 632040311
    workshop_start_map 632040311

    When server start de_dust2 map, you have working Steam API key then server change to workshop map.

    CS:GO end of match map vote:
    - When use mapgroup or workshop collection
    Code:
    "mp_endmatch_votenextmap" = "1"
    FCVAR_GAMEDLL FCVAR_REPLICATED FCVAR_RELEASE 
    - Whether or not players vote for the next map at the end of the match when the final scoreboard comes up
    Disable map vote working, but map vote still appear, cs:go bug.



    I'm not sure is this all.
    But these can be solved, need to little bit examine.

    Carry on!

    Last edited by Bacardi; 10-28-2020 at 05:29. Reason: fix
    Bacardi is offline
    Sarrus
    Member
    Join Date: May 2020
    Location: France
    Old 10-29-2020 , 07:03   Re: [CS:GO] SimpleMapEnforcer
    Reply With Quote #3

    Hello, thanks you for your advices!

    I've tried all of those commands but none of them worked. For some reason nextlevel kept getting set to dust2 :/

    The reason for that I think is that I run multiple instances of the servers using a single installation directory with LinuxGameServerManager.
    It's not a plugin for everyone, because, as you've said, they should start by fixing the problem at the root, not patching it with plugins.

    Regarding the "mp_endmatch_votenextmap" = "1" issue, you can disable the votes for good by removing the mapgroup from the launch options.
    __________________
    Discord Coding Server | Steam Profile | Community Website | Github Profile

    Taking paid requests (add me on Discord)
    Sarrus is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 17:17.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode