Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server crashing after map change command #646

Open
crashzk opened this issue Oct 27, 2024 · 8 comments
Open

Server crashing after map change command #646

crashzk opened this issue Oct 27, 2024 · 8 comments
Labels
untriaged New issue has not been triaged

Comments

@crashzk
Copy link

crashzk commented Oct 27, 2024

We have a bug when changing the map using the !map command or even with map voting plugins. Server simply crashes and restarts the server, it does not change to the map that won in the vote or even the map that we chose manually. It doesn't happen all the time, it's kind of random apparently.

We already had an issue regarding this: #591

@github-actions github-actions bot added the untriaged New issue has not been triaged label Oct 27, 2024
@crashzk
Copy link
Author

crashzk commented Oct 27, 2024

Log I found in the console:

CHANGELEVEL: ConVar 'nextlevel' is set, next map will be 'de_dust2'
CHANGE LEVEL: de_dust2
Changelevel de_dust2 (null)
CHostStateMgr::QueueNewRequest( Changelevel (de_dust2), 5 )
SV:  CNetworkServerService::StartChangeLevel( (no landmark) )
Client 0 'Henfi' signon state SIGNONSTATE_FULL -> SIGNONSTATE_CHANGELEVEL
�[39;49m�[37m23:57:40�[39;49m�[39;49m�[30m [�[39;49m�[39;49m�[37mINFO�[39;49m�[39;49m�[30m] (plugin:�[39;49m�[39;49m�[37mGG1_MapChooser�[39;49m�[39;49m�[30m) �[39;49m�[39;49m�[37mT Wins 17, CTWins 14�[39;49m
[Clutch Announce 1.1.0] OnRoundEnd event fired!
�[39;49m�[37m23:57:40�[39;49m�[39;49m�[30m [�[39;49m�[39;49m�[37mINFO�[39;49m�[39;49m�[30m] (plugin:�[39;49m�[39;49m�[37mGG1_MapChooser�[39;49m�[39;49m�[30m) �[39;49m�[39;49m�[37mResetData from On last client disconnect�[39;49m
Client 1 'k...' signon state SIGNONSTATE_FULL -> SIGNONSTATE_CHANGELEVEL
HostStateRequest::Start(HSR_GAME):  loop(levelload) id(5) addons() desc(Changelevel (de_dust2))
SwitchToLoop levelload requested:  id [5] addons []
SV:  IGameSystem::LoopDeactivateAllSystems {
HO:  IGameSystem::LoopDeactivateAllSystems {
HO:  } IGameSystem::LoopDeactivateAllSystems done
SV:  } IGameSystem::LoopDeactivateAllSystems done
SourceTV[0] shutting down (non-relay) due to server disconnecting game.
CHLTVServer::Shutdown

@KillStr3aK
Copy link
Contributor

I've been unable to reproduce this issue, which plugin utilizes the given !map command?

@daffyyyy
Copy link

Disable csstv

@crashzk
Copy link
Author

crashzk commented Oct 29, 2024

I've been unable to reproduce this issue, which plugin utilizes the given !map command?

@KillStr3aK plugins I tested and had this problem:
- SimpleAdmin: https://github.com/daffyyyy/CS2-SimpleAdmin
- CSS Panel Plugin: https://github.com/CSSPanel/Plugin

And testing with changelevel itself in the server console, there were times when the server crashed and restarted.

Disable csstv

I saw some information about this too, but in my case I need CSTV, I provide game demos for players.

I also saw some recommendations to disable tv_delay 0. I will also test and see if it solves the problem, but I would also like to leave a delay configured since I also allow the connection to CSTV.

@daffyyyy
Copy link

Its cstv issue not CSS or bots if used.
Just use plugin like k4 demo ...

@crashzk
Copy link
Author

crashzk commented Oct 29, 2024

Its cstv issue not CSS or bots if used. Just use plugin like k4 demo...

I understand, but I'm already using the K4 Demo plugin, and the bug still occurs.

The CSTV config I use is just this.

//CSTV
tv_enable "1" // Enable CSTV
tv_autorecord "0" // Automatically record demo

K4 Demos plugin does everything else, recording, etc.

@daffyyyy
Copy link

Can u write dm on discord? I'm back in ~2 hours, known issue for me

@crashzk
Copy link
Author

crashzk commented Nov 2, 2024

Can u write dm on discord? I'm back in ~2 hours, known issue for me

Hello, sorry for the delay, I sent you a DM on your discord. Problem still occurs for me.

As I mentioned, BOTS removed at server startup, command bot_quota 0 in server.cfg.

The GOTV config I use would be this:

//CSTV
tv_enable "1"
tv_autorecord "0"

K4-GOTV-Discord plugin config:

// This configuration was automatically generated by CounterStrikeSharp for plugin 'K4-GOTV-Discord', at 2024/10/18 07:07:32
{
  "general": {
    "minimum-demo-duration": 300,
    "delete-demo-after-upload": true,
    "delete-zipped-demo-after-upload": true,
    "delete-every-demo-from-server-after-server-start": false,
    "log-uploads": true,
    "log-deletions": true,
    "default-file-name": "demo",
    "regular-file-naming-pattern": "{fileName}_{map}_{date}_{time}",
    "crop-rounds-file-naming-pattern": "{fileName}_{map}_round{round}_{date}_{time}"
  },
  "discord": {
    "webhook-url": "https://discord.com/api/webhooks/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "webhook-avatar": "",
    "webhook-upload-file": true,
    "webhook-name": "Demo",
    "embed-title": "{server_name}",
    "message-text": "",
    "server-boost": 0
  },
  "auto-record": {
    "enabled": true,
    "crop-rounds": false,
    "stop-on-idle": false,
    "idle-player-count-threshold": 0,
    "idle-time-seconds": 300
  },
  "mega": {
    "enabled": false,
    "email": "",
    "password": ""
  },
  "demo-request": {
    "enabled": false,
    "print-all": false,
    "delete-unused": true
  },
  "ftp": {
    "enabled": false,
    "host": "",
    "port": 21,
    "username": "",
    "password": "",
    "remote-directory": "/",
    "use-sftp": false
  },
  "ConfigVersion": 10
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

3 participants