CBATeam / CBA_A3

Community Base Addons for Arma 3
https://github.com/CBATeam/CBA_A3/wiki
GNU General Public License v2.0
364 stars 150 forks source link

CBA_Settings: Certain Settings fail to set and are falsely marked as invalid - dzn Extended Jamming & Suppress #1510

Closed M-Davies closed 2 years ago

M-Davies commented 2 years ago

Mods (complete and add to the following information):

Description: I am running a Linux Dedicated server using a custom modset and have been attempting to import CBA settings into the server inside the cba_settings.sqf as per this article.

All the settings are imported as expected save these following ones (pulled from my rtp file when attempting to load them manually on the dedicated server):

 1:51:12 [CBA] (settings) WARNING: Value true is invalid for setting L_Suppress_enabled.
 1:51:12 [CBA] (settings) WARNING: Value false is invalid for setting L_Suppress_playerSwabEnabled.
 1:51:12 [CBA] (settings) WARNING: Value true is invalid for setting L_Suppress_flyByEffects.
 1:51:12 [CBA] (settings) WARNING: Value 2.5 is invalid for setting L_Suppress_recovery.
 1:51:12 [CBA] (settings) WARNING: Value 1 is invalid for setting L_Suppress_buildup.
 1:51:12 [CBA] (settings) WARNING: Value 0.15 is invalid for setting L_Suppress_intensity.
 1:51:12 [CBA] (settings) WARNING: Value 0.15 is invalid for setting L_Suppress_flyByIntensity.
 1:51:12 [CBA] (settings) WARNING: Value false is invalid for setting L_Suppress_halting.
 1:51:12 [CBA] (settings) WARNING: Value true is invalid for setting dzn_EJAM_Force.
 1:51:12 [CBA] (settings) WARNING: Value true is invalid for setting dzn_EJAM_ForceOverallChance.
 1:51:12 [CBA] (settings) WARNING: Value 0.1 is invalid for setting dzn_EJAM_OverallChanceSetting.
 1:51:12 [CBA] (settings) WARNING: Value 60 is invalid for setting dzn_EJAM_feed_failure_ChanceSettings.
 1:51:12 [CBA] (settings) WARNING: Value 20 is invalid for setting dzn_EJAM_feed_failure_2_ChanceSettings.
 1:51:12 [CBA] (settings) WARNING: Value 60 is invalid for setting dzn_EJAM_dud_ChanceSettings.
 1:51:12 [CBA] (settings) WARNING: Value 20 is invalid for setting dzn_EJAM_fail_to_extract_ChanceSettings.
 1:51:12 [CBA] (settings) WARNING: Value 20 is invalid for setting dzn_EJAM_fail_to_eject_ChanceSettings.
 1:51:12 [CBA] (settings) WARNING: Value "0.05" is invalid for setting dzn_EJAM_SubsonicJamEffectSetting.
 1:51:12 [CBA] (settings) WARNING: Value """cup_30rnd_subsonic_545x39_ak_m"",""cup_20rnd_subsonic_545x39_aksu_m"",""cup_30rnd_subsonic_545x39_ak74m_m"",""cup_30rnd_subsonic_545x39_ak74_plum_m"",""cup_30rnd_subsonic_762x39_ak47_m"",""cup_20rnd_subsonic_762x39_amd63_m"",""cup_30rnd_subsonic_762x39_ak47_bakelite_m"",""cup_30rnd_subsonic_762x39_ak103_bakelite_m"",""cup_30rnd_subsonic_762x39_akm_bakelite_desert_m"",""cup_30rnd_subsonic_545x39_fort224_m"",""rhs_30rnd_545x39_7u1_ak"",""rhs_45rnd_545x39_7u1_ak"",""rhs_30rnd_762x39mm_u"",""rhs_30rnd_762x39mm_bakelite_u"",""rhs_30rnd_762x39mm_polymer_u"",""hlc_30rnd_545x39_s_ak"",""hlc_30rnd_545x39_s_ak_plum"",""hlc_30rnd_545x39_s_ak_black"",""hlc_20rnd_762x51_s_fal"",""hlc_10rnd_762x51_s_fal"",""hlc_20rnd_762x51_s_g3""" is invalid for setting dzn_EJAM_SubsonicMagazinesSettings.
 1:51:12 [CBA] (settings) WARNING: Value "[""arifle_MX_F"",0.01,45,10,45,0,0]" is invalid for setting dzn_EJAM_MappingSettings.
 1:51:12 [CBA] (settings) WARNING: Value true is invalid for setting dzn_EJAM_PullBoltOnReload.
 1:51:12 [CBA] (settings) WARNING: Value true is invalid for setting dzn_EJAM_AllowFullInspectMenu.

As per the screenshot below, you can see that the L_Suppress_* settings are what you would expect them to be and I constructed this cba settings file in my local server and copied it over, so the settings are valid locally and would also expect them to be valid on the dedicated server... 20211015005406_1

It is possible that it is a dzn or suppress issue over a CBA issue, but I would like some advice regardless on what I could be doing wrong. It is much appreciated and thank you guys for all the hard work you do on this mod.

Steps to reproduce:

echo "[$(date +'%Y-%m-%d %I:%M:%S %p')] ./arma3server $@ >>./A3Master/server_$(date +'%Y%m%d%I%M%p').rtp" >> startserver.log echo -e "\n" >> startserver.log

./arma3server $@ >>./A3Master/server_$(date +"%Y%m%d%I%M%p").rtp 2>&1


- Start the server and, in the meantime, construct the CBA settings file in a local server. Copy the export to clipboard.
- Join the dedicated server and attempt to import the settings you just copied.
- See the warnings in the log. When pressing ok and clicking back on addon options, the settings will not have changed from their defaults.

**Expected behavior:**
The settings for dzn and suppress are successfully imported and no warnings appear like the ones above in the log.

**Where did the issue occur?**
- Dedicated (Linux server, see specs above).

**Additional context:**
So far I have tried switching profiles, reducing the modset to just ace, cba, dzn and suppress, importing settings "the old fashioned way" without the sqf and manually in the server with file patching on and surrounding the offending settings in quotes, all of which have failed. As such, the reason I am raising this as a CBA bug over a dzn or suppress issue is because the exported settings have the appearance of being functional, but they are not.
commy2 commented 2 years ago

According to the RPT file, /home/tcagame/admin/2/mods/@dzn_extended_jamming and /home/tcagame/admin/2/mods/@suppress are not installed (correclty) on the server. No components of these mods are loaded.

M-Davies commented 2 years ago

It looks like that was the problem. The mods were not being loaded properly as I'm running on a linux system and not all the files were lowercased. As soon as I did, the addons loaded properly and I could change/save the settings.

commy2 commented 2 years ago

Nice.