-
Notifications
You must be signed in to change notification settings - Fork 149
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
Add parameter to force target debug console from server's config #1364
base: master
Are you sure you want to change the base?
Conversation
addons/diagnostic/stringtable.xml
Outdated
@@ -92,5 +92,9 @@ | |||
<Italian>[CBA] Abilita il debug remoto. Richiede la console di debug.</Italian> | |||
<Czech>[CBA] Povoluje ladění vzdáleného cíle. Vyžaduje ladící konzoli.</Czech> | |||
</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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Periods after sentences.
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 guess you mean dots? Fix soon
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.
Period as in full stop
.
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.
Reviewed, to use the same text as the option in Eden
|
addons/diagnostic/XEH_preInit.sqf
Outdated
@@ -18,7 +20,7 @@ GVAR(projectileTrackedUnits) = []; | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this happens before settings are initialized
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.
#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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oki added a commit, that wait the event CBA_settingsInitialized event
|
When merged this pull request will: