Page MenuHomeFeedback Tracker

CfgUiGrids profileNamespace unsafe
Closed, ResolvedPublic

Description

Since 1.94 (and it's hotfix) using profileNamespace getVariable ["var", 0.5] in CfgUiGrids (custom layout item) forcefully sets the grid position to 0.

This is happening because 1.94 switched to BIS_fnc_parseNumberSafe. profileNamespace and getVariable are not in the "MATH_OPS"` array which checks tokens in the string, so it thinks the string is "unsafe" and returns 0.

Details

Severity
Major
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1903
Category
Ingame UI
Steps To Reproduce
  • Use profileNamespace getVariable in CfgUiGrids
  • Observe your custom layout is set to [0, 0, 0, 0] as a result of BIS_fnc_parseNumberSafe
Additional Information

Add profileNamespace and getVariable to "MATH_OPS" array in BIS_fnc_parseNumberSafe to restore backwards compatibility.

Event Timeline

Jonpas created this task.Aug 6 2019, 2:05 PM
Jonpas updated the task description. (Show Details)
Jonpas edited Additional Information. (Show Details)
Jonpas added a comment.EditedAug 10 2019, 10:58 PM

This can be reproduced with Eden Editor, which apparently saves layout like when going through layout editor.

dedmen closed this task as Resolved.Mar 21 2022, 1:03 PM
dedmen claimed this task.