Describe the bug
The settings VCM_ARTYSIDES and VCM_SIDEENABLED are using as values ARRAY types which contain SIDE types. SIDE type is not supported by the game for serialization:
call compile str west // west
call compile str resistance // nil
parseSimpleArray str [west] select 0 // nil, error
A type supporting full serialization is required for the settings system. Thus only BOOL, NUMBER, STRING and ARRAYs can be used for settings. SIDE type cannot be used without errors.
This leads to the following error if the repro steps are followed:
Subsequently no settings are applied due to the error.
I suggest that the settings are changed to use either NUMBERs (0:east, 1:west, 2:resistance) or STRINGs ("west", "east", "resistance") to enumerate the sides.
To Reproduce
Steps to reproduce the behavior:
Have cba_settings.sqf with the following entries:
force VCM_ARTYSIDES = [WEST,EAST];
force VCM_SIDEENABLED = [WEST,EAST];
Start the game with VCOM_AI and CBA_A3
VCOM Version:
Develop branch
v3.3.0 with post release commits
Additional mods used:
CBA_A3 (v3.13.0.191116)
Additional context
Issue has been discussed on the CBA_A3 Github here and here.
Describe the bug The settings
VCM_ARTYSIDES
andVCM_SIDEENABLED
are using as values ARRAY types which contain SIDE types. SIDE type is not supported by the game for serialization:A type supporting full serialization is required for the settings system. Thus only BOOL, NUMBER, STRING and ARRAYs can be used for settings. SIDE type cannot be used without errors. This leads to the following error if the repro steps are followed:
RPT excerpt
``` 13:55:19 [CBA] (settings) INFO: Mission Config: File [cba_settings.sqf] loaded successfully. 13:55:19 Error in expressionSubsequently no settings are applied due to the error.
I suggest that the settings are changed to use either NUMBERs (0:east, 1:west, 2:resistance) or STRINGs ("west", "east", "resistance") to enumerate the sides.
To Reproduce Steps to reproduce the behavior:
VCOM Version:
Additional mods used:
Additional context Issue has been discussed on the CBA_A3 Github here and here.