-
Notifications
You must be signed in to change notification settings - Fork 77
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
fix(map): Streamline behaviour for the ttt2_enable_map_prefix_ convars #1669
Conversation
This only resolves the issue for the prefixes you added. If one adds a map with another prefix, the issue still persists |
i'm aware of that, if we can find a fix for all prefixes that would be nice! if we would flip all other prefixes to off by default this issue would only occur for servers that enable any other prefixes and i would guess that not many servers would want to play on non-ttt prefixed maps |
If you are aware, then it is fine with me. I already tried for an hour or so, sadly without luck so far. But mexikoedi and I discussed if we should maybe remove the convar change announcement to chat for all convars. That would resolve this issue as well. And announcing convar changes to chat doesn't see polished to me. We could probably make sure that it is still logged to the console or so. |
Reading over this again i'm somewhat inclined to only default Reason being that this would be the most likely setup people are running, correct?
I don't think removing this for all convars would be correct, but we could just drop EDIT: i pushed these changes to the branch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like these changes, thank you. In my opinion this can be merged
404304d
to
25f5b44
Compare
0733957
to
a4d80db
Compare
cleaned up the commit and wrote changelog entries |
* Unconditionally create gm, ttt and ttt2 prefixes We can reasonably assume `gm` maps to be present on the server, the same goes for `ttt` and `ttt2` maps. Creating convars dynamically if we find more map prefixes is still done. Only prefixes for installed maps will be shown anyway. * Disable all map prefixes but `ttt` and `ttt2` by default We will assume people only want to run maps intended for ttt(2). Given that the prefix selection can be modified on the same admin settings page that is (currently) the only one using these convars this seems fine. * Drop FCVAR_NOTIFY for all `map_prefix_enabled` convars Given that these are purely used in an admin context there is no need to announce changes to all users on the server. The last changes especially fixes the original Issue #1632
a4d80db
to
1dfc441
Compare
the last force-push clarified a misconception of mine in the commit message. that being: only prefixes for installed maps will be shown in the maps settings page. E.g. the option to disable/enable |
Updated changes after a few iterations are now the following:
We can reasonably assume
gm
maps to be present on the server, the samegoes for
ttt
andttt2
maps.Creating convars dynamically if we find more map prefixes is still
done. And only prefixes for installed maps will be shown anyway.
ttt
andttt2
by defaultWe will assume people only want to run maps intended for ttt(2).
Given that the prefix selection can be modified on the same admin
settings page that is (currently) the only one using these convars this
seems fine.
map_prefix_enabled
convarsGiven that these are purely used in an admin context there is no need to
announce changes to all users on the server.
The last changes especially fixes the original Issue #1632