Page MenuHomeFeedback Tracker

anims_f_enoch typo on speed
New, NormalPublic

Description

Acts_RU_Briefing_Turn: CutSceneAnimationBaseZoZo in Enoch\Addons\anims_f_enoch has a speed value of "0.3093 ", which is a typo for a float value of 0.3093

Details

Severity
Trivial
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
Config

Event Timeline

brett created this task.Aug 9 2022, 12:28 PM

It's not a typo. getNumber can parse strings:

getNumber (configFile >> "CfgMovesMaleSdr" >> "States" >> "Acts_RU_Briefing_Turn" >> "speed") //will return 0.3093
brett added a comment.Aug 9 2022, 12:51 PM

It is a typo, it is just one that doesn't cause an issue, hence the trival severity. Every other speed value in that pbo is correctly stored as a float.

In config everything is a string even if it doesn’t have quotes, what matters is what engine turns it into afterwards. I think we can leave this one unless there is something in that pbo that does cause issues. Don’t fix it if it ain’t broken

dedmen added a subscriber: dedmen.Aug 9 2022, 3:30 PM

In config everything is a string even if it doesn’t have quotes

No its not. Which is why every other speed value is a proper float, and this one is not.

The binarizer fails here, it should still be able to find the number and trim away whitespace.

BIS_fnc_KK added a comment.EditedAug 9 2022, 6:37 PM

No its not

oh yes it is, config parser is a text parser

The binarizer fails here, it should still be able to find the number and trim away whitespace.

what are you saying that

name = "123.096 + 677.567";

is invalid config entry?

This comment was removed by BIS_fnc_KK.