Closed TommyGx closed 6 months ago
@TommyGx due to the way this mod is setup, I cannot use any of the existing map vote plugins as they all use one text file, but I need support to change based on the mod.
The inbuilt CS2 map voting at the end unfortunately doesn't work, I have tried to make it show the proper map names and images (which you could in CS:GO) but sadly it doesn't work, which means we will need to use a plugin to solve this.
I have started building my own plugin to handle the map changing/voting which is in the server in it's basic form.
At the moment it chooses a random map from the maps in the current mod and changes it.
As an admin you can type !map in chat and choose a map to change to from the current maps in the current mod.
I'm working on adding in voting at the end of the map but busy with real life atm.
Alright, thank you for the response!
Just an idea that shot through my mind since then.: i made a surf server by it's own before i used this, it had slightly different plugins, but instead of choosing several maps in a script, i made one workshop collection and used that instead. With that, the default voting worked.
Maybe that would work here too. It would also be great if there would be a possibility to add own workshop collection IDs via environment variables.
@TommyGx this should work as you expect now.
I'm using RockTheVote to manage map voting and voting for the next map in combination with a new plugin GameModeManager which updates the maps for the mod so only relevent maps are in the voting list.
I've also added the ability to for players to vote to change the game mode by typing !gamemode
in chat and also start a specific game mode vote by typing !comp
, !wingman
, !dm
, !gg
, !1v1
, !awp
, !aim
, !prefire
, !executes
, !retake
, !prac
, !bhop
, !kz
, !surf
, !minigames
, !course
, !scoutzknivez
, !hns
, !soccer
.
And they can also vote to change the current map with !rtv
.
We also have official docker support now if you want to try that instead of your own solution.
Server is up to date
I've followed the instructions
Game Server Login Token
Operating System
Linux Debian 11
Which mod are you playing
Surf
Are you trying to host online or on LAN?
Online off a machine on my local network
Metamod:Source Version
Command sent: meta version Response: Metamod:Source Version Information Metamod:Source version 2.0.0-dev+1278 Plugin interface version: 16:14 SourceHook version: 5:5 Loaded As: GameDLL (gameinfo.txt) Compiled on: Dec 18 2023 16:34:52 Built from: https://github.com/alliedmodders/metamod-source/commit/6b8ae69 Build ID: 1278:6b8ae69 http://www.metamodsource.net/
Metamod:Source Plugins loaded
Command sent: meta list Response: Listing 1 plugin: [01] CounterStrikeSharp (0.1.0) by Roflmuffin
CounterStrikeSharp Version
Command sent: css Response: CounterStrikeSharp was created and is maintained by Michael "roflmuffin" Wilson. Counter-Strike Sharp uses code borrowed from SourceMod, Source.Python, FiveM, Saul Rennison, source2gen and CS2Fixes. See ACKNOWLEDGEMENTS.md for more information. Current API Version: 142
CounterStrikeSharp Plugins loaded
Command sent: css_plugins list Response: List of all plugins currently loaded by CounterStrikeSharp: 6 plugins loaded. [#1:LOADED]: "BasicAdmin" (1.7.0) by livevilog [#2:LOADED]: "CS2-Ultimate-Mapchooser" (1.0.0) by Kus (https://steamcommunity.com/id/kus/) The Ultimate Mapchooser for CS2! [#3:LOADED]: "CS2_ExecAfter" (1.0.0) by Kus (https://github.com/kus) Executes a command after server event or a delay. exec_after for help [#4:LOADED]: "SimpleAdmin" (0.1.2) [#5:LOADED]: "[Custom] Map Configurator" (V. 1.0.2 [Beta]) by Manifest @Road To Glory Allow server owners to easily create unique configuration files on a per map basis. [#6:LOADED]: "CS2Rcon" (1.2.0) by LordFetznschaedl Allows for server commands to be executed from the client using !rcon
What is the bug
In addition to the other discussion topic i opened i have another problem with the surf stuff.
When i joined my server later today after it has been running for a while with not a lot of active players, it actually ended the round and started a voting. But on that voting i only could see the full steam workshop links as they're listed in the gamemodes_server.txt, but abridged since the names were too long. Sadly i weren't quick enough to take a picture of that. When i tried to vote it didn't work. And then the server tried to switch the map it looked like and crashed.
I run the whole thing as a docker, but i think that should be no problem. I also have the install script as the entrypoint file so that it boots up with updating before it starts. Starting the thing up and executing the surf exec file is no problem. But after that i can neither change the map by an alias nor does the voting work.
Game console output
No response
Server log output
Steps to reproduce