-
Notifications
You must be signed in to change notification settings - Fork 736
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
Cba settings nametags #3838
Cba settings nametags #3838
Conversation
Moved this up to the 3.7.0 milestone. CBATeam/CBA_A3#317 is not part of the current CBA RC. This will most likely not be included with 3.6.0. I suspect ACE 3.6.0 will be released before CBA releases the new CBA settings framework. If things change, we can retag this for 3.6.0. |
<Hungarian>Névcímkék</Hungarian> | ||
<Russian>Имена игроков</Russian> | ||
<Italian>Etichette Nomi</Italian> | ||
<English>ACE Name Tags</English> |
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.
Is the mod name needed here? Isn't it in separate categories anyways?
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.
It's the same as keybinds. The idea is that every mod has a category. ACE is so big that components should be grouped together. Nametags has enough settings to get one tab itself.
I suggest you check it out ingame.
To view the missions tab (which has 3 additional options formly tagged with clientSettable = 0
) just enter 3den. The menu can be found under "Settings".
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 see. I'll check it out in-game!
Oops. That was just muscle memory. |
@@ -13,7 +13,8 @@ class CfgPatches { | |||
}; | |||
|
|||
#include "CfgEventHandlers.hpp" | |||
#include "ACE_Settings.hpp" | |||
#include "CBA_Settings.hpp" |
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.
Mybe we should not change the file name, which would make the PR much easier to review
I strongly dislike the "settings in sqf" approach.
What exactly do we get in return? |
Is that a thing? Never heard anyone do that. Seems not very practical compared to how it could be done with a settings.sqf file in the userconfig of the server or by just changing the values as admin ingame.
yes, but that is not how mission settings are done with the CBA system. You enter them ingame in 3den. If you want to edit text files, then you can also "import" those ingame.
It doesn't. The settings are localized on the local machine.
I might be able to drop the whole config reading function and simplify the CBA branch. |
So you admit it's more restrictive but consider the additional restricition's not to be important. I can agree with that. But I still can't see enough benefits. Are there any? From a broader perspective, I always admired the way Arma organized content into easily acesible and patchable data using the config database. Makes for a great data-driven approach, which is partly responsible for making the game as mod friendly as it is. Putting data stuff there plays to those strengths. |
I like the config way that we currently have in ace. This is critical because it ensures that settings will be the same both on the dedicated server and when mission makers test locally. |
I just re-read this and it's totally right. I never even thought of that. That can be changed though.
It's 75 lines of config that can are reduced to 18 lines of SQF. You can add those functions you want to call whenever a setting changed directly to the setting without having to compile. You can edit these settings while debuging which isn't possible with configs on stable branch. |
The ability of adding settings on the fly is def. an advantage. The LOC argument does not hold though class GVAR(defaultNametagColor) {value[] = {0.77, 0.51, 0.08, 1}; typeName = "COLOR"; isClientSettable = 1; displayName = CSTRING(DefaultNametagColor); category = CSTRING(Module_DisplayName);}; 😄 |
BTW, looking at this, apparently it doesn't work properly on the current version either. The setting name should not be localized ever, expect when actually displaying it (for example in |
Yeah. While that is a extremely minor thing, this can easily be fixed on the CBA side. |
fixed that |
For the record, I still prefer the current approach. |
Configs or in general? |
Of course ACE should migrate to CBA settings, but I'd prefer to keep settings in config for the stated advantages. If CBA can do configs, then I don't see why it shouldn't support and offer a version of ACE_Server.pbo |
Because there is no need to. Settings are stored in the profile. And if you really want to have a file, then use the one for the userconfig. |
How exactly does CBA settings enforce the "community wide fool-proof settings" objective that lead to the development of ACE settings? |
Here as an example, this is what you get when you press "EXPORT" in the ingame editor:
(random settings are forced) With this you can:
|
One could argue that it is absolutely fool proof, even more so than the ACE settings system, because there is an ingame editor with tooltips explaining every button you could press. |
Regarding @PabstMirror 's use case, the CBA system lacks a simple way to keep the forced settings in sync between server and the clients of mission maker and community members. I wonder if it's really confortable to use. Example story 1: 1- Community manager A sets his default settings for the community Example story 2: 1- Community manager A sets his default settings for the community Example story 3: 1- Community manager A sets his default settings for the community |
The point is that settings are seldomly changed. In my opinion being fool proof means that you can set them once and forget forever, and get them as you want them on all clients and server on all missions at all times. |
Vanilla settings and CBA keybinds are never required to be shared, and they are never required to be exactly the same between different people either. Community settings are by definition. |
So just we are on the same boat: You can transfer settings with the CBA system too. It's even easier to do since you don't have to edit any (mission)pbo files. |
For missions, if you really want to edit / copy files you can do that with the mission.sqm too. (That's where 3den stores it's settings instead of description.ext)
It's a bit verbose - because 3den - but it is possible. |
B has to has access to that settings.sqf. It implies the community manager emailing the file every time he tweaks the server settings. It's also error prone. And cumbersome if you want to play with different communities. To me it seems a lot better to keep that data in the modpack, which people already keep in sync constantly. |
Actually this is possible too. All you need to do is pack an addon that has this file: |
Can you put files on userconfig inside a pbo? |
Yes. "userconfig" is just a path. same as "addons". |
Well @commy2, I give up. I clearly don't know enough about the CBA setting framework to understand all the possibilities it offers. In my mind it still feels kinda convoluted though. Maybe some documentation on how to set it up for most common use cases could help. |
I'm still trying to figure out the use-cases as you can see. |
I said it feels convoluted to me; I'm a bit too confused to explain why. The idea is slowly growing on me though. |
Thanks for explaining your concern though. I didn't know how the ACE settings system is used by some communities. I'll try to figure out good ways to have something similar with this. My goal still is to make nothing worse than it is now. |
@commy2, there's nothing to thank; I always enjoy discussing with you my friend ❤️ 😄
Yes, this is exactly true. Maybe when you connect to a server there should be a way to "save" the server settings to use later in the editor, both for developing missions or training with those settings. I know "export" wouldn't work on those conditions due to |
<3
Wow, I didn't know about that. That sucks... Well unless I make a editbox control where you can copy paste it from manually ... |
I was thinking something like this: 1- Connect to the server |
Sounds interesting. Basically different presets one can choose. One guy even had the idea to have different "server presets" you can select as admin before starting a mission. I just don't know how editable those displays are. |
"Presets" sounds like a nice definition |
So basically 3 addional buttons for the settings menu: Save Preset -> opens editbox to insert name, use already existing name to overwrite Both Preset lists have a "Delete Preset" button. "Current Client Settings" and "Current/Last Server Settings" (as well as "Current/Last Mission Settings"?) will be automatically added as presets. |
Sounds good I think |
@esteldunedain Additionally you can edit these settings during briefing. This includes the server settings as admin or as local host. |
It can now be accessed:
Do you still have / have more concerns about the system? I must say that I'm quite happy with how it works now. |
@commy2, you are a genius. Congratulations. Quick question; how resilient is this system to new settings being created or old ones being deleted? |
Deleted settings remain forever in profile or the mission. There is no quick way to tell whether a setting is removed from a mod or if the mod is just disabled. And I obviously don't want to reset all ACE setting just because you played vanilla once. If a setting was changed in a way where the old value is no longer considered valid (e.g. an item was removed from a list, or a sliders max value was reduced), it will be reset to the default value (profile will be updated). If a preset does not contain any information about a new setting, loading the preset will just keep the settings value to whatever it was set to already. |
But, do old (deprecated or removed) settings still show up on the settings menu? |
No, they won't. |
Perfect, that was my concern. 👍 |
ce58160
to
afb9eb3
Compare
When merged this pull request will: