Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
All right, thanks for the explanation and the quick fix.
Firstly, and most importantly, it seems that setting the ConVar via the F1 menu doesn't properly replicate and propagate the value to the client. So you still see the timer as 60 even if the server is interally using 20. Not entirely sure why that happened, I feel like this issue may be present on many roles. A quick workaround would be to update the client's ConVar manually via the terminal. Sometimes moving to a new map will also work. For now I have altered the logic to make it so that the client is fed the timer from the server directly, which seems to fix the issue.
Secondly, it seems like you've uncovered a bug, wherein I did not explicitly check that the client was responding to a ballot past its due date. I have fixed that issue.
If I set the timer for example to 20 seconds and do nothing I will get the penalty but the popup with the choices is still there and I can pick a role there (which I also get).
There seems to be an issue with the timer (the timer at the popup is always 60 seconds).
If you were to set num_choices to 99 on a server filled with many bots, the ballot will list out all roles that could possibly be chosen. Random chance won't play a factor here, as num_choices will exceed the amount of roles that you have installed on the server, and the ballot will end up just having all of the valid roles for the server's player count.
I have never seen ROLE_NONE appear on such a list, because I have a check early on that explicitly prevents its appearance. It is possible that your server has a bad addon or data corruption.
I went ahead and added an additional safety check for the Undecided. If a client somehow manages to vote for None or Sidekick or whatever invalid role, they'll now get an error message in the top right and the ballot will be regenerated.