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
Should be fixed now, thanks for the report =)
and to extend the function, there could also be an if condition binding the functions execution to an id that is this unique addon name else drop it and remove the previous setting
And no, it wouldn't avoid compatibility issues because the very fact you are setting the client values to something invalid (-1 or 0) is what causes the compatibility issues.
if this here already contains it? and you listed above that installing other versions of CR and BEM itself would cause compatibility issues under conflicts too^^
and in my last comment i mentioned a function example with a if condition that applies the code clientside if the server has allow_change set to 1. that would also prevent compatibility issues if someone would still install another addon.
If you set those client values to 0 or -1 and that client joins another server that isn't running code that supports that, their shop window is completely messed up and unusable. They can fix it by changing the client setting values but any time they joined a server running this code they would have the same problem and I don't want to cause that.
if server convar allow_change = 1 then
ulx cexec <playername> allow_change = -1
btw. i was referring to to ulx beeing able of executing commands on clients
beacuse u said it would be doable if the convar would be set on clientside to -1.
dunno what exactly u where thinking of when u said that but that was just an idea as an solution for that problem
I think that's as much time as I'm willing to spend on this, sorry.
I don't think it runs on a server at all
So, while I think it would be possible to get what you want working, I don't think I'm going to include it because it causes compatibility problems with other servers that don't have matching logic and one of my tenants is cross-addon compatibility. Sorry =/
The right way to do something like this is to have the clientside convars default to an "unset" value, like -1 and then use the server-side values if the client is -1
I can do that, but what I can't do is force anyone who has clientside convars already (e.g. anyone who has ever loaded BEM or any of the CRs that integrate it) to use the new "-1" defaults.
So you can recommend your players set it to "-1" to let the server decide, but most people won't know to do that.
But what if its Like this:
cols = serverCols
rows = serverRows
size = serverSize
if allow_change then
default = {
cols = serverCols
rows = serverRows
size = serverSize
}
cols = clientCols
rows = clientRows
size = clientSize
end
A simple default is given it wouldnt deny client override. Wouldnt that work? Or am I thinking a wrong logic?^^
Like this:
cols = serverCols
rows = serverRows
size = serverSize
if allow_change then
cols = clientCols
rows = clientRows
size = clientSize
end
Perhaps if you cant GET clientside convar setting state you could write a function allowing clientside overwrite. Something like "if server convar allow_change = 1 then client can convar cols,rows,size.
I would consider changing that but the problem is how do I know if someone wants to use the values they've set versus what you've set on the server? I can't just check for the client-side defaults because if someone wants to actually use those values, it will use the server values instead.
i was looking for some serverside convars for the Built in BEM but havent found any in the docs.
Are there any? If not, do you think you can implement the column, row and icon size ones like in the original? would be really nice to be able to configure it serverside.
After everything we decided to swap to a different Custom Roles addon. With this the lag issue was solved and it stopped giving us headaches. Anyway thank you for your effort
It's something we can atleast test out, still I don't believe that solves the issue. Next thing we think about it to disable the throttlng of the GPU itself by some third party software or something.
It really is bizarre...
Perhaps you have an idea? Also we did make sure that we both have only this specific addon subscribed.
There is a new paragraph named "Bypassing Weapon Randomization" on the CONVARS page on my GitHub that explains how it works: https://github.com/Malivil/TTT-Custom-Roles/blob/master/CONVARS.md#bypassing-weapon-randomization