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

[BUG] liveMatchId.ToString() is always -1 #255

Open
borzaka opened this issue Nov 30, 2024 · 3 comments
Open

[BUG] liveMatchId.ToString() is always -1 #255

borzaka opened this issue Nov 30, 2024 · 3 comments

Comments

@borzaka
Copy link

borzaka commented Nov 30, 2024

I have a multi instance CS2 server: from the same cs2 folder, I run multiple game servers with different ports. I don't know if this is related, or not.

The problem is, when I set up matches width matchzy_loadmatch, the force name file is always Match_-1.ini in the MatchZyPlayerNames folder.
So, it keeps overwriting, and contains just the last loaded match player names. And later, players with differnt names can join the server.

@shobhit-pathak
Copy link
Owner

Hey!

Are you passing matchid in your JSON file while loading the matches? And do you see any error in console (probably DB related) on loading the match?

@borzaka
Copy link
Author

borzaka commented Dec 4, 2024

No, I didn't set matchid in the match config. I except that it auto increments based on database. Every other place, the match id is auto incremented;

  • in the database
  • in the demo filename
  • in the backup filename

Except in the MatchZyPlayerNames folder, which causes the above problem where not every player name got forced.

@borzaka
Copy link
Author

borzaka commented Dec 5, 2024

Stats and data backup has correct auto increment ID:
image

But not for MatchZyPlayerNames:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants