Add parameter to force target debug console from server's config#1364
Add parameter to force target debug console from server's config#1364TheShinriel wants to merge 5 commits intoCBATeam:masterfrom
Conversation
addons/diagnostic/stringtable.xml
Outdated
| </Key> | ||
| <Key ID="STR_cba_diagnostic_ForceTargetDebug"> | ||
| <English>Force target debugging for all missions</English> | ||
| <French>Forcer le débogage de la cible pour toutes les missions</French> |
There was a problem hiding this comment.
I guess you mean dots? Fix soon
There was a problem hiding this comment.
Reviewed, to use the same text as the option in Eden
|
addons/diagnostic/XEH_preInit.sqf
Outdated
| ADDON = true; | ||
|
|
||
| if (getMissionConfigValue ["EnableTargetDebug", 0] == 1 || {getNumber (configFile >> "EnableTargetDebug") == 1}) then { | ||
| if (getMissionConfigValue ["EnableTargetDebug", 0] == 1 || {getNumber (configFile >> "EnableTargetDebug") == 1} || {GVAR(forceTargetDebug)}) then { |
There was a problem hiding this comment.
this happens before settings are initialized
There was a problem hiding this comment.
#include "initSettings.sqf"
Is called before, to init the settings.
I have tested solo and multi with and without the option on mission without the mission's config selected, that worked great
There was a problem hiding this comment.
The global variable is definitely not synchronized from the server at preInit. This is a global setting. Try on a server as dedicated client.
There was a problem hiding this comment.
I will test more with a dedicated client and a dedicated server
I could add a waitUntil in the condition, not executed if mission is set to true, however, it will wait the synchronizatio... still have to check what variable I can watch to know when it's done
Thx for the explanation.
There was a problem hiding this comment.
Oki added a commit, that wait the event CBA_settingsInitialized event
|
When merged this pull request will: