-
Notifications
You must be signed in to change notification settings - Fork 169
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 implementation to replace removed userconfig file #1099
Conversation
One question i have is how does one set the serverside settings? As there is no "settings" menu on a dedicated server. |
ACE team does it with server settings. |
Yep according to https://github.com/CBATeam/CBA_A3/tree/master/template/static_settings_addon |
0819605 @zgmrvn please also remove the old userconfig folder in the PR. Need some opinions on what to do with the settings file @kavinsky @michail-nikolaev Also if we are implementing CBA settings we should do it completly not just partly right? |
Looks like "Static settings" is something diferent than the "Settings Framework". This PR is fonctionnal and you should not have to code any additional function to load data. CBA Settings has a menu you can access while being ingame in Options >> Game >> Configure Addons (at the bottom of the window). You have to be logged as admin to access the server tab. Data are stored in client/server profile. Here is the documentation i have used : CBATeam/CBA_A3#317 |
Wow nice. I didnt know there is a Server tab there. Stuff to test:
|
Ill take it. |
the PR looks good for me, im gonna try to test it this night. |
@zgmrvn can you join the TFAR Slack room? |
It is recommended to execute the function via a CBA XEH preInit event. This way you can make sure that the setting is available in the Eden-Editor. https://github.com/CBATeam/CBA_A3/wiki/Settings-System |
@MakatoMiela Already solved in 1.0. And i think it should also be in 0.9.12 already.. but.. maybe not |
CBA Settings implementation to replace removed userconfig file Former-commit-id: fd1e5ef5e98d5961f16668d85db61a538d2fa890 [formerly bb732b97febb4d0db52114881a3a35645b105927] [formerly 4c4890e50da77b4df60e35bcc24c3df7de9421e9 [formerly 6702f1d15232563ca7aa5b3907e49e2e47eab517]] [formerly fc88ce76305c8110e8d5e0fa625f542979180261 [formerly 55b9f54ca7a4da6bca6fe601fdb15354b975b6dc] [formerly 555943a05a146c77e8a65574479d9047102aa214 [formerly c9f1569449b90796a48d51d909a1e3a840f5751f]]] Former-commit-id: 36d8078f0c587d869d660defef96be40502ce993 [formerly 81e452d95368af261a78f808bdb3465e0a7fd0fc] [formerly 2a540029539c68cf254d7be65a1ce6c7c6b8599b [formerly 5091431750622fd4a9dcfd36cf8b5bda831b44d2]] Former-commit-id: 646e0a09d0e3efdaa2f123bf3df01bb9ff76cdab [formerly dee6eea4cf7e43587c73eb08e7a8c1fe8862450e] Former-commit-id: 8baf2b24c4103a12e606d0cff83dc86792b5f41f
CBA Settings implementation to replace removed userconfig file Former-commit-id: fd1e5ef5e98d5961f16668d85db61a538d2fa890 [formerly bb732b97febb4d0db52114881a3a35645b105927] [formerly 4c4890e50da77b4df60e35bcc24c3df7de9421e9 [formerly 6702f1d15232563ca7aa5b3907e49e2e47eab517]] [formerly fc88ce76305c8110e8d5e0fa625f542979180261 [formerly 55b9f54ca7a4da6bca6fe601fdb15354b975b6dc] [formerly 555943a05a146c77e8a65574479d9047102aa214 [formerly c9f1569449b90796a48d51d909a1e3a840f5751f]]] Former-commit-id: 36d8078f0c587d869d660defef96be40502ce993 [formerly 81e452d95368af261a78f808bdb3465e0a7fd0fc] [formerly 2a540029539c68cf254d7be65a1ce6c7c6b8599b [formerly 5091431750622fd4a9dcfd36cf8b5bda831b44d2]] Former-commit-id: 646e0a09d0e3efdaa2f123bf3df01bb9ff76cdab [formerly dee6eea4cf7e43587c73eb08e7a8c1fe8862450e] Former-commit-id: 8baf2b24c4103a12e606d0cff83dc86792b5f41f Former-commit-id: 24c0c59
CBA Settings implementation to replace removed userconfig file
Here it is, it was pretty simple since the CBA Settings design fits perfectly the way you have designed the TFAR. The CBA Settings init function has to be executed on client and server (no matter your variable is server or client specific) so i have created a cba_settings.sqf file then included it in both of the init functions.