10Dozen / dzn_EJAM

Vanilla jamming & ACE Extended Jamming
2 stars 2 forks source link

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

Closed M-Davies closed 2 years ago

M-Davies commented 3 years ago

Hey guys, thanks for the awesome mod. I'm currently running a dedicated server with this mod on it and having some issues getting my CBA settings to take effect serverside. Do you have any input or advice on this? Full details on the CBA GitHub -> https://github.com/CBATeam/CBA_A3/issues/1510

10Dozen commented 2 years ago

Hi!

I didn't get - is the problem in warning messages or settings are not applied? Like set jam chance to 100% on server and every shot will cause jam.

M-Davies commented 2 years ago

is the problem in warning messages or settings are not applied

Both! The settings are not applied and I suspect the cause are these warnings. Essentially, try to import these settings:

// dzn Extended Jamming
force force dzn_EJAM_AllowFullInspectMenu = true;
force dzn_EJAM_dud_ChanceSettings = 60;
force dzn_EJAM_fail_to_eject_ChanceSettings = 20;
force dzn_EJAM_fail_to_extract_ChanceSettings = 20;
force dzn_EJAM_feed_failure_2_ChanceSettings = 20;
force dzn_EJAM_feed_failure_ChanceSettings = 60;
force force dzn_EJAM_Force = true;
force force dzn_EJAM_ForceOverallChance = true;
force dzn_EJAM_MappingSettings = "[""arifle_MX_F"",0.01,45,10,45,0,0]";
force dzn_EJAM_OverallChanceSetting = 0.1;
force force dzn_EJAM_PullBoltOnReload = true;
force dzn_EJAM_SubsonicJamEffectSetting = "0.05";
force dzn_EJAM_SubsonicMagazinesSettings = """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""";

on a linux dedicated server and press ok to apply the settings, it will produce the warnings you have already seen in the rtp log.

 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.

The settings won't be applied to the server as a result, and will revert back to their default values before the attempted import.

M-Davies commented 2 years ago

Now resolved by the helpful people over at CBA. 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.