-
Notifications
You must be signed in to change notification settings - Fork 87
[Add] Chat Bubble Limit Cvars #971
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,7 @@ public sealed partial class TTSSystem : EntitySystem | |
| [Dependency] private readonly SharedTransformSystem _xforms = default!; | ||
| [Dependency] private readonly LanguageSystem _language = default!; | ||
|
|
||
| private const int MaxMessageChars = 100 * 2; // same as SingleBubbleCharLimit * 2 | ||
| private int MaxMessageChars => _cfg.GetCVar(WhiteCVars.SingleBubbleCharLimit) * 2; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Поиск файла TTSSystem.cs и WhiteCVars.cs
find . -type f -name "TTSSystem.cs" -o -name "WhiteCVars.cs" | head -20Repository: WWhiteDreamProject/wwdpublic Length of output: 197 🏁 Script executed: #!/bin/bash
# Поиск файлов, содержащих SingleBubbleCharLimit
rg "SingleBubbleCharLimit" -l --type=csRepository: WWhiteDreamProject/wwdpublic Length of output: 258 🏁 Script executed: #!/bin/bash
# Проверка содержимого файла TTSSystem.cs около строки 27
rg -B 10 -A 10 "MaxMessageChars" Content.Server/_White/TTS/TTSSystem.csRepository: WWhiteDreamProject/wwdpublic Length of output: 1587 🏁 Script executed: #!/bin/bash
# Найти определение SingleBubbleCharLimit в WhiteCVars
rg -B 2 -A 2 "SingleBubbleCharLimit" Content.Shared/_White/CCVar/WhiteCVars.csRepository: WWhiteDreamProject/wwdpublic Length of output: 54 🏁 Script executed: #!/bin/bash
# Найти определение TTSEnabled для сравнения флагов
rg -B 2 -A 2 "TTSEnabled" Content.Shared/_White/CCVar/WhiteCVars.csRepository: WWhiteDreamProject/wwdpublic Length of output: 54 🏁 Script executed: #!/bin/bash
# Проверить все CVAR определения в файле WhiteCVars для понимания паттерна
cat Content.Shared/_White/CCVar/WhiteCVars.cs | head -100Repository: WWhiteDreamProject/wwdpublic Length of output: 631 🏁 Script executed: #!/bin/bash
# Найти все файлы WhiteCVars.*
find . -type f -name "WhiteCVars*.cs" | xargs ls -laRepository: WWhiteDreamProject/wwdpublic Length of output: 1477 🏁 Script executed: #!/bin/bash
# Прочитать WhiteCVars.Chat.cs
cat Content.Shared/_White/CCVar/WhiteCVars.Chat.csRepository: WWhiteDreamProject/wwdpublic Length of output: 908 🏁 Script executed: #!/bin/bash
# Прочитать WhiteCVars.TTS.cs
cat Content.Shared/_White/CCVar/WhiteCVars.TTS.csRepository: WWhiteDreamProject/wwdpublic Length of output: 1799 🏁 Script executed: #!/bin/bash
# Поиск других примеров, где серверный код читает CLIENT CVAR
rg -B 3 -A 3 "GetCVar.*CVar\.CLIENT" --type=cs | head -50Repository: WWhiteDreamProject/wwdpublic Length of output: 54 🏁 Script executed: #!/bin/bash
# Проверить доступ к GetCVar в серверном контексте для CLIENT-only CVAR
rg "IConfigurationManager.*GetCVar" --type=cs -A 2 | head -50Repository: WWhiteDreamProject/wwdpublic Length of output: 800 🏁 Script executed: #!/bin/bash
# Проверить как GetCVar работает с CLIENT-only CVARs
# Найти примеры использования GetCVar с CLIENT флагом на сервере
rg "GetCVar.*SingleBubbleCharLimit|GetCVar.*ColoredBubbleChat|GetCVar.*ChatFancyFont" --type=cs -B 2 -A 2Repository: WWhiteDreamProject/wwdpublic Length of output: 1861 🏁 Script executed: #!/bin/bash
# Проверить документацию или комментарии про множитель * 2
rg -B 5 -A 5 "MaxMessageChars|SingleBubbleCharLimit.*\*.*2" Content.Server/_White/TTS/TTSSystem.csRepository: WWhiteDreamProject/wwdpublic Length of output: 988 🏁 Script executed: #!/bin/bash
# Проверить, есть ли другие примеры в TTSSystem.cs, где используется MaxMessageChars
cat -n Content.Server/_White/TTS/TTSSystem.cs | grep -i "maxmessagechars\|singlebubble"Repository: WWhiteDreamProject/wwdpublic Length of output: 238 Исправьте доступность CVAR на сервере.
Чтобы исправить:
|
||
| private bool _isEnabled; | ||
|
|
||
| public override void Initialize() | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.