Installer Steam
log på
|
sprog
简体中文 (forenklet kinesisk)
繁體中文 (traditionelt kinesisk)
日本語 (japansk)
한국어 (koreansk)
ไทย (thai)
Български (bulgarsk)
Čeština (tjekkisk)
Deutsch (tysk)
English (engelsk)
Español – España (spansk – Spanien)
Español – Latinoamérica (spansk – Latinamerika)
Ελληνικά (græsk)
Français (fransk)
Italiano (italiensk)
Bahasa indonesia (indonesisk)
Magyar (ungarsk)
Nederlands (hollandsk)
Norsk
Polski (polsk)
Português (portugisisk – Portugal)
Português – Brasil (portugisisk – Brasilien)
Română (rumænsk)
Русский (russisk)
Suomi (finsk)
Svenska (svensk)
Türkçe (tyrkisk)
Tiếng Việt (Vietnamesisk)
Українська (ukrainsk)
Rapporter et oversættelsesproblem
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.
One player managed to see the None role appear on the Undecided's vote menu. I'm not sure as to why it showed up, and it only happened once. They were able to select it and were spawned in as the None role normally used only for Preparing.
But also, let me know what number for ttt2_undecided_time_between_ballots you end up using. I can increase the slider length to include that number.
https://github.com/AaronMcKenney/ttt2-role_undec
Every now and then I wonder if I should make a role that constantly changes what it is... Some sort of "glitch" or "Missingno" type role. I'll think about it...
I think a more interesting twist would be if the vote kept reappearing every minute forcing them to have to keep voting and keep switching roles.