Diver_ 0 Posted January 16, 2019 I am currently in the process of creating an addon weapon for Arma3 and am coming across this error in the ACE Arsenal. I have logged the parameters that are used within that script and come up with the following; Script (from ace_arsenal.pbo): #include "script_component.hpp" /* * Author: Alganthe * Generic bar statement for stats. * * Arguments: * 0: stat (STRING) * 1: item config path (CONFIG) * 2: Args for configExtreme * 2.1: Stat limits (ARRAY of BOOL) * 2.2: Bar limits (ARRAY of SCALAR) * 2.3: Evaluate as a logarithmic number (BOOL) * * Return Value: * Number * * Public: Yes */ params ["_stat", "_config", "_args"]; _args params ["_statMinMax", "_barLimits", "_configExtremeBool"]; private _statValues = [ [_config], [_stat], [_configExtremeBool], [_statMinMax select 0] ] call BIS_fnc_configExtremes; diag_log format ["_statMinMax select 0: %1", _statMinMax select 0]; diag_log format ["_statMinMax select 1: %1", _statMinMax select 1]; diag_log format ["(_statValues select 1) select 0: %1", (_statValues select 1) select 0]; diag_log format ["_statValues select 1: %1", _statValues select 1]; diag_log format ["_statValues: %1", _statValues]; diag_log format ["_barLimits select 0: %1", _barLimits select 0]; diag_log format ["_barLimits select 1: %1", _barLimits select 1]; linearConversion [_statMinMax select 0, _statMinMax select 1, (_statValues select 1) select 0, _barLimits select 0, _barLimits select 1] Results: 12:18:13 "_statMinMax select 0: 0" 12:18:13 "_statMinMax select 1: 2500" 12:18:13 "(_statValues select 1) select 0: <null>" 12:18:13 "_statValues select 1: [<null>]" 12:18:13 "_statValues: [[0],[<null>]]" 12:18:13 "_barLimits select 0: 0.01" 12:18:13 "_barLimits select 1: 1" I am guessing that I have missed something in the weapons config as I have created other weapons and have not had this issue, I have compared the configs but have been unable to find what is causing this issue. Cheers in advance Share this post Link to post Share on other sites
Dedmen 2721 Posted January 18, 2019 On 16.1.2019 at 2:27 AM, Diver_ said: I have logged the parameters that are used within that script and you have successfully missed the important parameters. Could just log _this and you'll have all parameters in one view. Share this post Link to post Share on other sites